{"uid":"cap_B7qnXEnoZPSgEac6AdQei","slug":"random-country-lookup-d396f6d3","name":"Random Country Lookup","description":"Return a real randomly selected sovereign country with normalized ISO codes and flag emoji.","url":"https://x402-zoo.lolagent.workers.dev/api/random-country","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":[],"properties":{"seed":{"type":"string"}}}},"additionalProperties":false}}},"responseSchema":null,"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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gJWmTWSZRSLc-lvlUlFZw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a randomly selected real sovereign country with its ISO alpha-2, alpha-3 codes, and Unicode flag emoji","exampleAgentPrompt":"Pick a random country for me and tell me its name, flag emoji, and ISO codes — use seed 'game42' so I can reproduce the result.","exampleUseCases":[{"title":"Geography trivia question generator","prompt":"I'm building a trivia quiz — grab me a random country with its flag and ISO codes to use as today's question."},{"title":"Random country for onboarding demo","prompt":"I need a random real sovereign country with its ISO alpha-2 and alpha-3 codes to populate a demo user profile — can you fetch one?"},{"title":"Reproducible random country for A/B test","prompt":"Pull a random country using seed 'test-run-7' so I always get the same country for my reproducible test scenario, and include the flag emoji."}],"resultDescription":"A JSON object containing the full country name, ISO alpha-2 code (e.g. 'DE'), ISO alpha-3 code (e.g. 'DEU'), and the corresponding Unicode flag emoji for a randomly selected real sovereign country. If a seed is provided, the selection is reproducible.","failureModes":["Invalid seed value may return an error or unexpected result","Service unavailable returns a 5xx error","Payment not accepted results in 402 response blocking access"],"whenToPreferThis":"Choose this endpoint when you need a random, real, normalized sovereign country on demand — especially when you also need ISO codes and flag emoji in a single call. Prefer it over building your own country table or calling a general geography API when cost ($0.001 USDC) and simplicity matter. Use the optional seed parameter for reproducible results in tests or demos.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:54:01.832Z","isFirstParty":false}