---
title: "Currency Converter API: Live & Historical Exchange Rates"
slug: convert-currency-pair-for-date
url: https://apyhub.com/apyhub/service/convert-currency-pair-for-date
provider: ApyHub
categories: [Verification Kit]
tags: [currency-converter, exchange-rates, forex, historical-rates, finance]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 1
atoms: 5
mcp: true
alias: currency-conversion
---

# Currency Converter API: Live & Historical Exchange Rates

Free currency converter API for live and historical exchange rates between any two currencies. Simple JSON for pricing, checkout and invoices. No card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/apyhub/convert-currency-pair-for-date` | What it does Converts a currency pair for a given date by taking a source currency, a target curren… | 5 |

## Endpoint reference

### Convert currency pair for a date

`POST https://api.eu.apyhub.com/apyhub/convert-currency-pair-for-date` · 5 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `date` | body | string (date) | no | Defaults to today when omitted or blank. Example: `2026-06-16`. |
| `source` | body | string | yes | Example: `usd`. |
| `target` | body | string | yes | Example: `eur`. |

#### Quickstart

Convert a currency pair for a date by sending the source and target currency codes.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/convert-currency-pair-for-date" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "source": "usd",
    "target": "eur"
  }'
```

#### What you'll get back

Returns a JSON object with a `data` field. The `data` value is either a number with the converted exchange rate or a boolean.

```json
{
  "data": 0.9214
}
```

## About

## What it does
The Currency Converter API returns the exchange rate between two currencies, such as USD to EUR or USD to INR. Send a `source` and `target` currency code in a POST body and get back a JSON object whose `data` field holds the rate.

By default you get today's rate. Add an optional `date` in `YYYY-MM-DD` format to get the rate for a past day, which makes it a historical exchange rate API as well. To convert an amount, multiply it by the returned rate.

Developers use it to show local prices on pricing pages, convert totals at checkout, stamp invoices with the rate on the invoice date, and rebuild financial reports with the rates that applied at the time. Teams looking for a free currency converter API can start on the free tier.

Each request covers one currency pair. When you need several targets at once, the [Multi-Currency Converter API](https://apyhub.com/apyhub/service/convert-currency-to-multiple-currencies) returns them in one call.

Pairs well with: the [Currencies Dictionary API](https://apyhub.com/apyhub/service/list-all-currencies) to fill currency pickers with ISO 4217 codes and symbols, and the [Global Pricing Recommendations API](https://apyhub.com/namastesumalya/service/generate-global-pricing-recommendations) to set localized subscription prices before you convert them at checkout. AI agents can call it through ApyHub MCP.

> **Note** : Exchange rates are only available from `2024-03-02`

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/convert-currency-pair-for-date
