{"uid":"cap_29cML2Vnmc5TFP5p4_J_X","slug":"x402-agentutility-ai-27b3a487","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.agentutility.ai/country-info","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":{"required":["query"],"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":{"enum":["name","code","capital"],"type":"string","description":"How to interpret 'query'. Default 'name'."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"source":{"type":"string"},"matches":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"region":{"type":"string"},"capital":{"type":"string"},"area_km2":{"type":"integer"},"languages":{"type":"array","items":{"type":"string"}},"subregion":{"type":"string"},"timezones":{"type":"array","items":{"type":"string"}},"currencies":{"type":"array","items":{"type":"string"}},"flag_emoji":{"type":"string"},"population":{"type":"integer"},"code_alpha2":{"type":"string"},"code_alpha3":{"type":"string"},"calling_code":{"type":"string"},"neighbors_codes":{"type":"array","items":{"type":"string"}}}}}}}}}}},"responseSchema":{"type":"json","example":{"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":83240525,"code_alpha2":"DE","code_alpha3":"DEU","calling_code":"+49","neighbors_codes":["AUT","BEL","CZE","DNK","FRA","LUX","NLD","POL","CHE"]}]}},"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.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_THs_mMOsNSPq588kNC98V","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","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 alpha-2/alpha-3 code, or capital city, returning capital, region, population, area, currencies, languages, timezones, calling code, flag emoji, and neighboring countries.","exampleAgentPrompt":"What are the capital, population, currency, languages, timezones, flag, and neighboring countries for Germany?","exampleUseCases":null,"resultDescription":"A structured object containing the country's canonical name, capital city, region, subregion, population, land area in km², list of currencies with codes, official and spoken languages, UTC timezones, international dialing/calling code, flag emoji, and ISO alpha-2/alpha-3 codes for all bordering countries.","failureModes":["Unrecognized country name or misspelling returns a 404 or empty result","Ambiguous name (e.g. 'Congo') may return multiple or incorrect records","Non-sovereign territories or dependencies may not be indexed","Invalid ISO code format returns an error","Network timeout or upstream REST Countries API downtime causes failure"],"whenToPreferThis":"Use this endpoint when you need structured, multi-field country metadata — especially when resolving from a free-text name, capital city, or ISO code — and you need it in a single call. Prefer this over scraping Wikipedia or calling a geocoding API when the target entity is a sovereign country and you need fields like calling code, flag emoji, languages, and neighbors bundled together.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:07:04.112Z","isFirstParty":false}