{"uid":"cap_Wk6LTFVlYTXBedHr3KDc0","slug":"country-and-currency-codes-fuzzy-multi-type-lookup-ce446462","name":"Country and Currency Codes – Fuzzy Multi-Type Lookup","description":"Look up a country, currency or language from any ISO code, TLD or name, with fuzzy matching and ambiguity flags.","url":"https://country-codes-iso.x402tookit.com/code-lookup?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"],"type":"string"},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string","description":"A code or name: FR, FRA, 250, .fr, Germny, EUR, Spanish"},"type":{"type":"string","description":"auto (default), country, currency or language"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"kind":{"type":["null","string"]},"input":{"type":["null","string"]},"source":{"type":["null","string"]},"matches":{"type":["array","null"],"items":{"type":"object","properties":{"tld":{"type":["null","string"]},"name":{"type":["null","string"]},"score":{"type":["null","number"]},"alpha2":{"type":["null","string"]},"alpha3":{"type":["null","string"]},"region":{"type":["null","string"]},"capital":{"type":["null","string"]},"numeric":{"type":["null","string"]},"matchedOn":{"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":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"attribution":{"type":["null","string"]},"subdivision":{},"otherInterpretations":{"type":["array","null"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_G-HveNTnPdSU6PxqKPSc3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","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, currency, or language from any ISO code, TLD, name, or partial/misspelled input with fuzzy matching and ambiguity flags.","exampleAgentPrompt":"Can you look up 'Germny' and tell me what country that is, including its alpha-2, alpha-3, numeric codes, currency, and TLD — use fuzzy matching since the spelling might be off?","exampleUseCases":[{"title":"Resolve fuzzy country name in form data","prompt":"A user typed 'Purtugal' in our address form — can you figure out what country they meant and give me the ISO alpha-2 and alpha-3 codes so I can normalise it?"},{"title":"Identify what a mystery ISO code represents","prompt":"I have the code 'EUR' coming through in a data pipeline and I'm not sure if it's a country, currency, or language — can you look it up and tell me what it is and all the details?"},{"title":"Map a TLD to its country details","prompt":"What country does the top-level domain '.jp' belong to? Give me the full country name, alpha codes, region, capital, and currencies."}],"resultDescription":"Returns a structured response with the resolved kind (country, currency, or language), the matched entity's full details (alpha-2, alpha-3, numeric code, name, official name, TLD, region, sub-region, capital, currencies, calling codes, independence status), a fuzzy match score, what field was matched on, ambiguity/disclaimer flags, alternative interpretations, and a human-readable summary and verdict.","failureModes":["No match found for highly ambiguous or nonsense input — returns empty matches array","Input matches multiple entity types simultaneously — flagged with otherInterpretations and ambiguity disclaimer","Extremely corrupted spelling may score below threshold — returns low-confidence or no match","Type filter mismatch (e.g., querying a currency code with type=country) — returns no matches for that type","Network or payment failure — HTTP 402 or 5xx error"],"whenToPreferThis":"Choose this endpoint when you have an unknown or potentially misspelled code or name that could be a country, currency, or language, and you want a single call to resolve it with fuzzy matching and ambiguity detection. It is the broadest entry point in this API family — prefer it over the type-specific endpoints when the input type is uncertain. Use the type-specific sibling endpoints when you already know the domain (e.g., currency-only lookup or language-only lookup) for slightly more targeted results.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:08:21.546Z","isFirstParty":false,"canonicalSlug":"country-and-currency-codes-fuzzy-multi-type-lookup-ce446462"}