GET/emoji/[lookup]Get a .png of an emoji by looking it up.
GET/emoji/[lookup]lookupstringThe lookup term, which could be the emoji name or unicode character.
stylestringOptional (default: apple)The style of the emoji. Must be one of: apple, facebook, google, twitter.
sizestringOptional (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
asJsonbooleanOptional (default: false)If true, returns JSON metadata instead of the PNG image.
200Successful response
fileA file is returned as the body.Content-TypestringThe content type of the image
Cache-ControlstringThe cache control header
200Successful 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
}400ErrorThe provided size is not supported for the selected style.
object{
"data": null,
"error": "Size \"96\" is not supported for style \"apple\""
}400ErrorThe provided style is invalid.
object{
"data": null,
"error": "Invalid style"
}400ErrorThe lookup string could not be decoded.
object{
"data": null,
"error": "Malformed lookup string"
}404ErrorNo matching emoji was found or image is missing.
object{
"data": null,
"error": "Invalid lookup"
}400ErrorFailed to fetch the emoji image from the CDN.
object{
"data": null,
"error": "Failed to fetch emoji image"
}