Get Emoji Information
curl --request POST \
--url https://api.aisa.one/apis/v1/api-ninjas/get-emoji \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "U+1F642",
"group": "smileys_emotion",
"name": "smile",
"offset": 0,
"subgroup": "face-smiling"
}
'import requests
url = "https://api.aisa.one/apis/v1/api-ninjas/get-emoji"
payload = {
"code": "U+1F642",
"group": "smileys_emotion",
"name": "smile",
"offset": 0,
"subgroup": "face-smiling"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
code: 'U+1F642',
group: 'smileys_emotion',
name: 'smile',
offset: 0,
subgroup: 'face-smiling'
})
};
fetch('https://api.aisa.one/apis/v1/api-ninjas/get-emoji', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/api-ninjas/get-emoji",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'code' => 'U+1F642',
'group' => 'smileys_emotion',
'name' => 'smile',
'offset' => 0,
'subgroup' => 'face-smiling'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/api-ninjas/get-emoji"
payload := strings.NewReader("{\n \"code\": \"U+1F642\",\n \"group\": \"smileys_emotion\",\n \"name\": \"smile\",\n \"offset\": 0,\n \"subgroup\": \"face-smiling\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/api-ninjas/get-emoji")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"code\": \"U+1F642\",\n \"group\": \"smileys_emotion\",\n \"name\": \"smile\",\n \"offset\": 0,\n \"subgroup\": \"face-smiling\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-ninjas/get-emoji")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"code\": \"U+1F642\",\n \"group\": \"smileys_emotion\",\n \"name\": \"smile\",\n \"offset\": 0,\n \"subgroup\": \"face-smiling\"\n}"
response = http.request(request)
puts response.read_body[
{
"character": "<string>",
"code": "<string>",
"group": "<string>",
"image": "<string>",
"name": "<string>",
"subgroup": "<string>"
}
]API Ninjas
Get Emoji Information
Get Emoji Information
POST
https://api.aisa.one
/
apis
/
v1
/
api-ninjas
/
get-emoji
Get Emoji Information
curl --request POST \
--url https://api.aisa.one/apis/v1/api-ninjas/get-emoji \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "U+1F642",
"group": "smileys_emotion",
"name": "smile",
"offset": 0,
"subgroup": "face-smiling"
}
'import requests
url = "https://api.aisa.one/apis/v1/api-ninjas/get-emoji"
payload = {
"code": "U+1F642",
"group": "smileys_emotion",
"name": "smile",
"offset": 0,
"subgroup": "face-smiling"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
code: 'U+1F642',
group: 'smileys_emotion',
name: 'smile',
offset: 0,
subgroup: 'face-smiling'
})
};
fetch('https://api.aisa.one/apis/v1/api-ninjas/get-emoji', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/api-ninjas/get-emoji",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'code' => 'U+1F642',
'group' => 'smileys_emotion',
'name' => 'smile',
'offset' => 0,
'subgroup' => 'face-smiling'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/api-ninjas/get-emoji"
payload := strings.NewReader("{\n \"code\": \"U+1F642\",\n \"group\": \"smileys_emotion\",\n \"name\": \"smile\",\n \"offset\": 0,\n \"subgroup\": \"face-smiling\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/api-ninjas/get-emoji")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"code\": \"U+1F642\",\n \"group\": \"smileys_emotion\",\n \"name\": \"smile\",\n \"offset\": 0,\n \"subgroup\": \"face-smiling\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-ninjas/get-emoji")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"code\": \"U+1F642\",\n \"group\": \"smileys_emotion\",\n \"name\": \"smile\",\n \"offset\": 0,\n \"subgroup\": \"face-smiling\"\n}"
response = http.request(request)
puts response.read_body[
{
"character": "<string>",
"code": "<string>",
"group": "<string>",
"image": "<string>",
"name": "<string>",
"subgroup": "<string>"
}
]Request contract
- Method and path: POST /apis/v1/api-ninjas/get-emoji
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/api-ninjas/get-emoji
{
"operationId": "api-ninjas.get-emoji",
"method": "POST",
"path": "/apis/v1/api-ninjas/get-emoji",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"code": {
"description": "Unicode character code for the emoji (e.g., 'U+1F642'). Must be uppercase with U+ prefix.",
"examples": [
"U+1F642",
"U+1F60A"
],
"type": "string"
},
"group": {
"description": "Main category to filter emojis. Valid categories: smileys_emotion, people_body, component, animals_nature, food_drink, travel_places, activities, objects, symbols, flags.",
"enum": [
"smileys_emotion",
"people_body",
"component",
"animals_nature",
"food_drink",
"travel_places",
"activities",
"objects",
"symbols",
"flags"
],
"examples": [
"smileys_emotion",
"animals_nature",
"food_drink"
],
"type": "string"
},
"name": {
"description": "Descriptive name of emoji to search for (e.g., 'smile', 'heart').",
"examples": [
"smile",
"heart",
"thumbs up"
],
"type": "string"
},
"offset": {
"description": "Number of results to offset for pagination. Use this to retrieve results beyond the first 30. Default is 0.",
"examples": [
0,
30,
60
],
"minimum": 0,
"type": "integer"
},
"subgroup": {
"description": "Sub-category to filter emojis within a group. The subgroup must be valid for the selected group.",
"examples": [
"face-smiling",
"animal-mammal"
],
"type": "string"
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Main category to filter emojis. Valid categories: smileys_emotion, people_body, component, animals_nature, food_drink, travel_places, activities, objects, symbols, flags.
Available options:
smileys_emotion, people_body, component, animals_nature, food_drink, travel_places, activities, objects, symbols, flags Examples:
"smileys_emotion"
"animals_nature"
"food_drink"