# Country Languages Lookup by Country Name or ISO Code

> Country Languages Lookup by Country Name or ISO Code is a paid API for AI agents from country-codes-iso.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Returns all languages spoken in a country with their ISO 639-1 and ISO 639-2 codes and names, given a country name or ISO code.

## Facts

- Endpoint: GET https://country-codes-iso.x402tookit.com/country-languages?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/country-languages-lookup-by-country-name-or-iso-code-e022c5b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n4p0SMpcNXtxA_lClTg9g

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability country-languages-lookup-by-country-name-or-iso-code-e022c5b5
```

Example prompt: What languages are spoken in Switzerland, and what are their ISO 639-1 and 639-2 codes?

## When to prefer this

Use this endpoint when you need to enumerate languages spoken in a specific country along with their ISO 639-1 and 639-2 codes — ideal for localization pipelines, i18n configuration, language-preference inference, or data enrichment. Prefer this over a generic country lookup when language codes (not just names) are required. If you only need currency or calling code data, sibling endpoints may be more appropriate.

## Known failure modes

- Unrecognized country name or code returns no results or an error verdict
- Ambiguous input (e.g. common abbreviations) may require more specific input
- Network or payment authorization failure returns no data
- Countries with no registered language data may return empty language arrays
- Degraded flag may be set if upstream data source is partially unavailable

## How this service works

Languages listed for a country with ISO 639-1 and 639-2 codes and names, from a country name or ISO code.

## Output

Returns a list of languages for the specified country, each with its ISO 639-1 code, ISO 639-2 code, BCP 47 tag, language name, and region. Also includes country metadata such as alpha-2/alpha-3 codes, capital, region, subregion, currencies, calling codes, TLD, and official name. Response includes a summary, data source attribution, and an 'asOf' timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "country"
     ],
     "properties": {
      "country": {
       "type": "string",
       "description": "Country name or ISO code, e.g. Switzerland or CH"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "country": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "tld": {
         "type": [
          "null",
          "string"
         ]
        },
        "name": {
         "type": [
          "null",
          "string"
         ]
        },
        "alpha2": {
         "type": [
          "null",
          "string"
         ]
        },
        "alpha3": {
         "type": [
          "null",
          "string"
         ]
        },
        "region": {
         "type": [
          "null",
          "string"
         ]
        },
        "capital": {
         "type": [
          "null",
          "string"
         ]
        },
        "numeric": {
         "type": [
          "null",
          "string"
         ]
        },
        "subRegion": {
         "type": [
          "null",
          "string"
         ]
        },
        "currencies": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": "string"
         }
        },
        "independent": {
         "type": [
          "boolean",
          "null"
         ]
        },
        "callingCodes": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": "string"
         }
        },
        "officialName": {
         "type": [
          "null",
          "string"
         ]
        }
       }
      },
      "reasons": {
       "type": [
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/country-languages-lookup-by-country-name-or-iso-code-e022c5b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from country-codes-iso.x402tookit.com](https://www.zero.xyz/host/country-codes-iso.x402tookit.com/llms.txt)
