---
title: "Current exchange rate for one currency pair"
method: GET
path: "/api/rate"
tags: ["Market Rates"]
---

# Current exchange rate for one currency pair

`GET /api/rate`

## Request

- Base URL: `https://allratestoday.com`
- URL: `https://allratestoday.com/api/rate`
- Auth: one of:
  - HTTP bearer
  - API key in query parameter `key`

Live mid-market rate between two currencies, refreshed roughly every 60 seconds. Requires an API key: pass it as `Authorization: Bearer art_live_...` or, for simple cross-origin GETs, as `?key=` (alias `?apiKey=`). CORS-enabled.

## Query parameters

- `source` string, required
- `target` string, required
- `key` string
- `apiKey` string

## Response `200`

Current rate

- object
  - `rate` number, double, required
  - `source` string, required: Data source class

## Other responses

- `400`: Invalid or missing parameters
- `401`: Authentication required — provide an API key via `Authorization: Bearer art_live_...` (free keys at https://allratestoday.com/register)
- `429`: Monthly request limit exceeded (X-Monthly-Limit / X-Monthly-Used / X-Monthly-Resets headers included)
- `502`: Upstream rate provider error

---

[API](https://skmtc.dev/allratestoday/apis/allratestoday-exchange-rate-central-bank-rates-api.md) · [All operations](https://skmtc.dev/allratestoday/apis/allratestoday-exchange-rate-central-bank-rates-api/llms.txt) · [OpenAPI document](https://skmtc.dev/allratestoday/apis/allratestoday-exchange-rate-central-bank-rates-api/revisions/c2e58e9b4da4?raw)
