{"uid":"cap_YC3b_jaO4mZZSkC-I5DKJ","slug":"fxrate-by-youraitools-32f52329","name":"FXRate by YourAITools","description":"Currency converter API for AI agents. Convert an amount from one currency to another (USD, EUR, GBP, JPY, CNY, INR, CAD, AUD, CHF and 22 more) at the official European Central Bank reference rate, today or on a past date back to 1999. Returns rate, result, inverse rate and the rate date. Search intents: currency converter api, fx convert, exchange rate api, convert usd to eur, forex rate, money conversion for agents.","url":"https://api.youraitools.co/fx/v1/convert?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":"To currency: ISO 4217 code, e.g. USD, EUR, GBP, JPY (31 supported)"},"date":{"type":"string","description":"Optional YYYY-MM-DD (default: latest). Weekends/holidays use the previous ECB rate."},"from":{"type":"string","description":"From currency: ISO 4217 code, e.g. USD, EUR, GBP, JPY (31 supported)"},"amount":{"type":"number","description":"Amount to convert (default 1), up to 1e15"}},"description":"Search intents: currency converter api, fx convert, exchange rate api, convert usd to eur, forex rate, historical exchange rate"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["from","to","amount","rate","result","date"],"properties":{"to":{"type":"string"},"date":{"type":"string","description":"ECB reference date used (YYYY-MM-DD)"},"from":{"type":"string"},"rate":{"type":"number"},"amount":{"type":"number"},"result":{"type":"number"},"source":{"type":"string"},"derived":{"type":"boolean","description":"true unless the base is EUR: the rate is computed (inverse or cross) from the ECB euro reference rates"},"inverse_rate":{"type":"number"}}}}}}},"responseSchema":{"type":"json","example":{"to":"EUR","date":"2026-10-23","from":"USD","rate":0.89342,"amount":100,"result":89.342,"source":"Source: ECB statistics (euro foreign exchange reference rates), via the open-source Frankfurter API.","derived":true,"inverse_rate":1.119294}},"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_8HArJxa2n2mlz5TLalNAB","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":"Convert an amount between 31 currencies at the official European Central Bank reference rate, for today or any date back to 1999","exampleAgentPrompt":"Can you convert 250 US dollars to euros using today's ECB reference rate?","exampleUseCases":[{"title":"Travel budget currency conversion","prompt":"I'm planning a trip to Japan — how much would 2000 US dollars be in Japanese yen at today's official exchange rate?"},{"title":"Historical invoice reconciliation","prompt":"What was the GBP to EUR exchange rate on March 15 2023? I need to reconcile an old invoice that was billed in pounds but reported in euros."},{"title":"Multi-currency e-commerce pricing","prompt":"I need to show a price of 99 EUR in both CAD and AUD for my checkout page — can you get me those conversions at the current ECB rate?"}],"resultDescription":"Returns a JSON object containing the source currency, target currency, the original amount, the ECB reference rate used, the converted result, the inverse rate, the ECB rate date, whether the rate was derived (cross-computed from EUR base), and a source attribution string.","failureModes":["Unsupported currency code returns an error — only 31 ISO 4217 codes are supported","Weekend or holiday dates return the most recent prior ECB rate, which may surprise callers expecting a specific date","Dates before 1999 are out of range and will fail","Amount exceeding 1e15 is rejected","Malformed date format (not YYYY-MM-DD) causes a bad request error","Payment failure via x402 protocol returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need official ECB reference rates (not bank or broker spreads), historical rates back to 1999, or a lightweight single-call currency conversion with no authentication setup beyond a micro-payment. Ideal for financial reporting, invoice reconciliation, and compliance use cases where ECB rates are the accepted standard. Prefer alternatives if you need real-time mid-market or live forex rates, rates for exotic currencies outside the 31 supported, or bulk batch conversions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T04:03:05.342Z","isFirstParty":false,"canonicalSlug":"fxrate-by-youraitools-32f52329"}