{"uid":"cap_UtYnID0lRunvGAGmp3Os6","slug":"emoji-flag-converter-14372bb1","name":"Emoji Flag Converter","description":"Convert a 2-letter country code to its flag emoji and back (regional indicators), plus England-style subdivision flags.","url":"https://emoji-tools.x402tookit.com/emoji-flag?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":"Country code (US), subdivision (GB-ENG), flag emoji, or a country name (Japan)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"code":{"type":["null","string"]},"flag":{"type":["null","string"]},"kind":{"type":["null","string"]},"name":{"type":["null","string"]},"input":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"encoding":{"type":["null","object"],"properties":{"utf8Bytes":{"type":["null","number"]},"codePoints":{"type":["null","number"]},"codePointList":{"type":["array","null"],"items":{"type":"string"}},"jsStringLength":{"type":["null","number"]},"utf16CodeUnits":{"type":["null","number"]},"graphemeClusters":{"type":["null","number"]}}},"codepoints":{"type":["array","null"],"items":{"type":"string"}},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"attribution":{"type":["null","string"]},"emojiVersion":{"type":["null","string"]},"recommendedByUnicode":{"type":["boolean","null"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_i_UGI_uQu6-CHHIUrYYSX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a 2-letter country code, subdivision code, or country name to its flag emoji (and vice versa), returning codepoints, encoding details, and Unicode metadata.","exampleAgentPrompt":"What's the flag emoji for Japan, and what are its Unicode codepoints?","exampleUseCases":[{"title":"Country code to flag in UI","prompt":"I'm building a country selector dropdown — can you give me the flag emoji and Unicode codepoints for the US, so I can display it next to the country name?"},{"title":"Decode unknown flag emoji","prompt":"I've got this emoji in some user-submitted text: 🏴󠁧󠁢󠁥󠁮󠁧󠁿 — what country or subdivision does it represent and what's its ISO code?"},{"title":"Subdivision flag for England","prompt":"I need the flag emoji for England specifically (not the UK), including its subdivision code and the regional indicator codepoints — can you look that up?"}],"resultDescription":"Returns the flag emoji, its ISO country or subdivision code, the country name, Unicode codepoints list, encoding details (UTF-8 bytes, code points, JS string length, grapheme clusters), the emoji version that introduced it, and whether Unicode recommends it — plus a summary and any disclaimers.","failureModes":["Unknown or invalid country code returns null fields with an error summary","Non-flag emoji input returns no match","Subdivision codes outside the supported set (e.g. non-England-style) may return null","Malformed query (empty string) may return degraded or null response","Regional indicator input that doesn't map to a known country returns unrecognized result"],"whenToPreferThis":"Use this endpoint when you need to bidirectionally convert between ISO country/subdivision codes and flag emoji, and also want encoding details (codepoints, UTF-8 bytes) or Unicode version metadata. Prefer it over generic emoji lookup endpoints when the specific use case is country/flag identity, internationalization, or regional indicator sequences including England-style subdivision flags.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T12:30:54.907Z","isFirstParty":false,"canonicalSlug":"emoji-flag-converter-14372bb1"}