-
Notifications
You must be signed in to change notification settings - Fork 11
API glyph
Manuel Strehl edited this page Jul 15, 2013
·
5 revisions
This endpoint returns a PNG image.
Template for this request:
http://codepoints.net/api/v1/glyph/{codepoint}
where {codepoint} is a hexadecimal number. The response is a 16x16 pixel
glyph as rendered on the main site.
A sample response image looks like this: 
In all cases a PNG image will be returned. It is the usual representation of
an unknown Unicode codepoint, a question mark in a diamond.
(The same as the main site’s favicon.)
- 400 Bad Request: If the value for
{codepoint}is not a valid hexadecimal number. - 404 Not Found: If the value for
{codepoint}has no associated image (but is a valid hexadecimal number). This says nothing about whether the codepoint exists or not! use the codepoint or name endpoints for this.