The Emoji API provides image and metadata for all Unicode emojis. The data is updated periodically to fetch new emojis.
https://api.api-ninjas.com/v1/emoji
Returns a list of emojis according to input parameters. Returns at most 30 results. To access more than 30 results, use the offset
parameter to offset results in multiple API calls.
At least one of the following parameters (other than offset
) must be set:
name
optionalDescriptive name of emoji.
code
optionalUnicode character code for the emoji.
group
optionalMain category the emoji belongs to. Possible values are:
smileys_emotion |
people_body |
component |
animals_nature |
food_drink |
travel_places |
activities |
objects |
symbols |
flags |
subgroup
optionalSub-category the emoji belongs to. Possible values are:
offset
optionalNumber of results to offset for pagination.
X-Api-Key
requiredAPI Key associated with your account.
https://api.api-ninjas.com/v1/emoji?name=slightly smiling face
1
2
3
4
5
6
7
8
9
10
[
{
"code": "U+1F642",
"character": "🙂",
"image": "https://api-ninjas-data.s3.us-west-2.amazonaws.com/emojis/U%2B1F642.png",
"name": "slightly smiling face",
"group": "Smileys & Emotion",
"subgroup": "face-smiling"
}
]
1
2
3
4
5
6
7
8
import requests
name = 'slightly smiling face'
api_url = 'https://api.api-ninjas.com/v1/emoji?name={}'.format(name)
response = requests.get(api_url, headers={'X-Api-Key': 'YOUR_API_KEY'})
if response.status_code == requests.codes.ok:
print(response.text)
else:
print("Error:", response.status_code, response.text)
If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.