GET
/emoji/[lookup]
Get a .png of an emoji by looking it up.
GET
/emoji/[lookup]
lookup
string
The lookup term, which could be the emoji name or unicode character.
style
string
Optional (default: apple)
The style of the emoji. Must be one of: apple, facebook, google, twitter.
size
string
Optional (default: 64)
The size of the image in pixels. Supported values per style: - apple: 64, 160 - facebook: 64, 96 - google: 64, 136 - twitter: 64, 72
asJson
boolean
Optional (default: false)
If true, returns JSON metadata instead of the PNG image.
200
Successful response
file
A file is returned as the body.
Content-Type
string
The content type of the image
Cache-Control
string
The cache control header
200
Successful response when asJson=true
object
{
"data": {
"name": "herb",
"unified": "1F33F",
"image": "https://ted.ac/api/emoji/herb",
"category": "Animals & Nature",
"subcategory": "plant-other"
},
"error": null
}
400
Error
The provided size is not supported for the selected style.
object
{
"data": null,
"error": "Size \"96\" is not supported for style \"apple\""
}
400
Error
The provided style is invalid.
object
{
"data": null,
"error": "Invalid style"
}
400
Error
The lookup string could not be decoded.
object
{
"data": null,
"error": "Malformed lookup string"
}
404
Error
No matching emoji was found or image is missing.
object
{
"data": null,
"error": "Invalid lookup"
}
400
Error
Failed to fetch the emoji image from the CDN.
object
{
"data": null,
"error": "Failed to fetch emoji image"
}