Language Code

GET/v0/language

Validates an ISO 639 language code in either the two-letter ISO 639-1 format (e.g. en) or the three-letter ISO 639-2 terminological format (e.g. eng). Covers all 184 ISO 639-1 languages. Input is case-insensitive. When valid, both the alpha-2 and alpha-3 codes are returned together with the English language name.

Try it

Query Parameters

ParameterTypeRequiredDescription
valuestringYesISO 639-1 (2-letter) or ISO 639-2 (3-letter) language code, case-insensitive (e.g. en, eng, PL)

Example Requests

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.isvalid.dev/v0/language?value=pl"

Response Fields

FieldTypeDescription
validbooleanWhether the value is a recognised ISO 639 language code
formatstringDetected input format: alpha-2 or alpha-3
alpha2string | nullISO 639-1 two-letter code
alpha3stringISO 639-2 three-letter terminological code
namestringEnglish name of the language

Example Response

{
  "valid": true,
  "format": "alpha-2",
  "alpha2": "pl",
  "alpha3": "pol",
  "name": "Polish"
}

Example Response — invalid

{
  "valid": false
}
GET/v0/language/list

Returns the complete list of all 184 ISO 639-1 languages sorted alphabetically by English name.

Example Request

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.isvalid.dev/v0/language/list"

Object Fields

FieldTypeDescription
alpha2string | nullISO 639-1 two-letter code
alpha3stringISO 639-2 three-letter terminological code
namestringEnglish name of the language

Example Response

[
  { "alpha2": "ab", "alpha3": "abk", "name": "Abkhazian" },
  { "alpha2": "aa", "alpha3": "aar", "name": "Afar" },
  { "alpha2": "af", "alpha3": "afr", "name": "Afrikaans" },
  ...
]