Da Afghanistan Bank Exchange Rate API: Official AFN Rates as JSON

Reviewed by Madhushan, Fintech Developer — November 2026

The Da Afghanistan Bank publishes the official exchange rates for Afghanistan — the bank's own dated figures, not moving market prices. AllRatesToday serves them on the same endpoints as more than 130 other central banks, under the source code dab. This guide shows how to pull them as JSON with curl, JavaScript and Python.

USD → AFN — official Da Afghanistan Bank transfer selling rate
Weekly observations, Nov '25 – Nov '26 · undefineds per 1 US dollar
6466Nov '25Feb '26May '26Aug '26Nov '2667.352025-11-30: 66.44 AFN2025-12-07: 66.28 AFN2025-12-14: 66.26 AFN2025-12-21: 66.33 AFN2025-12-28: 66.14 AFN2025-12-31: 66.12 AFN2026-01-04: 66.21 AFN2026-01-11: 66.32 AFN2026-01-18: 66.47 AFN2026-01-25: 66.39 AFN2026-02-01: 65.69 AFN2026-02-08: 64.09 AFN2026-02-14: 63.26 AFN2026-02-22: 63.29 AFN2026-03-01: 65.22 AFN2026-03-08: 63.42 AFN2026-03-15: 63.70 AFN2026-03-18: 64.29 AFN2026-03-29: 64.75 AFN2026-04-05: 65.06 AFN2026-04-12: 64.98 AFN2026-04-19: 64.87 AFN2026-04-26: 64.39 AFN2026-05-03: 64.58 AFN2026-05-10: 63.54 AFN2026-05-17: 64.10 AFN2026-05-24: 63.96 AFN2026-05-31: 64.11 AFN2026-06-07: 64.14 AFN2026-06-14: 64.38 AFN2026-06-21: 64.78 AFN2026-06-28: 65.00 AFN2026-07-05: 65.84 AFN2026-07-12: 65.81 AFN2026-07-19: 66.06 AFN2026-07-26: 66.21 AFN2026-08-02: 66.03 AFN2026-08-09: 65.74 AFN2026-08-16: 65.23 AFN2026-08-23: 64.75 AFN2026-08-30: 64.49 AFN2026-09-06: 64.46 AFN2026-09-13: 64.34 AFN2026-09-20: 64.65 AFN2026-09-27: 65.08 AFN2026-10-04: 64.91 AFN2026-10-11: 65.02 AFN2026-10-18: 64.90 AFN2026-10-25: 65.05 AFN2026-11-01: 65.08 AFN2026-11-08: 65.28 AFN2026-11-15: 65.68 AFN2026-11-22: 66.39 AFN2026-11-29: 67.35 AFN
Source: Da Afghanistan Bank official rates · chart data from the AllRatesToday API (/api/v1/central-bank/dab/history?source=USD&target=AFN&type=sell).

What the DAB publishes

DAB quotes every currency in afghanis, so an afghanis-per-dollar figure is a direct read; ask for type=buy or type=sell to choose the side. Check which side your rule or contract names.

Source page: Exchange rates on the Da Afghanistan Bank website.

Why official rates, not market rates

A live mid-market feed answers "what is USD/AFN trading at right now?" — the right tool for checkouts and dashboards. Bookkeeping, tax and customs paperwork usually ask a different question: "which rate applied on this date?" For Afghanistan that answer often comes from the Da Afghanistan Bank's own table, and it does not change after publication. Check which rate your filing rule names.

Get the latest rates (REST)

curl "https://allratestoday.com/api/v1/central-bank/dab/latest" \
  -H "Authorization: Bearer YOUR_API_KEY"

The response is the most recent table — every rate with its base, quote, rate type and value — and the date it belongs to. The latest table is available on every plan, including the free tier (no credit card). Each value is quote currency per one unit of base, exactly as the DAB quotes it.

For one pair, add source and target (and type to choose between the rate types the table carries):

curl "https://allratestoday.com/api/v1/central-bank/dab/latest?source=USD&target=AFN&type=sell" \
  -H "Authorization: Bearer YOUR_API_KEY"

JavaScript

const res = await fetch(
  'https://allratestoday.com/api/v1/central-bank/dab/latest?source=USD&target=AFN&type=sell',
  { headers: { Authorization: 'Bearer ' + process.env.ALLRATES_API_KEY } }
);
const pair = await res.json();
console.log(pair.rate, pair.rate_type, pair.rate_date, pair.derived);

Plain fetch, so it runs anywhere — Node 18+, Bun, Deno, edge runtimes. Keep the API key on the server side.

Python

import os
import requests

r = requests.get(
    "https://allratestoday.com/api/v1/central-bank/dab/latest",
    headers={"Authorization": f"Bearer {os.environ['ALLRATES_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
table = r.json()
print(table["rate_date"])
for row in table["rates"]:
    print(row["base"], row["quote"], row["type"], row["value"])

Historical rates for an invoice date

# The table in force on a past date (weekends and holidays resolve to the last published date)
curl "https://allratestoday.com/api/v1/central-bank/dab/2024-06-30" \
  -H "Authorization: Bearer YOUR_API_KEY"

# A series for one pair
curl "https://allratestoday.com/api/v1/central-bank/dab/history?source=USD&target=AFN&type=sell&from=2026-01-01" \
  -H "Authorization: Bearer YOUR_API_KEY"
r = requests.get(
    "https://allratestoday.com/api/v1/central-bank/dab/history",
    params={"source": "USD", "target": "AFN", "type": "sell", "from": "2026-01-01"},
    headers={"Authorization": f"Bearer {os.environ['ALLRATES_API_KEY']}"},
    timeout=10,
)
for point in r.json()["rates"]:
    print(point["date"], point["rate"])

Historical dates and time series need a paid plan; the latest table stays free.

Published vs derived pairs

If the DAB does not print a pair directly, the API resolves it from the bank's own figures — an inverse, or a cross rate via the home currency — and flags it derived: true with the method used. Source figures and computed values are never silently mixed.

The afghani since 2019

The archive starts on 9 April 2019, when DAB sold dollars at 77.3771 afghanis by transfer. The rate held near 77 through 2020, jumped after August 2021 to a peak of 124.30 on 14 December 2021 and ended that year at 103.78. The afghani then strengthened: 89.19 at the end of 2022, 70.30 at the end of 2023, a low of 62.758 on 16 February 2026, and 67.3506 on 29 November 2026. For a past date, one call returns the table in force that day; Fridays and holidays resolve to the last published table and are flagged.

FAQ

Does the Da Afghanistan Bank have an exchange rate API?

The DAB publishes its official rates on its own website, not as a JSON API. AllRatesToday collects that table and serves it as JSON under the source code dab. The latest table is available on every plan, including the free tier; historical dates need a paid plan.

How often do Da Afghanistan Bank rates update?

Once a day from Saturday to Thursday, as one table of nine currencies with transfer buying and selling rates in afghanis per unit. Every API response carries the table's own date; Fridays and holidays resolve to the last published table.

Can I get the DAB rate for a past date, like an invoice date?

Yes, for any date from April 2019. The /api/v1/central-bank/dab/2024-06-30 form returns the table in force on that date; non-publication days resolve to the most recent published date. Historical dates need a paid plan.

Why is there no Iranian rial in the Da Afghanistan Bank table?

DAB quotes the Iranian toman at four decimals (0.0007 selling, 0.0001 buying in November 2026), which is too coarse to use as a rate, so AllRatesToday leaves that line out.

Official Da Afghanistan Bank rates, as JSON

The latest table is free — no credit card.

Get your free API key

Related Articles