{"uid":"cap_zW1j5DW3Wrhsod0_wod72","slug":"countrylayer-capital-lookup-39d5b1bc","name":"Countrylayer Capital Lookup","description":"Country by capital city: append /{capital}, e.g. /capital/berlin.","url":"https://gateway.apiosk.com/countrylayer/capital/berlin","method":"GET","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.077","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__ujySofHqrb5toCoLYWmz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns country information for a given capital city, specifically querying by capital name (e.g. Berlin)","exampleAgentPrompt":"What country has Berlin as its capital, and can you pull up the full country details like region, currency, and population?","exampleUseCases":[{"title":"Identify country from capital city","prompt":"I just saw a reference to a capital city called Berlin — can you tell me which country that belongs to and give me some basic facts about it?"},{"title":"Enrich travel itinerary with country data","prompt":"I'm building a trip itinerary and I need to know which country has Vienna as its capital, along with its currency and official language."},{"title":"Validate geography in a dataset","prompt":"I have a dataset entry that says the capital is Paris — can you confirm which country that maps to and return its country code and region?"}],"resultDescription":"A JSON object containing country metadata matched to the queried capital city, typically including country name, ISO country code, capital city, world region, population, currencies, languages spoken, and flag information.","failureModes":["Capital city name not found or misspelled — returns empty result or 404","Ambiguous capital names shared by multiple territories may return unexpected results","API gateway timeout or payment failure via x402 protocol","Invalid or missing input parameter returns error response"],"whenToPreferThis":"Use this endpoint when you need to resolve a capital city name to its corresponding country and want structured country metadata (region, currency, language, population). Prefer this over a general search engine when you need clean, structured JSON output suitable for downstream processing or data enrichment pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:54:54.968Z","isFirstParty":false}