{"uid":"cap_847xZ4G7RToorhGgKvxkP","slug":"locale-format-api-verify-endpoint-9a081b7d","name":"Locale Format API – Verify Endpoint","description":"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.","url":"https://localeformat.com/v1/verify?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":["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"}}}}},"responseSchema":{"type":"json","example":{"valid":false,"expected":"1.234,56 €","differences":["currency symbol on the wrong side (locale uses suffix)"],"resolvedLocale":"de-DE"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Dmn0jxgfydKIhRN7z0dS9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a pre-formatted locale string (currency, number, or datetime) against CLDR rules, returning whether it is correct and explaining any differences","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Validating invoice currency display","prompt":"I'm generating invoices for German customers and I want to make sure '1.234,56 €' is the correct CLDR way to display 1234.56 EUR for the de-DE locale — can you verify it and list any mistakes?"},{"title":"Catching number format bugs before release","prompt":"Before we ship our app, can you check whether '1,23,456.78' is a valid CLDR-formatted number for the en-IN locale and explain any differences from what's expected?"},{"title":"Debugging datetime formatting for Japanese users","prompt":"Can you verify that '2024年01月15日' is the correctly CLDR-formatted datetime for the ja-JP locale using ISO date 2024-01-15, and tell me if anything is off?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:32:11.370Z","isFirstParty":false,"canonicalSlug":"locale-format-api-verify-endpoint-9a081b7d"}