# Country Flag Emoji Resolver

> Country Flag Emoji Resolver is a paid API for AI agents from x402-zoo.lolagent.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Resolves a country name or ISO alpha-2/alpha-3 code to its Unicode flag emoji and normalized country identifiers

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/country-flag
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/country-flag-emoji-resolver-5f90bc2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tG7S9TRdtz2AYL-brVgbr

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 country-flag-emoji-resolver-5f90bc2d
```

Example prompt: What is the Unicode flag emoji for Japan? I have the ISO code 'JP' and need the emoji and normalized identifiers.

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.001 USDC), single-call lookup to convert any country name or ISO code into its Unicode flag emoji and normalized identifiers, especially in internationalization, UI enrichment, or data normalization workflows.

## Known failure modes

- Unknown or misspelled country name returns an error or empty result
- Ambiguous country codes (e.g. deprecated codes) may not resolve correctly
- Non-existent ISO codes return a not-found error
- Missing required 'country' query parameter returns a validation error

## How this service works

Resolve a country name or ISO alpha-2/alpha-3 code to Unicode flag emoji and normalized identifiers.

## Output

Returns the Unicode flag emoji for the requested country along with normalized country identifiers such as ISO alpha-2 and alpha-3 codes, enabling consistent display and data enrichment for country-related information.

## 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": [
      "country"
     ],
     "properties": {
      "country": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/country-flag-emoji-resolver-5f90bc2d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-zoo.lolagent.workers.dev](https://www.zero.xyz/host/x402-zoo.lolagent.workers.dev/llms.txt)
