# utility-api Utility data for AI agents. Pay per call, no signup required. ## Payment - x402: send the request; a 402 response states the price in USDC. No account needed. - API key: send 'X-API-Key: ' with prepaid credits (1 credit = $0.001). - MCP: POST /mcp with 'Authorization: Bearer ' for paid tools; validate_iban is free. - Same API key & credits work on validation-api.dropcoin.workers.dev and a11y-api.dropcoin.workers.dev — one shared balance for all dropcoin APIs. ## Endpoints - POST /v1/iban/validate — Validate an IBAN (ISO 13616 check digits + country length). Send {"iban":"..."} as a JSON body so the IBAN never appears in URLs, logs or payment metadata. (1 credit(s)) - GET /v1/iban/validate — DEPRECATED, use POST: validate an IBAN via ?iban=. The query string ends up in server logs and in the x402 payment resource field — prefer the POST variant. (1 credit(s)) - GET /v1/holidays/* — Public holidays for an EU country and year (2026-2028) as /v1/holidays/{country}/{year}, optionally narrowed with ?region= for German states (e.g. BY). (2 credit(s)) - GET /v1/vat-rates — Standard and reduced VAT rates for all 27 EU countries (source: EU TEDB). (1 credit(s)) - GET /v1/vat-rates/* — Standard and reduced VAT rate for one EU country as /v1/vat-rates/{country} (source: EU TEDB). (1 credit(s)) - GET /v1/timezone/* — UTC offset, DST flag and ISO local time for an IANA zone as /v1/timezone/{zone} (URL-encode the '/', e.g. Europe%2FBerlin), or the zone list for a supported ISO-2 country code. (1 credit(s)) - GET /v1/fx/latest — Latest ECB euro foreign exchange reference rates. (2 credit(s)) - GET /v1/fx/convert — Convert an amount between two currencies via ECB EUR cross-rates (?from=&to=&amount=). (2 credit(s)) - GET /health — free - GET /v1/account — free (requires a valid key) - GET /openapi.json — free, full API reference - GET /.well-known/x402 — free, machine-readable payment discovery - POST /mcp — free to call; paid tools charge credits individually, see tool descriptions Errors from upstream sources return 503 and are never charged.