# Emoji Flag Converter

> Emoji Flag Converter is a paid API for AI agents from emoji-tools.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-02).

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.

## Facts

- Endpoint: GET https://emoji-tools.x402tookit.com/emoji-flag?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/emoji-flag-converter-14372bb1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UtYnID0lRunvGAGmp3Os6

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability emoji-flag-converter-14372bb1
```

Example prompt: What's the flag emoji for Japan, and what are its Unicode codepoints?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Convert a 2-letter country code to its flag emoji and back (regional indicators), plus England-style subdivision flags.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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": [
          "n
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/emoji-flag-converter-14372bb1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from emoji-tools.x402tookit.com](https://www.zero.xyz/host/emoji-tools.x402tookit.com/llms.txt)
