{"uid":"cap_qWjgF7LNSu_z5hGNn3Y8G","slug":"reference-data-api-iso-3166-country-lookup-cc118961","name":"Reference Data API – ISO 3166 Country Lookup","description":"ISO 3166 country lookup by alpha-2, alpha-3, numeric code or name (fuzzy): official name, codes, flag, official currencies (ISO 4217) and optionally all ISO 3166-2 subdivisions (states, cantons, regions).","url":"https://reference-data-api.onrender.com/v1/country?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["code"],"properties":{"code":{"type":"string","description":"Alpha-2, alpha-3, numeric code or country name"},"subdivisions":{"type":"string","description":"true to list ISO 3166-2 subdivisions"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0345","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0345/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0345","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0345","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__VsRHjy3xUXxygz_NwkAf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0345","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up a country by alpha-2, alpha-3, numeric code, or name (fuzzy) and returns official name, ISO codes, flag, currencies, and optionally ISO 3166-2 subdivisions.","exampleAgentPrompt":"Look up the official ISO 3166 country details for 'DE' — I need its official name, numeric code, flag, and official currencies, and also include the full list of ISO 3166-2 subdivisions.","exampleUseCases":[{"title":"Validate and enrich country code in form","prompt":"I have a user-submitted country code 'GBR' — can you look it up and confirm it's valid, and return the official name, alpha-2 code, and flag for display?"},{"title":"Find official currency for a country","prompt":"What is the official ISO 4217 currency used in Japan? Look it up using the country code 'JP'."},{"title":"List all states or regions of a country","prompt":"Give me the full list of ISO 3166-2 subdivisions for Canada — I need all the provinces and territories with their codes."}],"resultDescription":"Returns a JSON object containing the country's official name, alpha-2 code, alpha-3 code, numeric code, flag, and array of official ISO 4217 currencies. When subdivisions=true is passed, also returns a list of all ISO 3166-2 subdivision entries (e.g. states, provinces, cantons, regions) with their codes and names.","failureModes":["Unknown or unresolvable country code/name returns a 404 or error response","Ambiguous fuzzy name match may return unexpected country","Invalid query parameter format may return a 400 bad request","Subdivisions not defined for all countries — some may return empty lists","Rate limiting or payment failure may result in 402 or 429 responses"],"whenToPreferThis":"Use this endpoint when you need authoritative ISO 3166 country metadata — official name, all code variants (alpha-2, alpha-3, numeric), flag, and currencies — from a single lookup. Supports fuzzy name matching, making it useful when input quality varies. Choose this over a general geocoding API when you specifically need ISO standard codes and currency associations rather than geographic coordinates or postal data. Especially valuable when you also need ISO 3166-2 subdivision lists (states, provinces, regions) in the same call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T18:30:28.240Z","isFirstParty":false,"canonicalSlug":"reference-data-api-iso-3166-country-lookup-cc118961"}