-
Notifications
You must be signed in to change notification settings - Fork 11
API block
Manuel Strehl edited this page Aug 2, 2013
·
5 revisions
Template for this request:
http://codepoints.net/api/v1/block/{block}{?callback}
where {block} is the case-insensitive name of a Unicode block. Spaces and
underscores can be used as liked. That means, Basic%20Latin, BasicLatin
and Basic_Latin will all give the same result. {?callback} is an optional
callback function name to perform a JSON-P request.
A response looks like this:
{
"name": "Basic Latin",
"first": "U+0000",
"last": "U+007F",
"next_block": "Latin-1 Supplement"
}A successful response will contain three to four Link headers:
-
rel=alternatelinks to the description page of the block on the main site. -
rel=uplinks to the API endpoint for the containing Unicode plane. -
rel=prevlinks to the previous block, if it exists. -
rel=nextlinks to the next block, if it exists.
- 404 Not Found: If the value for
{block}is no recognized Unicode block.