Loading page…
/api/v1/exchange-rates/historyReturns stored rate rows between from/to dates.
Open this endpoint in the API Explorer.
Import this API into your tooling.
See real implementation patterns.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| currency | query | string | Yes | Three-letter currency code. |
| from | query | string | Yes | YYYY-MM-DD start date. |
| to | query | string | Yes | YYYY-MM-DD end date. |
curl "https://bdapi4all.vercel.app/api/v1/exchange-rates/history?currency=USD&from=2026-06-01&to=2026-06-02"const response = await fetch("https://bdapi4all.vercel.app/api/v1/exchange-rates/history?currency=USD&from=2026-06-01&to=2026-06-02");
const payload = await response.json();
console.log(payload.data);import requests
response = requests.get("https://bdapi4all.vercel.app/api/v1/exchange-rates/history?currency=USD&from=2026-06-01&to=2026-06-02")
print(response.json()["data"])$response = file_get_contents("https://bdapi4all.vercel.app/api/v1/exchange-rates/history?currency=USD&from=2026-06-01&to=2026-06-02");
$data = json_decode($response, true);
print_r($data["data"]);$response = Http::get("https://bdapi4all.vercel.app/api/v1/exchange-rates/history?currency=USD&from=2026-06-01&to=2026-06-02");
$data = $response->json("data");export default async function Page() {
const res = await fetch("https://bdapi4all.vercel.app/api/v1/exchange-rates/history?currency=USD&from=2026-06-01&to=2026-06-02", { next: { revalidate: 3600 } });
const payload = await res.json();
return <pre>{JSON.stringify(payload.data, null, 2)}</pre>;
}{
"success": true,
"version": "v1",
"timestamp": "2026-06-02T00:00:00.000Z",
"data": {
"currency": "USD",
"from": "2026-06-01",
"to": "2026-06-02",
"rates": []
}
}