Reference
ISO 639 language reference (direction + native name) API
Given an ISO 639-1/2/3 code or a name, return the cross-walked codes plus English name, native (endonym) name, default script, and writing direction (ltr/rtl) — the value-add for rendering localized text. Answers '639-3 code for English', 'is Arabic RTL', 'native name of de', 'language for code zh'.
Price$0.01per request
MethodPOST
Route/v1/ref/language
StatusLive
MIME typeapplication/json
Rate limit60/minute
CacheNo cache
reflanguageiso-639localertlltrnative-namescript
API URL
Integration docshttps://x402.hexl.dev/v1/ref/languageExample request
{
"query": "ar"
}Example response
{
"query": "ar",
"found": true,
"iso1": "ar",
"iso2": "ara",
"iso3": "ara",
"name": "Arabic",
"nativeName": "العربية",
"script": "Arabic",
"direction": "rtl"
}Input schema
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"examples": [
"en",
"ara",
"Chinese"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}