{"uid":"cap_M9AnLKHuK7Yvr-qPbdfXH","slug":"iso-3166-1-country-lookup-by-code-or-name-91f4cb4c","name":"ISO 3166-1 Country Lookup by Code or Name","description":"Look up a country by its ISO 3166-1 alpha-2 code, alpha-3 code, numeric code or English name. Provide exactly one field. Returns all codes plus the UN region.","url":"https://iso.openverbs.com/v1/country","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"name":{"type":"string","description":"Exact English name (case-insensitive). Use /v1/search for fuzzy matching."},"alpha2":{"type":"string","description":"ISO 3166-1 alpha-2 code, e.g. \"US\"."},"alpha3":{"type":"string","description":"ISO 3166-1 alpha-3 code, e.g. \"USA\"."},"numeric":{"type":"string","description":"ISO 3166-1 numeric code, e.g. \"840\"."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IVfq5sd-O9VXGBc6X0SBV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Look up a country's full ISO 3166-1 alpha-2, alpha-3, numeric codes, and UN region by providing exactly one of: alpha-2 code, alpha-3 code, numeric code, or exact English name.","exampleAgentPrompt":"What are all the ISO 3166-1 codes and UN region for the country with alpha-2 code 'DE'?","exampleUseCases":[{"title":"Normalize country codes in data pipeline","prompt":"I have a dataset with alpha-2 country codes like 'FR', 'JP', 'BR' — can you look each one up and get me the alpha-3 code and UN region for each?"},{"title":"Validate and enrich user-submitted country","prompt":"A user filled in 'United Kingdom' as their country — can you look that up by exact name and give me the official alpha-2, alpha-3, and numeric ISO codes?"},{"title":"Cross-reference numeric country code","prompt":"I've got the numeric ISO code 392 and need to know which country that is and what UN region it belongs to."}],"resultDescription":"Returns a country object containing the ISO 3166-1 alpha-2 code, alpha-3 code, numeric code, English country name, and UN region classification.","failureModes":["No match found if the provided name or code does not exactly match (use /v1/search for fuzzy matching)","Error if more than one field is provided simultaneously","Error if the input field value is malformed or empty","Invalid body type returns a validation error"],"whenToPreferThis":"Use this endpoint when you have an exact ISO 3166-1 code or the precise English country name and need to retrieve the full set of ISO codes plus the UN region. For fuzzy or partial name matching, prefer the /v1/search sibling endpoint instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:25.656Z","isFirstParty":false}