{"uid":"cap_yLgaBNxXEJs9XodMIm3qf","slug":"freetier-agent-api-country-lookup-1a372343","name":"FreeTier Agent API — Country Lookup","description":"Pay-per-call data API for AI agents: AI model prices and cost calculator, 4,259 MCP servers, email domain checks, text-to-JSON extraction, country/holiday/currency lookup, page and link checks, page-to-markdown, 2,230 verified APIs. x402, USDC on Base, no signup. Sources cited in every response.","url":"https://freetier-agent-api.pages.dev/api/country?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"},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string","description":"ISO2, ISO3 or country name"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"iso2":"DK","name":"Denmark","capital":"Copenhagen","timezones":[{"timezone":"Europe/Copenhagen","local_time":"2026-10-17 22:00","utc_offset":"GMT+2"}],"currency_code":"DKK"}},"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.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_iH0xp1lHXFJIgQta9ZpoF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns country details (capital, timezones, local time, UTC offset, currency code) for a given country name or ISO code","exampleAgentPrompt":"What is the capital city, currency, and current local time in Japan? Look it up by country name.","exampleUseCases":[{"title":"Timezone check for scheduling across borders","prompt":"I need to schedule a call with a colleague in Denmark — what timezone are they in and what's their current local time?"},{"title":"Currency lookup for travel planning","prompt":"I'm planning a trip to South Korea and want to know what currency they use and what the capital city is — can you pull up the country details?"},{"title":"Enrich order data with country metadata","prompt":"I have a customer order from a user in Brazil — can you look up the country using the ISO2 code BR and give me the capital, timezone, and currency code?"}],"resultDescription":"A JSON object containing the country's ISO2 code, full name, capital city, an array of timezones (each with timezone name, current local time, and UTC offset), and the currency code.","failureModes":["Invalid or unrecognized country name returns an error or empty result","Ambiguous country name may return unexpected result","ISO3 codes must be valid 3-letter codes or the query fails","Non-string or malformed 'q' parameter causes a 400-style error","Payment failure (insufficient USDC balance) results in 402 response before any data is returned"],"whenToPreferThis":"Use this endpoint when you need structured country metadata — capital, timezone, local time, and currency — from a name or ISO code, especially in agent workflows that require no signup and support x402/USDC micropayment billing. Prefer this over free REST country APIs when you need a pay-per-call model with no API key or account management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:53:13.236Z","isFirstParty":false,"canonicalSlug":"freetier-agent-api-country-lookup-1a372343"}