{"uid":"cap_Y5yTuBvCo489z8LTMfV2i","slug":"foundry-country-code-lookup-66d7f8bf","name":"Foundry Country Code Lookup","description":"Country code lookup: ISO 3166 alpha-2, alpha-3 and numeric codes, official name, calling code and flag. Input: a country name or code.","url":"https://minty-sprout.onrender.com/v1/country-code?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":8000,"description":"A country name or code"}}},"responseSchema":{"type":"json","example":{"flag":"🇵🇰","name":"Pakistan","alpha_2":"PK","alpha_3":"PAK","numeric":"586","calling_code":"+92","official_name":"Islamic Republic of Pakistan"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HKwNiRVasZXJmHaa2v8YR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up ISO 3166 country codes (alpha-2, alpha-3, numeric), official name, calling code, and flag emoji for any country name or code input.","exampleAgentPrompt":"What are the ISO 3166 alpha-2, alpha-3, and numeric codes, the international calling code, and the official name for Nigeria?","exampleUseCases":[{"title":"Phone number validation enrichment","prompt":"I have a user record that just says 'Germany' as the country — can you find me the ISO alpha-2 code and the international calling code so I can validate their phone number?"},{"title":"E-commerce shipping form autofill","prompt":"I need the ISO 3166 alpha-2 and alpha-3 codes plus the numeric code for Mexico to fill in our shipping API form."},{"title":"Flag display in country selector","prompt":"Show me the flag emoji and official name for the country with code 'CHE' so I can display it correctly in the UI."}],"resultDescription":"A JSON object containing the country's flag emoji, common name, ISO alpha-2 code, ISO alpha-3 code, numeric code, international calling code (e.g. '+92'), and official name (e.g. 'Islamic Republic of Pakistan').","failureModes":["Unrecognized country name or code returns an error or empty result","Ambiguous input (e.g. partial name) may match unexpectedly or fail","Non-standard abbreviations or historical country names may not be found","Input exceeding 8000 characters is rejected by schema"],"whenToPreferThis":"Use this endpoint when you need authoritative ISO 3166 country code data including calling codes and flag emoji from a single lookup. Ideal for enriching user records, validating phone numbers, populating shipping forms, or displaying country info in UIs. Prefer this over manual lookups or general-purpose web search when you need structured, machine-readable country metadata reliably.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:57:43.353Z","isFirstParty":false,"canonicalSlug":"foundry-country-code-lookup-66d7f8bf"}