# Locale Format API – Verify Endpoint

> Locale Format API – Verify Endpoint is a paid API for AI agents from localeformat.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Validates a pre-formatted locale string (currency, number, or datetime) against CLDR rules, returning whether it is correct and explaining any differences

## Facts

- Endpoint: GET https://localeformat.com/v1/verify?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/locale-format-api-verify-endpoint-9a081b7d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_847xZ4G7RToorhGgKvxkP

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 locale-format-api-verify-endpoint-9a081b7d
```

Example prompt: Can you verify whether '1.234,56 €' is the correctly CLDR-formatted representation of 1234.56 EUR for the de-DE locale, and tell me what's wrong if it isn't?

## When to prefer this

Use this endpoint when you have already produced a formatted locale string and need to validate it against authoritative CLDR rules before displaying or transmitting it — particularly useful in QA pipelines, pre-release checks, or agent loops where formatting correctness must be confirmed. Prefer this over formatting endpoints when the string already exists and you need a diff/diagnosis rather than a fresh format.

## Known failure modes

- Missing required query parameters (type, formatted, locale) → 400 Bad Request
- Invalid or unrecognized BCP 47 locale tag → error or fallback to a resolved locale
- Unsupported format type value → validation error
- Malformed or non-numeric value for currency/number types → error
- Payment failure via x402 protocol → 402 Payment Required

## How this service works

Verified, CLDR-versioned locale formatting for ~700 locales: currency amounts, numbers, dates and the raw rules — plus a verify endpoint to check your own output. Formatting per CLDR conventions — informational, not legal advice.

## Output

Returns a JSON object with: a boolean `valid` field indicating correctness, the `expected` CLDR-correct string, an array of `differences` describing specific formatting errors (e.g. wrong symbol position, wrong separator), and a `resolvedLocale` confirming which locale was applied.

## 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": [
      "type",
      "formatted",
      "locale"
     ],
     "properties": {
      "iso": {
       "type": "string",
       "description": "for type=datetime"
      },
      "type": {
       "type": "string",
       "description": "currency | number | datetime"
      },
      "value": {
       "type": "number",
       "description": "for type=number"
      },
      "amount": {
       "type": "number",
       "description": "for type=currency"
      },
      "locale": {
       "type": "string",
       "description": "BCP 47 locale tag, e.g. de-DE, de-CH, en-IN, ja-JP, ar-EG"
      },
      "currency": {
       "type": "string",
       "description": "for type=currency"
      },
      "formatted": {
       "type": "string",
       "description": "the string to verify"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": false,
  "expected": "1.234,56 €",
  "differences": [
   "currency symbol on the wrong side (locale uses suffix)"
  ],
  "resolvedLocale": "de-DE"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/locale-format-api-verify-endpoint-9a081b7d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from localeformat.com](https://www.zero.xyz/host/localeformat.com/llms.txt)
