# Exchange Rate API

> Exchange Rate looks up the conversion rate between two currency codes across 170+ currencies, with both currency names and the last-updated time. Paid plans add the inverse rate, the pair's 1-day to 1-year change, its 30-day high, low, average and volatility, past dates, and hourly and 30-day daily history.

**Endpoint:** `GET https://api.apiverve.com/v1/exchangerate`  
**Category:** Finance  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/exchangerate

## Overview

An FX rate API for live forex rates, in one call: pass two currency codes as parameters to receive the current conversion multiplier and an ISO 8601 timestamp showing when the rate refreshed. The response covers over 170 currencies. Each response names both currencies. Paid plans also return the inverse rate for reverse conversions without a second call, and how far the pair has moved over the last day, 7 days, 30 days and year, measured from the rate's date, so a historical lookup reports the moves leading up to that day. The last 30 daily closes are stored per currency, so paid plans also get the pair's 30-day high, low, average and volatility, and history=true returns the closes themselves. On live lookups, hourly=true adds the rate for each of the last 24 hours.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/exchangerate?currency1=USD&currency2=EUR&date=2025-06-02&history=true&hourly=true" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `currency1` | string | Yes | The first currency you want to get the exchange rate for |
| `currency2` | string | Yes | The second currency you want to get the exchange rate for |
| `date` | string | No | Optional past date (YYYY-MM-DD) to use that day's closing rates instead of live rates. History runs from 1999-01-04 for about 30 major currencies and covers every supported currency from March 2024. A day with no rates, such as a weekend or holiday, uses the last close before it.. Premium field |
| `history` | boolean | No | Include the pair's daily closing rate for the last 30 days. default false. Premium field |
| `hourly` | boolean | No | Include the pair's rate for each of the last 24 hours (live rates only, not with date). default false. Premium field |

## Response fields

- `currency1` — string · The first currency code requested for exchange rate
- `currency2` — string · The second currency code requested for exchange rate
- `exchangeRate` — string · The current exchange rate from currency1 to currency2, as a decimal string: six decimal places, or six significant digits for rates below 0.1 (IRR to USD reads 0.000000727484)
- `inverseRate` — string · The inverse exchange rate from currency2 to currency1, with the same precision rule as exchangeRate · (premium)
- `date` — string · UTC date (YYYY-MM-DD) of the rates used: the live rates' date, or the day served for a date request
- `lastUpdated` — string · ISO 8601 timestamp of when the exchange rates were last refreshed
- `currency1Name` — string · English name of the first currency (e.g. US Dollar); null for codes without one, such as BTC
- `currency2Name` — string · English name of the second currency (e.g. Euro); null for codes without one, such as BTC
- `change1d` — number · Percent change in the exchange rate over the last day, from stored daily closes; null when no close is recorded for that day · (premium)
- `change7d` — number · Percent change in the exchange rate over the last 7 days, from stored daily closes; null when no close is recorded for that day · (premium)
- `change30d` — number · Percent change in the exchange rate over the last 30 days, from stored daily closes; null when no close is recorded for that day · (premium)
- `change1y` — number · Percent change in the exchange rate over the last year, from stored daily closes; null when no close is recorded for that day · (premium)
- `high30d` — number · Highest daily close over the last 30 days of the pair; null until two days are stored · (premium)
- `low30d` — number · Lowest daily close over the last 30 days of the pair; null until two days are stored · (premium)
- `average30d` — number · Mean daily close over the last 30 days of the pair; null until two days are stored · (premium)
- `volatility30d` — number · Standard deviation of the daily percent changes over the last 30 days (not annualized); null until two days are stored · (premium)
  - `history.0.date` — string · UTC date of the close (YYYY-MM-DD) · (premium)
  - `history.0.rate` — number · Units of currency2 per one currency1 at that close · (premium)
  - `hourly.0.hour` — number · UTC hour of day (0-23) the rate was recorded in · (premium)
  - `hourly.0.rate` — number · Exchange rate from currency1 to currency2 at that hour · (premium)
  - `hourly.0.timestamp` — string · ISO 8601 time the rate was recorded · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "currency1": "USD",
    "currency2": "EUR",
    "exchangeRate": "0.895099",
    "inverseRate": "1.117195",
    "date": "2026-10-27",
    "lastUpdated": "2026-10-27T17:41:09.810Z",
    "currency1Name": "US Dollar",
    "currency2Name": "Euro",
    "change1d": 0.4467,
    "change7d": 0.5739,
    "change30d": 1.9699,
    "change1y": 4.1682,
    "high30d": 0.895099,
    "low30d": 0.878037,
    "average30d": 0.889911,
    "volatility30d": 0.2427,
    "history": [
      {
        "date": "2026-09-28",
        "rate": 0.878037
      },
      {
        "date": "2026-09-29",
        "rate": 0.880226
      },
      {
        "date": "2026-09-30",
        "rate": 0.882434
      },
      {
        "date": "2026-10-01",
        "rate": 0.883652
      },
      {
        "date": "2026-10-02",
        "rate": 0.888626
      },
      {
        "date": "2026-10-03",
        "rate": 0.888626
      },
      {
        "date": "2026-10-04",
        "rate": 0.888246
      },
      {
        "date": "2026-10-05",
        "rate": 0.894174
      },
      {
        "date": "2026-10-06",
        "rate": 0.891674
      },
      {
        "date": "2026-10-07",
        "rate": 0.890419
      },
      {
        "date": "2026-10-08",
        "rate": 0.892463
      },
      {
        "date": "2026-10-09",
        "rate": 0.889796
      },
      {
        "date": "2026-10-10",
        "rate": 0.892716
      },
      {
        "date": "2026-10-11",
        "rate": 0.892571
      },
      {
        "date": "2026-10-12",
        "rate": 0.892822
      },
      {
        "date": "2026-10-13",
        "rate": 0.894845
      },
      {
        "date": "2026-10-14",
        "rate": 0.891987
      },
      {
        "date": "2026-10-15",
        "rate": 0.890861
      },
      {
        "date": "2026-10-16",
        "rate": 0.88987
      },
      {
        "date": "2026-10-17",
        "rate": 0.889757
      },
      {
        "date": "2026-10-18",
        "rate": 0.889761
      },
      {
        "date": "2026-10-19",
        "rate": 0.890515
      },
      {
        "date": "2026-10-20",
        "rate": 0.889991
      },
      {
        "date": "2026-10-21",
        "rate": 0.890629
      },
      {
        "date": "2026-10-22",
        "rate": 0.889437
      },
      {
        "date": "2026-10-23",
        "rate": 0.891773
      },
      {
        "date": "2026-10-24",
        "rate": 0.892532
      },
      {
        "date": "2026-10-25",
        "rate": 0.892668
      },
      {
        "date": "2026-10-26",
        "rate": 0.891118
      },
      {
        "date": "2026-10-27",
        "rate": 0.895099
      }
    ],
    "hourly": [
      {
        "hour": 18,
        "rate": 0.891512,
        "timestamp": "2026-10-26T18:41:09.810Z"
      },
      {
        "hour": 19,
        "rate": 0.891173,
        "timestamp": "2026-10-26T19:41:09.810Z"
      },
      {
        "hour": 20,
        "rate": 0.8911,
        "timestamp": "2026-10-26T20:41:09.810Z"
      },
      {
        "hour": 21,
        "rate": 0.891849,
        "timestamp": "2026-10-26T21:41:09.810Z"
      },
      {
        "hour": 22,
        "rate": 0.89212,
        "timestamp": "2026-10-26T22:41:09.810Z"
      },
      {
        "hour": 23,
        "rate": 0.891692,
        "timestamp": "2026-10-26T23:41:09.810Z"
      },
      {
        "hour": 0,
        "rate": 0.891922,
        "timestamp": "2026-10-27T00:41:09.810Z"
      },
      {
        "hour": 1,
        "rate": 0.892681,
        "timestamp": "2026-10-27T01:41:09.810Z"
      },
      {
        "hour": 2,
        "rate": 0.892646,
        "timestamp": "2026-10-27T02:41:09.810Z"
      },
      {
        "hour": 3,
        "rate": 0.892287,
        "timestamp": "2026-10-27T03:41:09.810Z"
      },
      {
        "hour": 4,
        "rate": 0.892805,
        "timestamp": "2026-10-27T04:41:09.810Z"
      },
      {
        "hour": 5,
        "rate": 0.893422,
        "timestamp": "2026-10-27T05:41:09.810Z"
      },
      {
        "hour": 6,
        "rate": 0.893135,
        "timestamp": "2026-10-27T06:41:09.810Z"
      },
      {
        "hour": 7,
        "rate": 0.892984,
        "timestamp": "2026-10-27T07:41:09.810Z"
      },
      {
        "hour": 8,
        "rate": 0.8937,
        "timestamp": "2026-10-27T08:41:09.810Z"
      },
      {
        "hour": 9,
        "rate": 0.894058,
        "timestamp": "2026-10-27T09:41:09.810Z"
      },
      {
        "hour": 10,
        "rate": 0.89364,
        "timestamp": "2026-10-27T10:41:09.810Z"
      },
      {
        "hour": 11,
        "rate": 0.893781,
        "timestamp": "2026-10-27T11:41:09.810Z"
      },
      {
        "hour": 12,
        "rate": 0.894553,
        "timestamp": "2026-10-27T12:41:09.810Z"
      },
      {
        "hour": 13,
        "rate": 0.894604,
        "timestamp": "2026-10-27T13:41:09.810Z"
      },
      {
        "hour": 14,
        "rate": 0.894209,
        "timestamp": "2026-10-27T14:41:09.810Z"
      },
      {
        "hour": 15,
        "rate": 0.894651,
        "timestamp": "2026-10-27T15:41:09.810Z"
      },
      {
        "hour": 16,
        "rate": 0.895323,
        "timestamp": "2026-10-27T16:41:09.810Z"
      },
      {
        "hour": 17,
        "rate": 0.895099,
        "timestamp": "2026-10-27T17:41:09.810Z"
      }
    ]
  }
}
```

## Use cases

- **Multi-Currency Checkout** — Convert product catalog totals into a buyer's local currency at payment time so shoppers review exact prices before charging their cards.
- **Cross-Border Invoicing** — When billing foreign clients, SaaS platforms convert base subscription fees into regional currencies to generate accurate invoices.
- **Travel Booking Conversion** — Travel booking engines convert hotel and flight rates into the traveler's home currency so customers can compare international costs.
- **Remittance Payout Preview** — To eliminate foreign exchange surprises, fintech apps display the converted payout amount before a user confirms an international wire.

## SDKs

- **npm** — `npm install @apiverve/exchangerate` (https://www.npmjs.com/package/@apiverve/exchangerate)
- **NuGet** — `dotnet add package APIVerve.API.ExchangeRate` (https://www.nuget.org/packages/APIVerve.API.ExchangeRate)
- **Source** — https://github.com/apiverve/exchangerate-api

## More

- Full reference: https://docs.apiverve.com/ref/exchangerate
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
