BDFDiscordData
Search
K

/emoji-info

This endpoint will require a POST request.

Endpoint Headers:

  • apikey - Your Api Auth Key [String] (Required)

Endpoint Body Parameters

  • emoji - Unicode Emoji to fetch [String] (Required)

Examples:

Data API version required. Must replace <version> with either release or beta.
Bot Designer for Discord
Example usage of /emoji-info endpoint using BDFD
$httpAddHeader[apikey;<YOUR-API-KEY>]
$httpPost[https://bdfddata.rickyjs.xyz/<version>/emoji-info;{
emoji: '👎'
}]
$httpResult OR $httpResult[details]
Discord.js
Example usage of /emoji-info endpoint using Discord.js
const axios = require('axios');
(async () => {
return await axios.post('https://bdfddata.rickyjs.xyz/<version>/emoji-info',
{ emoji: '👎'
}, {
headers: {
'apikey': <YOUR-API-KEY>,
}
}).then(res=>res.data)
})()

Possible Responses (Codes)

Code 200
API succeeded and details were fetched.
{
status: 200,
details: {
input: '👎',
unicodeHex: '1f44e-20',
twemoji: 'https://twemoji.maxcdn.com/v/latest/72x72/1f44e-20.png'
}
}
Code 400
An error occurred that stopped execution.
{
status: 400
error: 'Cannot read ... (This can vary)'
}