XRates API
Free and reliable currency exchange rate REST API. Get latest and historical rates for 45+ currencies from ECB, CBR and other trusted sources.
Finance & banking#currency-exchange
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Free and reliable currency exchange rate REST API. Get latest and historical rates for 45+ currencies from ECB, CBR and other trusted sources.
Endpoints 7
General
- GETAPI Status
/statusHealth check endpoint. Returns operational status and data source health. No authentication required. - GETCurrencies List
/currenciesGet a list of all supported currencies with their names.
Rates
- GETLatest Rates
/latestGet the latest exchange rates for all or selected currencies. Each currency is returned at its own most recent rate; date is the newest date in the response.… - GETHistorical Rates
/:dateGet exchange rates for a specific historical date. On weekends and holidays (when central banks don't publish) each currency carries its last published rate…
Conversion
- GETConvert Currency
/convert?from=USD&to=EURConvert an amount between two currencies. Requires Basic plan or higher.
Analytics
- GETTime Series
/timeseries?start_date=2025-01-01&end_date=2025-01-31Get daily rates between two dates. Max 365 days range. Every calendar day is included: weekends and holidays carry the last published rate. Requires… - GETFluctuation
/fluctuation?start_date=2024-01-01&end_date=2024-01-01Get currency fluctuation data between two dates. A weekend or holiday start/end date uses the last rate published before it. Requires Professional plan or…
API details
- Base URL
https://xratesapi.com/api/v1- Authentication
- A bearer token in the Authorization header
- Operations
- 7 operations on 7 pathsGET 7
- Main resources
- Analytics 2General 2Rates 2Conversion 1
- Response formats
application/json- Description format
- OpenAPI 3.0.3, API version
1.0.0 - Links
- OpenAPI document · Support
- Listed from
- Xratesapi's published OpenAPI description
How to test the XRates API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the XRates API collection, without the publisher's secrets.
- Add your credentialsThis API uses A bearer token in the Authorization header. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “API Status” (GET /status), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the XRates API?
Free and reliable currency exchange rate REST API. Get latest and historical rates for 45+ currencies from ECB, CBR and other trusted sources. It is listed under Finance & banking and has 7 endpoints.
Who publishes the XRates API?
It is listed from XRates API's public API description (an OpenAPI document), not published by XRates API on Swastik Codes. Anyone who controls xratesapi.com can claim the profile by adding a DNS TXT record.
What is the base URL of the XRates API?
Requests go to https://xratesapi.com/api/v1. Endpoint paths are added to this base URL.
How do I authenticate with the XRates API?
With A bearer token in the Authorization header.
How many endpoints does the XRates API have?
7 operations on 7 paths (7 GET). The largest groups are Analytics, General, Rates, Conversion.
Is forking the XRates API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.