# Emoji Flag Lookup

> Emoji Flag Lookup is a paid API for AI agents from emoji.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns the flag emoji for a given ISO 3166-1 alpha-2 country code

## Facts

- Endpoint: POST https://emoji.openverbs.com/v1/flag
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/emoji-flag-lookup-1bfe3fe3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aBRI5qxLf3qG4KGIj-D0X

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-lookup-1bfe3fe3 -d '<json body>'
```

Example prompt: What's the flag emoji for Japan? Give me the emoji flag for country code JP.

## When to prefer this

Use this endpoint when you need a quick, simple lookup of the flag emoji for a specific country given its ISO 3166-1 alpha-2 code. Ideal for enriching UI displays, travel apps, localization features, or any agent workflow that needs to decorate country names with their corresponding flag emoji.

## Known failure modes

- Invalid or unsupported country code returns an error or empty result
- Malformed request body (missing 'country' field) returns a validation error
- Non-alpha-2 country codes (e.g., 3-letter codes) may not be recognized
- Payment failure via x402 protocol prevents endpoint access

## How this service works

Build the flag emoji for an ISO 3166-1 alpha-2 country code from its regional-indicator symbols (e.g. "US" → 🇺🇸). Non two-letter codes are clean 400s.

## Output

A flag emoji character corresponding to the provided ISO 3166-1 alpha-2 country code (e.g., 🇺🇸 for 'US', 🇫🇷 for 'FR').

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "country"
     ],
     "properties": {
      "country": {
       "type": "string",
       "description": "ISO 3166-1 alpha-2 country code, e.g. \"US\"."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/emoji-flag-lookup-1bfe3fe3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from emoji.openverbs.com](https://www.zero.xyz/host/emoji.openverbs.com/llms.txt)
