Skip to content

API name

Manuel Strehl edited this page Aug 2, 2013 · 6 revisions

Request a Codepoint’s Name

Template for this request:

http://codepoints.net/api/v1/name/{codepoint}{?callback}

where {codepoint} is a hexadecimal number. {?callback} is an optional callback function name to perform a JSON-P request.

Response

The response is the name of the codepoint as string. An appended asterisk signifies, that this is not the value of the codepoint’s na field but a composition from na1 and/or an alias name.

Additional HTTP Headers

If the request does not contain the Accept: application/json header or a {?callback} parameter, the response will be text/plain.

Possible Errors

  1. 400 Bad Request: If the value for {codepoint} is not a valid hexadecimal number.
  2. 404 Not Found: If the value for {codepoint} is no recognized codepoint (but a valid hexadecimal number).
Clone this wiki locally