# 2s ISO 639 Language Code Lookup

> 2s ISO 639 Language Code Lookup is a paid API for AI agents from 2s.io, paid per call via x402, $0.0012/call, status unknown (last checked 2026-09-15).

Looks up ISO 639 language codes (alpha-2 and alpha-3) by code or language name

## Facts

- Endpoint: GET https://2s.io/api/iso/language
- Price: $0.0012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-iso-639-language-code-lookup-2c2d0c55
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g8a4ihzU6AHbv_Qr6y--t

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 2s-iso-639-language-code-lookup-2c2d0c55
```

Example prompt: What are the ISO 639-1 and ISO 639-2 codes for German? I need both the alpha-2 and alpha-3 variants.

## When to prefer this

Use this endpoint when you need authoritative ISO 639 language code lookups without managing a local dataset or signing up for a service — particularly useful for internationalization pipelines, locale validation, or enriching language metadata. Pay-per-call USDC pricing makes it suitable for low-volume or on-demand agent use cases.

## Known failure modes

- No match found: found=false with empty languages array when code or name doesn't match any ISO 639 entry
- Ambiguous partial name match: may return multiple language entries when name is non-specific
- Invalid code format: passing a code that isn't ISO 639-1 or 639-2 may return no results
- Missing parameters: if neither code nor name is provided the API may return an error or empty result

## How this service works

Look up an ISO 639 language. Pass code in any form — 639-1 (en), 639-2/B (ger) or 639-2/T (deu) — or name (English, partial match). Returns the English name and all sibling codes (alpha-2, alpha3-B, alpha3-T), so you can normalize a messy language tag to canonical ISO identifiers and resolve the bibliographic-vs-terminological alpha-3 split (e.g. German = de / deu / ger). Bundled authoritative ISO 639 data.

## Output

Returns a JSON object with a found boolean, the original query (code or name), source attribution, and an array of matched languages each containing the English name, alpha-2 code, alpha-3/B code, and alpha-3/T code.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "code": "en"
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [],
     "properties": {
      "code": {
       "type": "string",
       "description": "ISO 639 code: 639-1 (en), 639-2/B (ger), or 639-2/T (deu)."
      },
      "name": {
       "type": "string",
       "description": "Language name (English), partial allowed."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-iso-639-language-code-lookup-2c2d0c55/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
