{"uid":"cap_O8M7PodxDFWKnBbcUP5Nq","slug":"country-profile-by-iso-3166-code-7af168fb","name":"Country Profile by ISO 3166 Code","description":"Country profile by ISO 3166 alpha-2 code: ISO codes, name, region, income group, lending type, capital with coordinates, and the latest population and GDP per capita with their years, as JSON.","url":"https://pennydatahq.com/api/country/:code?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"},"pathParams":{"type":"object","required":["code"],"properties":{"code":{"type":"string","description":"2-letter ISO 3166 country code, any case. Regions and income groups (for example WLD, EU) are not countries and return not found."}}},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["iso2","iso3","name"],"properties":{"iso2":{"type":"string"},"iso3":{"type":"string"},"name":{"type":"string"},"region":{"type":["string","null"]},"capital":{"type":["string","null"]},"population":{"type":["object","null"],"properties":{"year":{"type":"integer"},"value":{"type":"number"}},"description":"Total population, latest year with data; null when none"},"income_group":{"type":["string","null"]},"lending_type":{"type":["string","null"]},"capital_latitude":{"type":["number","null"]},"capital_longitude":{"type":["number","null"]},"gdp_per_capita_usd":{"type":["object","null"],"properties":{"year":{"type":"integer"},"value":{"type":"number"}},"description":"GDP per capita in current US dollars, latest year with data; null when none"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vEr0XuJJh9ai7ZSnAjgjb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a country's ISO codes, name, region, income group, lending type, capital with coordinates, latest population, and GDP per capita given a 2-letter country code.","exampleAgentPrompt":"What's the capital city, region, income group, latest population, and GDP per capita for Germany (country code DE)?","exampleUseCases":[{"title":"Enrich pipeline with country metadata","prompt":"I have a list of transactions tagged with 2-letter country codes — can you pull the full country name, region, income group, and capital coordinates for 'NG' so I can enrich my records?"},{"title":"Research country economic profile","prompt":"Give me Brazil's World Bank income group, lending type, latest population figure, and GDP per capita in USD — use the country code BR."},{"title":"Locate a country's capital for mapping","prompt":"I need the latitude and longitude of the capital city of Japan — look it up using the country code JP."}],"resultDescription":"A JSON object containing the country's ISO 2 and ISO 3 codes, full name, region, income group, lending type, capital city name, capital latitude and longitude, latest population (value and year), and latest GDP per capita in current USD (value and year). Fields are null when no data is available.","failureModes":["Invalid or unrecognized country code returns a not-found error","Region or income group aggregates (e.g. 'WLD', 'EU') are not countries and return not found","Lowercase vs uppercase input is handled transparently","Population or GDP fields may be null if World Bank data is unavailable for that country","Malformed path parameter may result in an error response"],"whenToPreferThis":"Use this endpoint when you need a quick, structured country profile including World Bank classification (income group, lending type), capital coordinates, and the latest macro indicators (population, GDP per capita) from a single call using just a 2-letter ISO code. Prefer this over scraping Wikipedia or calling multiple APIs when you want a lightweight, pay-per-call JSON response without authentication setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T12:35:37.741Z","isFirstParty":false,"canonicalSlug":"country-profile-by-iso-3166-code-7af168fb"}