{"uid":"cap_VnjvhapYo60o7bOHfQKYi","slug":"x402-agentutility-ai-3e01ac10","name":"x402.agentutility.ai Exchange Rates","description":"Exchange rates. Latest or historical FX rates between currencies, sourced from the European Central Bank (Frankfurter API). 30+ currency pairs. Optional amount conversion. No commercial restrictions. Specify a base currency (default USD), an optional quote currency or list, an optional date (YYYY-MM-DD or 'latest'), and an optional amount to also receive a converted value when a single quote is supplied.","url":"https://x402.agentutility.ai/exchange-rates","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":[],"properties":{"base":{"type":"string","description":"ISO 4217 base currency code (e.g. 'USD', 'EUR'). Default 'USD'."},"date":{"type":"string","description":"'latest' (default) or a historical date in YYYY-MM-DD format."},"quote":{"description":"Single ISO 4217 quote currency, or array of codes. Omit for all available rates."},"amount":{"type":"number","description":"Optional amount in the base currency. When a single quote is supplied, the response includes the converted amount."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"base":{"type":"string"},"date":{"type":"string"},"rates":{"type":"object","properties":{"EUR":{"type":"number"},"GBP":{"type":"number"},"JPY":{"type":"number"}}},"source":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"base":"USD","date":"2026-05-06","rates":{"EUR":0.92,"GBP":0.79,"JPY":154.21},"source":"https://api.frankfurter.dev"}},"example":{"request":{"input":{"body":{"base":"USD","date":"latest","quote":["EUR","GBP","JPY"],"amount":1000},"type":"http","method":"POST","bodyType":"json"}},"response":{"base":"USD","date":"2026-06-03","rates":{"EUR":0.86103,"GBP":0.74367,"JPY":159.86},"source":"https://api.frankfurter.dev"}},"exampleRequest":{"base":"USD","date":"latest","quote":["EUR","GBP","JPY"],"amount":1000},"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_na9dnzDuxzKtyXAeOP0at","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns latest or historical foreign exchange rates from the European Central Bank, with optional amount conversion across 30+ currency pairs.","exampleAgentPrompt":"What's the current exchange rate from USD to EUR, GBP, and JPY, and also tell me how much 1000 USD is worth in euros right now?","exampleUseCases":null,"resultDescription":"Returns a JSON object containing exchange rates for the requested currency pairs relative to the base currency, the date of the rates (latest or historical), and optionally a converted amount value when a single quote currency and amount are provided.","failureModes":["Unsupported or misspelled currency code returns an error","Future dates are invalid — only 'latest' or past dates accepted","Historical data may not be available before ECB tracking began (pre-1999 for EUR)","Invalid date format (not YYYY-MM-DD) returns a parsing error","Micro-payment failure ($0.002 USDC) blocks the request if wallet is underfunded"],"whenToPreferThis":"Choose this endpoint when you need reliable, ECB-sourced exchange rates for 30+ major currency pairs with no commercial use restrictions, especially when historical rates by date or optional direct amount conversion in a single call is needed. Prefer over general web searches when structured, machine-readable rate data is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:06:48.201Z","isFirstParty":false}