Skip to content

API plane

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

Information about a Unicode Plane

Template for this request:

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

where {plane} is the case-insensitive name of a Unicode plane. Spaces and underscores can be used as liked. That means, Basic%20Multilingual%20Plane, BasicMultilingualPlane and Basic_Multilingual_Plane will all give the same result. {?callback} is an optional callback function name to perform a JSON-P request.

Response

A response looks like this:

    {
        "name": "Basic Latin",
        "first": "U+0000",
        "last": "U+007F",
        "blocks": [
            "Basic Latin",
            "Latin-1 Supplement",
            "Latin Extended-A",
            ...
        ],
        "next_plane": "Supplementary Multilingual Plane"
    }

Additional HTTP Headers

A successful response will contain two to three Link headers:

  1. rel=alternate links to the description page of the plane on the main site.
  2. rel=prev links to the previous plane, if it exists.
  3. rel=next links to the next plane, if it exists.

Possible Errors

  1. 404 Not Found: If the value for {plane} is no recognized Unicode plane.
Clone this wiki locally