> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Open Exchange Rates

> Foreign exchange rates for 170+ currencies: latest, historical end-of-day back to 1999, time series and conversion.

![](https://mintcdn.com/webrouter/JBFYvcRI1PVnd4YX/logo/data-apis/open-exchange-rates.webp?fit=max\&auto=format\&n=JBFYvcRI1PVnd4YX\&q=85\&s=5a34bc91c767024df5de02474b168429)

[Web Catalog · Finance](https://docs.webrouter.net/data-apis.md?category=finance)

Needs&#x20;

`OPEN_EXCHANGE_RATES_APP_ID`

Endpoints

6

Auth

Key in query

[Vendor docs](https://docs.openexchangerates.org/reference/api-introduction)

&#x20;·&#x20;

[Pricing](https://openexchangerates.org/signup)

## Setup

| Variable | | What it is |
| - | - | - |
| `OPEN_EXCHANGE_RATES_APP_ID` | required | An Open Exchange Rates App ID (openexchangerates.org/account/app-ids). Sent as the app\_id query parameter. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* The default base is USD; other bases need a paid plan.
* Every call counts against a monthly request quota (usage.json and currencies.json do not); update frequency depends on the plan.
* All dates and timestamps are UTC.

## Endpoints

GET

Get the latest exchange rates

Rates for every currency against one base, as of the latest update on your plan.

[Open](#open-exchange-rates-latest)

GET

Get exchange rates for a past date

End-of-day rates (last published values of that UTC day) for any date since 1999-01-01.

[Open](#open-exchange-rates-historical)

GET

Get daily rates over a period

Daily rates for every day between two dates (both inclusive), at most one month per call.

[Open](#open-exchange-rates-time-series)

GET

Convert an amount between currencies

Converts a value at the latest rate, returning the rate and timestamp used.

[Open](#open-exchange-rates-convert)

GET

List currency codes and names

Every 3-letter currency code the API offers with its full name.

[Open](#open-exchange-rates-currencies)

GET

Get the App ID's plan and usage

Plan name, monthly quota, features and requests used and remaining this month.

[Open](#open-exchange-rates-usage)

### Get the latest exchange rates

GET

`/latest.json`

`open-exchange-rates.latest`

Rates for every currency against one base, as of the latest update on your plan.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`base`</td><td>string</td><td>query</td><td>Base currency, 3-letter code; default USD. Paid plans only. Example `EUR`</td></tr>
    <tr><td>`symbols`</td><td>string</td><td>query</td><td>Comma-separated 3-letter codes to limit the rates returned. Example `EUR,GBP,JPY`</td></tr>

    <tr>
      <td>
        `show_alternative`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add alternative, black-market and digital currency rates.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.openexchangerates.org/reference/latest-json) · Same job: [currencylayer](https://docs.webrouter.net/data-apis/currencylayer.md#currencylayer-live), [exchangerate.host](https://docs.webrouter.net/data-apis/exchangerate-host.md#exchangerate-host-live), [Fixer](https://docs.webrouter.net/data-apis/fixer.md#fixer-latest), [OANDA](https://docs.webrouter.net/data-apis/oanda.md#oanda-pricing-get), [US Treasury Fiscal Data](https://docs.webrouter.net/data-apis/treasury-fiscal-data.md#treasury-fiscal-data-rates-of-exchange), [Wise](https://docs.webrouter.net/data-apis/wise.md#wise-rates-get)

```python Python theme={null}
router.call_data_api("open-exchange-rates.latest", {'base': 'EUR', 'symbols': 'EUR,GBP,JPY'})
```

```text MCP theme={null}
call_data_api(endpoint="open-exchange-rates.latest", params={"base": "EUR", "symbols": "EUR,GBP,JPY"})
```

> [!NOTE]
>
> * Changing base needs a paid plan; symbols and show\_alternative work on every plan.
> * timestamp is Unix seconds; rates are units of each currency per 1 base.

### Get exchange rates for a past date

GET

`/historical/{date}.json`

`open-exchange-rates.historical`

End-of-day rates (last published values of that UTC day) for any date since 1999-01-01.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`date` required</td><td>string</td><td>path</td><td>UTC date, YYYY-MM-DD. Example `2010-10-10`</td></tr>
    <tr><td>`base`</td><td>string</td><td>query</td><td>Base currency, 3-letter code; default USD. Developer, Enterprise and Unlimited plans. Example `EUR`</td></tr>
    <tr><td>`symbols`</td><td>string</td><td>query</td><td>Comma-separated 3-letter codes. Developer, Enterprise and Unlimited plans. Example `EUR,GBP`</td></tr>

    <tr>
      <td>
        `show_alternative`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add alternative, black-market and digital currency rates.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.openexchangerates.org/reference/historical-json) · Same job: [currencylayer](https://docs.webrouter.net/data-apis/currencylayer.md#currencylayer-live), [exchangerate.host](https://docs.webrouter.net/data-apis/exchangerate-host.md#exchangerate-host-live), [Fixer](https://docs.webrouter.net/data-apis/fixer.md#fixer-latest), [OANDA](https://docs.webrouter.net/data-apis/oanda.md#oanda-pricing-get), [US Treasury Fiscal Data](https://docs.webrouter.net/data-apis/treasury-fiscal-data.md#treasury-fiscal-data-rates-of-exchange), [Wise](https://docs.webrouter.net/data-apis/wise.md#wise-rates-get)

```python Python theme={null}
router.call_data_api("open-exchange-rates.historical", {'date': '2010-10-10', 'base': 'EUR', 'symbols': 'EUR,GBP'})
```

```text MCP theme={null}
call_data_api(endpoint="open-exchange-rates.historical", params={"date": "2010-10-10", "base": "EUR", "symbols": "EUR,GBP"})
```

> [!NOTE]
>
> * Asking for today's UTC date returns the latest rates, not an end-of-day value.

### Get daily rates over a period

GET

`/time-series.json`

`open-exchange-rates.time_series`

Daily rates for every day between two dates (both inclusive), at most one month per call.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`start` required</td><td>string</td><td>query</td><td>First day, YYYY-MM-DD. Example `2013-01-01`</td></tr>
    <tr><td>`end` required</td><td>string</td><td>query</td><td>Last day, YYYY-MM-DD; an invalid calendar day is moved back to the nearest valid one. Example `2013-01-31`</td></tr>
    <tr><td>`symbols`</td><td>string</td><td>query</td><td>Comma-separated 3-letter codes; recommended, responses are large. Example `EUR,GBP`</td></tr>
    <tr><td>`base`</td><td>string</td><td>query</td><td>Base currency, 3-letter code; default USD. Example `USD`</td></tr>

    <tr>
      <td>
        `show_alternative`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add alternative, black-market and digital currency rates.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.openexchangerates.org/reference/time-series-json) · Same job: [currencylayer](https://docs.webrouter.net/data-apis/currencylayer.md#currencylayer-live), [exchangerate.host](https://docs.webrouter.net/data-apis/exchangerate-host.md#exchangerate-host-live), [Fixer](https://docs.webrouter.net/data-apis/fixer.md#fixer-latest), [OANDA](https://docs.webrouter.net/data-apis/oanda.md#oanda-pricing-get), [US Treasury Fiscal Data](https://docs.webrouter.net/data-apis/treasury-fiscal-data.md#treasury-fiscal-data-rates-of-exchange), [Wise](https://docs.webrouter.net/data-apis/wise.md#wise-rates-get)

```python Python theme={null}
router.call_data_api("open-exchange-rates.time_series", {'start': '2013-01-01', 'end': '2013-01-31', 'symbols': 'EUR,GBP', 'base': 'USD'})
```

```text MCP theme={null}
call_data_api(endpoint="open-exchange-rates.time_series", params={"start": "2013-01-01", "end": "2013-01-31", "symbols": "EUR,GBP", "base": "USD"})
```

> [!NOTE]
>
> * Enterprise and Unlimited plans only.
> * Each day in the range counts as one request against the monthly quota; request longer spans month by month.

### Convert an amount between currencies

GET

`/convert/{value}/{from}/{to}`

`open-exchange-rates.convert`

Converts a value at the latest rate, returning the rate and timestamp used.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`value` required</td><td>integer</td><td>path</td><td>Amount to convert. Example `19999`</td></tr>
    <tr><td>`from` required</td><td>string</td><td>path</td><td>Source currency, 3-letter code. Example `GBP`</td></tr>
    <tr><td>`to` required</td><td>string</td><td>path</td><td>Target currency, 3-letter code. Example `EUR`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.openexchangerates.org/reference/convert) · Same job: [currencylayer](https://docs.webrouter.net/data-apis/currencylayer.md#currencylayer-live), [exchangerate.host](https://docs.webrouter.net/data-apis/exchangerate-host.md#exchangerate-host-live), [Fixer](https://docs.webrouter.net/data-apis/fixer.md#fixer-latest), [OANDA](https://docs.webrouter.net/data-apis/oanda.md#oanda-pricing-get), [US Treasury Fiscal Data](https://docs.webrouter.net/data-apis/treasury-fiscal-data.md#treasury-fiscal-data-rates-of-exchange), [Wise](https://docs.webrouter.net/data-apis/wise.md#wise-rates-get)

```python Python theme={null}
router.call_data_api("open-exchange-rates.convert", {'value': 19999, 'from': 'GBP', 'to': 'EUR'})
```

```text MCP theme={null}
call_data_api(endpoint="open-exchange-rates.convert", params={"value": 19999, "from": "GBP", "to": "EUR"})
```

> [!NOTE]
>
> * Unlimited plan only.

### List currency codes and names

GET

`/currencies.json`

`open-exchange-rates.currencies`

Every 3-letter currency code the API offers with its full name.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `show_alternative`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include alternative currencies.
      </td>
    </tr>

    <tr>
      <td>
        `show_inactive`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include historical, inactive currencies.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.openexchangerates.org/reference/currencies-json) · Same job: [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-exchange-info), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-products-list), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-map), [Commodity Price API](https://docs.webrouter.net/data-apis/commoditypriceapi.md#commoditypriceapi-symbols), [Fixer](https://docs.webrouter.net/data-apis/fixer.md#fixer-symbols), [OANDA](https://docs.webrouter.net/data-apis/oanda.md#oanda-instruments-list)

```python Python theme={null}
router.call_data_api("open-exchange-rates.currencies")
```

```text MCP theme={null}
call_data_api(endpoint="open-exchange-rates.currencies")
```

> [!NOTE]
>
> * Keyless; does not count towards usage.

### Get the App ID's plan and usage

GET

`/usage.json`

`open-exchange-rates.usage`

Plan name, monthly quota, features and requests used and remaining this month.

Input

No inputs.

[Vendor docs](https://docs.openexchangerates.org/reference/usage-json)

```python Python theme={null}
router.call_data_api("open-exchange-rates.usage")
```

```text MCP theme={null}
call_data_api(endpoint="open-exchange-rates.usage")
```

> [!NOTE]
>
> * Does not count towards usage. Unlimited accounts report quota and remaining as -1.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.