Hatena::Grouphatenadeveloper

Hatena Haiku URL construction

en/haiku/apis/rest/urls

Hatena Haiku URL construction

Notice on this document

This document is part of the Hatena Haiku RESTful APIs documentation. It describes how to construct URLs of Hatena Haiku Web site from objects returned by Hatena Haiku APIs.

Keyword URLs

New in Hatena Haiku 1.1

The URL of Entries page for a keyword is:

# For PCs, smartphones
http://{domain}{device}/target?word={eword}

# For Japanese mobile phones
http://{domain}{device}/target?bword={bword}

Where:

  • {domain} is h.hatena.ne.jp for Japanese version, or h.hatena.com for global version.
  • {device} is the empty string for PC version, /touch for smartphone version, or /mobile for Japanese mobile phone version.
  • {eword} and {bword} are the keyword (Entry's keyword, or Keyword's or Target's word), as encoded by the following form:
    • {eword} is the string encoded in UTF-8 and then percent-encoded.
    • {bword} is the string encoded in UTF-8 and then base64url-encoded.

User URLs

The URL of Entries page for a user is:

http://{domain}{device}/{user}/
  • {domain} is h.hatena.ne.jp for Japanese version, or h.hatena.com for global version.
  • {device} is the empty string for PC version, /touch for smartphone version, or /mobile for Japanese mobile phone version.
  • {user} is the Hatena ID of the user.

Entry URLs

The URL of Entry is:

http://{domain}{device}/{user}/{eid}
  • {domain} is h.hatena.ne.jp for Japanese version, or h.hatena.com for global version.
  • {device} is the empty string for PC version, /touch for smartphone version, or /mobile for Japanese mobile phone version.
  • {user} is the Hatena ID of the author of the entry, i.e. Entry's user's Hatena ID.
  • {eid} is the entry ID, i.e. Entry's id.

Related document

Hatena User Icon (In Japanese)
Describes profile icon URLs for Hatena users

History

  • February 14, 2011 Published.