State and province codes: ISO 3166-2 subdivision codes, names and types (200 countries, 5,046 codes, incl. all of Africa and India)
subdivision_codes_lookupState and province codes (ISO 3166-2): every state, province, region, county and district code with its name, type and parent for 200 countries (5,046 codes), incl. Nigeria's 36 states and FCT, Kenya's 47 counties, India's states and union territories and all of Africa. List a country, look up codes (NG-LA) or find a code by name (Lagos). Source: Debian iso-codes (LGPL). For forms, tax, shipping and KYC agents. Returns JSON with asOf, count, results, summary. Read-only; invalid input is rejected before any charge. Price: $0.001 USDC per call (x402, Base mainnet), paid only when the call succeeds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "subdivision_codes_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Optional: 'true' returns only top-level subdivisions (no parent) | |
| code | No | ISO 3166-2 codes, comma-separated, up to 100, e.g. NG-LA,KE-30,IN-MH | |
| name | No | Subdivision name to find its code (accents ignored; exact matches first). Give at least one of country, code or name | |
| country | No | 2-letter ISO country codes, comma-separated, up to 60: lists their subdivisions |