---
title: "Exchange rates and currency conversion API | APIFor"
description: "Daily ECB reference rates for about 30 currencies back to 1999, plus official tax and central bank rates. 1 credit per call, REST and MCP, one API key."
canonical: "https://apifor.dev/services/exchange-rates/"
---

1. [Services](https://apifor.dev/services/)
2. [Exchange rates](https://apifor.dev/services/exchange-rates/)

# Exchange rates and currency conversion API

Daily ECB reference rates for about 30 currencies back to 1999, plus official tax and central bank rates. Convert amounts or pull a history for any pair.

GET /v1/exchange-rates/convert 1 credit About $0.001

[Get a free API key](https://app.apifor.dev/register) [Endpoint reference](https://apifor.dev/docs/reference/exchange-rates/)

## Try it

GET /v1/exchange-rates/convert

```bash
curl 'https://api.apifor.dev/v1/exchange-rates/convert?from=USD&to=IDR&amount=250' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "success": true,
  "data": {
    "source": "ecb",
    "from": "USD",
    "to": "IDR",
    "amount": 250,
    "rate": 18378.05056,
    "result": 4594512.640321,
    "date": "2026-11-27",
    "requested_date": null,
    "calculated": true
  },
  "meta": {
    "attribution": {
      "source": "Source: ECB statistics (euro foreign exchange reference rates)",
      "license": "ESCB policy on free reuse of statistics (source must be quoted, statistics not modified)",
      "license_url": "https://www.ecb.europa.eu/stats/ecb_statistics/governance_and_quality_framework/html/usage_policy.en.html",
      "source_url": "https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html",
      "attribution_page": "https://apifor.dev/sources",
      "notice": "ECB rates are returned unchanged in `published` (units per 1 EUR). Rates against any other base are cross rates calculated by APIFor. The..."
    }
  }
}
```

A real response from our OpenAPI file, with long lists and strings shortened.

## Endpoints and price

| Endpoint | Credits | About |
| --- | --- | --- |
| GET `/v1/exchange-rates` | 1 credit | $0.001 |
| GET `/v1/exchange-rates/history` | 1 credit | $0.001 |
| GET `/v1/exchange-rates/convert` | 1 credit | $0.001 |
| GET `/v1/exchange-rates/{id}` | 1 credit | $0.001 |
| GET `/v1/exchange-rates/coverage` (Free) | Free | $0 |

USD at Starter pack prices ($5 for 5,000 credits). Calls that fail before work starts are refunded.

## Coverage today

Works for any country. Country-specific data: Canada, Indonesia, Malaysia, United Kingdom, United States and European Union.

Leave `country` out to get every covered country, or pass one to narrow it.

Sources, row counts and country-only fields per country: [`GET /v1/exchange-rates/coverage`](https://apifor.dev/docs/reference/exchange-rates/#get-exchange-rates-coverage), free with your API key. [How coverage works](https://apifor.dev/docs/coverage/)

## Limits

- ECB rates come out once per working day, around 16:00 CET. On weekends and holidays you get the last publication.
- Tax rates (source=tax) follow each authority: weekly, monthly or quarterly.
- History: up to 1,830 days per call.
- These are reference and tax rates, not rates a bank will give you.

## Sources and licences

- **[European Central Bank euro reference rates](https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html)**: ESCB free reuse with source quoted
- **[Ministry of Finance tax exchange rates (ID)](https://fiskal.kemenkeu.go.id/informasi-publik/kurs-pajak)**: Statutory instrument, not copyrighted
- **[Bank Indonesia](https://www.bi.go.id)**: Public domain (government)
- **[U.S. Treasury Reporting Rates of Exchange](https://fiscaldata.treasury.gov/datasets/treasury-reporting-rates-exchange/treasury-reporting-rates-of-exchange)**: Public domain (17 U.S.C. 105)
- **[HMRC monthly exchange rates](https://www.trade-tariff.service.gov.uk/exchange_rates)**: Open Government Licence v3.0
- **[Federal Reserve H.10](https://www.federalreserve.gov/releases/h10/)**: Public domain (Federal Reserve Board disclaimer)
- **[Bank of Canada daily exchange rates](https://www.bankofcanada.ca/rates/exchange/daily-exchange-rates/)**: Bank of Canada terms of use (attribution, free-of-charge notice)
- **[Bank Negara Malaysia exchange rates](https://apikijangportal.bnm.gov.my/)**: Terms of Use for BNM Datasets (commercial use allowed with attribution)

Each response carries its attribution in `meta.attribution`. Keep it when you show the data.

## Also on MCP

Connect `https://mcp.apifor.dev/mcp` and your agent gets a tool for this service, billed the same way.

[MCP setup](https://apifor.dev/docs/mcp/)

## Questions

**Can I use a base other than EUR?**

Yes. Other bases are cross rates from the ECB figures and come with calculated: true. published keeps the original per 1 EUR.

**What happened to the old exchange rates dataset?**

It lives on here. source=central-bank, or a request with no source (only date, currency, page, limit or country), returns the same central bank list as before.

**Do I have to credit the ECB?**

Yes. Quote "Source: ECB statistics." Every response carries the attribution.

## Related services

[All services](https://apifor.dev/services/)

- [Payment QR decoder API (QRIS, PromptPay, DuitNow, PayNow, VietQR)](https://apifor.dev/services/payment-qr/)
- [Food price API](https://apifor.dev/services/food-prices/)
- [Fuel price API](https://apifor.dev/services/fuel-prices/)
- [Statistics API](https://apifor.dev/services/statistics/)
- [Central bank policy rates API](https://apifor.dev/services/policy-rates/)
- [Property transactions API](https://apifor.dev/services/property-transactions/)
