Skip to content

AFN to MAD exchange rate API

Afghani to Moroccan Dirham · quoted 2026-10-04

0.15414

▲ +10.70% over YTD

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

1 AFN buys 0.15414 MAD as of 2026-10-04, so 1 MAD buys 6.4877 AFN. Over the year to date, AFN/MAD traded between 0.13770 and 0.15414, averaged 0.14424 and rose 10.70%. The API holds daily AFN/MAD 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.

AFN/MAD over YTD

AFN/MAD over YTD: show the values
PointAFN/MAD
2025-12-310.13924
2026-01-070.13921
2026-01-140.13964
2026-01-210.14015
2026-01-280.13770
2026-02-040.13912
2026-02-110.14056
2026-02-180.14637
2026-02-250.14502
2026-03-040.14867
2026-03-110.14837
2026-03-180.14869
2026-03-250.14830
2026-04-010.14690
2026-04-080.14342
2026-04-150.14443
2026-04-220.14691
2026-04-290.14696
2026-05-060.14503
2026-05-140.14353
2026-05-210.14697
2026-05-290.14583
2026-06-050.14547
2026-06-140.14404
2026-06-210.14430
2026-06-280.14525
2026-07-050.14262
2026-07-120.14258
2026-07-190.14158
2026-07-260.14195
2026-08-020.14183
2026-08-090.14166
2026-08-160.14208
2026-08-240.14130
2026-08-310.14219
2026-09-070.14226
2026-09-140.14667
2026-09-210.14686
2026-09-280.15182

High

0.15414

Low

0.13770

Average

0.14424

For developers

Get this rate via the API

One GET request returns the AFN/MAD 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=AFN&currencies=MAD"
JavaScript
const response = await fetch("https://api.fxfeed.io/v2/latest?api_key=YOUR_API_KEY&base=AFN&currencies=MAD");
const data = await response.json();
Python
import requests

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

Replace YOUR_API_KEY with the key from your dashboard.

AFN/MAD API questions

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

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

How far back does AFN/MAD historical data go?

Daily AFN/MAD 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 AFN/MAD 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.