{"uid":"cap_baHD6ycvB9GLR_4N7Euxr","slug":"x402-deployer-x402-deployer-workers-dev-2aa9fca9","name":"Country Info Lookup","description":"Country info lookup. Resolves country metadata by common name, ISO 3166 alpha-2/alpha-3 code, or capital city. Returns capital, region, population, area, currencies, languages, timezones, calling code, flag emoji, neighbors. Wraps the public REST Countries v3.1 API — no auth, commercial-OK.","url":"https://x402-deployer.x402-deployer.workers.dev/country-info","method":"POST","headers":{},"bodySchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"properties":{"query":{"type":"string","description":"Search string — country name (e.g. 'Germany'), ISO code (e.g. 'DE'), or capital city (e.g. 'Berlin'), depending on query_type."},"query_type":{"type":"string","enum":["name","code","capital"],"description":"How to interpret 'query'. Default 'name'."}},"required":["query"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"matches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code_alpha2":{"type":"string"},"code_alpha3":{"type":"string"},"capital":{"type":"string"},"region":{"type":"string"},"subregion":{"type":"string"},"population":{"type":"integer"},"area_km2":{"type":"integer"},"currencies":{"type":"array","items":{"type":"string"}},"languages":{"type":"array","items":{"type":"string"}},"timezones":{"type":"array","items":{"type":"string"}},"flag_emoji":{"type":"string"},"neighbors_codes":{"type":"array","items":{"type":"string"}},"calling_code":{"type":"string"}}}},"source":{"type":"string"}}}},"required":["type"]}},"required":["input"]},"responseSchema":null,"example":{"request":{"input":{"body":{"query":"Germany","query_type":"name"},"type":"http","method":"POST","bodyType":"json"}},"response":{"source":"https://restcountries.com","matches":[{"name":"Germany","region":"Europe","capital":"Berlin","area_km2":357114,"languages":["German"],"subregion":"Western Europe","timezones":["UTC+01:00"],"currencies":["EUR"],"flag_emoji":"🇩🇪","population":83491249,"code_alpha2":"DE","code_alpha3":"DEU","calling_code":"+49","neighbors_codes":["AUT","BEL","CZE","DNK","FRA","LUX","NLD","POL","CHE"]}]}},"exampleRequest":{"query":"Germany","query_type":"name"},"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_qznlYhCQyboPXwVQYZHjO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves country metadata by name, ISO 3166 code, or capital city, returning capital, region, population, currencies, languages, timezones, calling code, flag emoji, and neighboring countries","exampleAgentPrompt":"Can you look up the country info for Germany — I need the capital, population, currency, official languages, timezones, international calling code, flag emoji, and which countries it borders?","exampleUseCases":null,"resultDescription":"Returns a structured object with capital city, world region, population count, land area, list of currencies, official languages, timezones, international dialing/calling code, flag emoji, and an array of neighboring/border countries — sourced from REST Countries v3.1.","failureModes":["Country name not recognized — ambiguous or misspelled input returns no match","Invalid ISO code format returns error","Capital city not unique to one country may return multiple results","REST Countries v3.1 upstream outage causes 502/503","Dependent territory or unrecognized state may not be in the dataset"],"whenToPreferThis":"Use this endpoint when you need rich country metadata (currency, language, timezone, calling code, neighbors, flag) from a simple name or code lookup. Prefer this over general web search when structured, machine-readable country data is required for downstream processing, enrichment, or display.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:42:53.138Z","isFirstParty":false}