{"uid":"cap_5wflCdgjUcLeS3dBL9oNl","slug":"surefact-fx-currency-converter-d5c8b173","name":"Surefact FX Currency Converter","description":"Verified, pay-per-call tools for AI agents: read web pages, check emails, audit DNS and domains, convert currencies, vet package versions for vulnerabilities, and roll provably fair dice for games. Every answer is checked against its source or comes with a proof. No signup or API key: pay each call in USDC on Base with x402. Failed calls are never charged.","url":"https://api.surefact.workers.dev/v1/fx?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":["from","to"],"properties":{"to":{"type":"string","description":"ISO 4217 code, e.g. EUR."},"date":{"type":"string","description":"Day of the rate as YYYY-MM-DD, from 1999-01-04 to today (UTC). Default: the latest rates. A weekend or holiday answers the business day before."},"from":{"type":"string","description":"ISO 4217 code, e.g. USD."},"amount":{"type":"string","description":"Amount to convert (default 1)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"to":"EUR","date":"2026-10-09","from":"USD","rate":0.892379,"amount":100,"result":89.2379,"source":"European Central Bank reference rates","inverse_rate":1.1206,"requested_date":"2026-10-11"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_R4CFeA5n7CJqhsSc0dCP5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a currency amount from one ISO 4217 currency to another using European Central Bank reference rates, with optional historical date support","exampleAgentPrompt":"What's 250 US dollars worth in euros today? Use ECB reference rates and show me the exchange rate and result.","exampleUseCases":[{"title":"Travel budget currency check","prompt":"I'm going to Japan next week and want to know how much 1500 US dollars is in Japanese yen — what's the current exchange rate?"},{"title":"Historical FX rate for accounting","prompt":"What was the exchange rate from British pounds to euros on March 15, 2024? I need the exact ECB rate for our expense report."},{"title":"Invoice conversion for freelancer","prompt":"I need to convert 3500 Swiss francs to US dollars at today's rate — can you tell me the amount and the rate used?"}],"resultDescription":"A JSON object containing: the source and target currency codes, the conversion rate from ECB reference data, the inverse rate, the amount requested, the computed converted result, the effective rate date (adjusted to prior business day if weekend/holiday), and the source attribution string.","failureModes":["Invalid or unsupported ISO 4217 currency code returns an error","Date outside the supported range (before 1999-01-04) returns an error","Non-trading days (weekends/holidays) are silently adjusted to the prior business day rather than erroring","Missing required 'from' or 'to' query parameters causes a validation error","Network or upstream ECB data unavailability may cause transient failures (not charged on failure)"],"whenToPreferThis":"Choose this endpoint when you need verified, source-attributed FX rates backed by ECB reference data, especially when accuracy and proof of source matter. It supports historical rates back to 1999, requires no API key, charges only on success, and is optimized for AI agent use with pay-per-call USDC pricing. Prefer this over general-purpose FX APIs when auditability, provenance, and per-call cost control are priorities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T12:37:09.824Z","isFirstParty":false,"canonicalSlug":"surefact-fx-currency-converter-d5c8b173"}