Skip to content

MAD to AFN exchange rate API

Moroccan Dirham to Afghani · quoted 2026-10-04

6.4876

▼ +12.02% over 1Y

1 MAD = 6.4876 AFN · 1 AFN = 0.15414 MAD · Get this rate via the API

1 MAD buys 6.4876 AFN as of 2026-10-04, so 1 AFN buys 0.15414 MAD. Over the last year, MAD/AFN traded between 6.4876 and 7.3742, averaged 7.0050 and fell 12.02%. The API holds daily MAD/AFN rates from 2024-08-24 — 2 years of history — so any past day, or a whole series, is one request away.

Converting an invoice? Convert an amount on a specific date.

MAD/AFN over 1Y

MAD/AFN over 1Y: show the values
PointMAD/AFN
2025-10-047.3742
2025-10-117.2948
2025-10-187.2667
2025-10-257.1453
2025-11-017.1451
2025-11-087.2181
2025-11-157.1784
2025-11-227.1058
2025-11-297.1407
2025-12-067.2168
2025-12-147.1975
2025-12-217.2288
2025-12-287.2611
2026-01-047.2268
2026-01-117.1547
2026-01-187.1996
2026-01-257.2474
2026-02-017.1922
2026-02-087.0385
2026-02-156.9508
2026-02-226.8932
2026-03-016.9611
2026-03-086.8103
2026-03-156.7421
2026-03-226.8581
2026-03-296.8792
2026-04-056.8991
2026-04-126.9492
2026-04-196.9810
2026-04-266.7029
2026-05-036.9244
2026-05-107.0143
2026-05-186.7821
2026-05-266.8591
2026-06-026.7859
2026-06-116.7456
2026-06-186.7879
2026-06-256.7478
2026-07-026.7589
2026-07-096.8423
2026-07-167.1222
2026-07-237.1330
2026-07-306.9987
2026-08-067.0477
2026-08-137.0269
2026-08-217.1408
2026-08-287.1176
2026-09-047.0358
2026-09-116.9569
2026-09-186.8298
2026-09-256.6552

High

7.3742

Low

6.4876

Average

7.0050

For developers

Get this rate via the API

One GET request returns the MAD/AFN rate as JSON. The free plan includes 1,000 requests a month, with no credit card required.

cURL
curl -X GET "https://api.fxfeed.io/v2/latest?api_key=YOUR_API_KEY&base=MAD&currencies=AFN"
JavaScript
const response = await fetch("https://api.fxfeed.io/v2/latest?api_key=YOUR_API_KEY&base=MAD&currencies=AFN");
const data = await response.json();
Python
import requests

data = requests.get("https://api.fxfeed.io/v2/latest?api_key=YOUR_API_KEY&base=MAD&currencies=AFN").json()

Replace YOUR_API_KEY with the key from your dashboard.

MAD/AFN API questions

How do I get the MAD/AFN exchange rate from an API?

Send one GET request to https://api.fxfeed.io/v2/latest?api_key=YOUR_API_KEY&base=MAD&currencies=AFN, replacing YOUR_API_KEY with your own key. The JSON response carries the date and the latest MAD/AFN rate in rates.AFN.

How far back does MAD/AFN historical data go?

Daily MAD/AFN rates are available from 2024-08-24. Request one day with the /historical endpoint and a date, or a range of days with /timeseries.

Is there a free MAD/AFN exchange rate API?

Yes. The free plan includes 1,000 requests a month, with no credit card required; paid plans raise the limit.

Put these rates in your application

One endpoint, JSON responses, 160+ currencies and history back to 1999. Start on the free plan.