Loading
Loading
Access high-fidelity exchange rates for 171+ Fiat currencies and 830+ Cryptocurrencies. Featuring 60-second update intervals, 99.9% uptime, and historical data for 170+ currencies via a single, developer-friendly REST API.
APIFreaks provides a high-availability Currency Exchange Rate API designed for scalable financial applications. Supporting 171+ fiat currencies and 830+ cryptocurrencies, our platform bridges the gap between traditional forex markets and the digital economy. Whether you require real-time 60-second updates for live trading or historical exchange rates for auditing and financial analysis, our RESTful endpoints deliver interbank-grade accuracy with 99.9% uptime.
Dynamically convert product prices at checkout using live USD to INR or EUR rates to reduce cart abandonment.
Power your dashboard with 60-second refreshes for 830+ cryptocurrencies and stablecoins.
Retrieve accurate historical exchange rates for any date to simplify tax compliance and cross-border accounting.
Use our Time-Series and Fluctuation endpoints to track market trends and volatility.
Stop switching between providers. Access 171+ Fiat currencies and 830+ Cryptocurrencies (including stablecoins and altcoins) plus precious metals through a single API integration.
Power your apps with high-frequency data. Choose your update interval—1 minute, 10 minutes, 1 hour, or daily—to balance performance with precision. Optimized for e-commerce and fintech dashboards.
Retrieve historical exchange rates for any date with interbank-grade accuracy. Essential for financial auditing, tax compliance, and backtesting trading strategies across 1,000+ assets.
Reduce payload size and latency by requesting only the symbols you need. Switch your base currency (USD, EUR, INR, etc.) on the fly to simplify cross-border price calculations.
$ pip install requests
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| format | No | String | json | Response format: "json" (default) or "xml". |
| base | No | String | USD | Base currency |
| symbols | No | Array | - | Comma separated list of desired currencies/ commodities symbols |
| updates | No | String | 1m | exchange rates update period. Possible values are: (1) 1d - daily update (2) 1h - hourly update (3) 10m - 10 minute update (4) 1m - 1 minute update |
$ pip install requests
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| format | No | String | json | Response format: "json" (default) or "xml". |
| base | No | String | USD | Base currency |
| symbols | No | Array | - | Comma separated list of desired currencies/ commodities symbols |
| date | Yes | String | - | specific date (format YYYY-MM-DD) of which exchange rates required. |
| HTTP Status | Reasons |
|---|---|
| 404 | Rates of provided currency [CURRENCY_CODE] are not available in our database! |
| 404 | Rates of provided symbols are not available in our database! |
| HTTP Status | Reasons |
|---|---|
| 400 | Provided Date [DATE] is in invalid format. It should be like YYYY-MM-DD! |
| 404 | Rates of provided currency [CURRENCY_CODE] are not available in our database! |
| 404 | Rates of provided symbols are not available in our database! |
| 404 | Rates of provided date [DATE] are not available in our database. |
| 404 | Rates of provided currency [CURRENCYCODE] are available from [AVAILABLEFROMDATE] to [AVAILABLEUNTIL_DATE] in our database! |
To get the latest exchange rates, call the endpoint with the api key. The response will be exchange rates of all the currencies.
# Response { "date": "2023-03-21 12:43:00+00", "base": "USD", "rates": { "AGLD": "2.3263929277654998", "FJD": "2.21592", "MXN": "18.670707655673546", "LVL": "0.651918", "SCR": "13.21713243157135", "CDF": "2068.490771", "BBD": "2.0", "HNL": "24.57644632001569", . . . } }$ curl -X 'GET' 'https://api.apifreaks.com/v1.0/currency/rates/latest?apiKey=API-KEY'
For latest currency rates endpoint, pass the updates query parameter to get the exchange rates that are updated after a specific period. The possible values are 1d, 1h, 10m, and 1m, which will return exchange rates updated every 1 day, 1 hour, 10 minutes and 1 minute in our database.
# Get exchange rates that get updated every 10 minutes.$ curl -X 'GET' 'https://api.apifreaks.com/v1.0/currency/rates/latest?apiKey=API-KEY&updates=10m'
Pass the symbols query parameter that is comma separated list of currency codes whose exchange rates are required. The response will be the exchange rates of the desired currencies.
# Response { "date": "2023-03-21 13:26:00+00", "base": "USD", "rates": { "EUR": "0.9278605451274349", "GBP": "0.8172754173817152", "PKR": "281.6212943333344", "USD": "1.0" } }$ curl -X 'GET' 'https://api.apifreaks.com/v1.0/currency/rates/latest?apiKey=API-KEY&symbols=PKR,GBP,EUR,USD'
Pass the base query parameter to change the base currency for the exchange rates calculation.
# Response { "date": "2023-03-21 13:29:00+00", "base": "EUR", "rates": { "EUR": "1.0", "GBP": "0.8810222794437683", "PKR": "303.60317616075287", "USD": "1.0780547579946744" } }$ curl -X 'GET' 'https://api.apifreaks.com/v1.0/currency/rates/latest?apiKey=API-KEY&symbols=PKR,GBP,EUR,INR&base=EUR
Use the historical exchange rates endpoint https://api.apifreaks.com/v1.0/currency/rates/historical and pass the date query parameter in the format 'YYYY-MM-DD' to get the exchange rates for any date.
# Response { "date": "2024-03-20", "base": "USD", "rates": { "FJD": "2.1176", "MATIC": "0.6832001093120175", "MXN": "20.385892", "STD": "21382.190504", "SCR": "14.408136", "CDF": "2005.74861", "BBD": "2.0", "HNL": "24.411536", "UGX": "3583.338449", "ZAR": "14.9602", "STN": "22.425165", . . . } }$ curl -X 'GET' 'https://api.apifreaks.com/v1.0/currency/rates/historical?apiKey=API-KEY&date=2024-03-20'
To use the Currency Rates APIs, API credits are required. Charges are applied only for successful queries, indicated by a 2xx status code. If a request results in a 4xx or 5xx status code, no credits will be deducted, and any credits already charged will be promptly refunded.
| Service | Credits |
|---|---|
| Latest Currency rates | 4 credits |
| Historical Currency Rates | 2 credits |
| Non-USD Base Currency | 2 additional credit |
Utilize the Credits Usage API to efficiently monitor your recent consumption of both one-off and subscription credits. This API provides a streamlined way to track and manage your credit usage, ensuring you stay informed about your remaining balance and can optimize your resource allocation effectively.