Skip to content

AFN to MAD exchange rate API

Afghani to Moroccan Dirham · quoted 2026-10-04

0.15414

▲ +13.67% over 1Y

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 last year, AFN/MAD traded between 0.13561 and 0.15414, averaged 0.14287 and rose 13.67%. 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 1Y

AFN/MAD over 1Y: show the values
PointAFN/MAD
2025-10-040.13561
2025-10-110.13708
2025-10-180.13761
2025-10-250.13995
2025-11-010.13995
2025-11-080.13854
2025-11-150.13931
2025-11-220.14073
2025-11-290.14004
2025-12-060.13856
2025-12-140.13894
2025-12-210.13833
2025-12-280.13772
2026-01-040.13837
2026-01-110.13977
2026-01-180.13889
2026-01-250.13798
2026-02-010.13904
2026-02-080.14208
2026-02-150.14387
2026-02-220.14507
2026-03-010.14365
2026-03-080.14684
2026-03-150.14832
2026-03-220.14581
2026-03-290.14537
2026-04-050.14495
2026-04-120.14390
2026-04-190.14325
2026-04-260.14919
2026-05-030.14442
2026-05-100.14257
2026-05-180.14745
2026-05-260.14579
2026-06-020.14736
2026-06-110.14824
2026-06-180.14732
2026-06-250.14820
2026-07-020.14795
2026-07-090.14615
2026-07-160.14041
2026-07-230.14019
2026-07-300.14288
2026-08-060.14189
2026-08-130.14231
2026-08-210.14004
2026-08-280.14050
2026-09-040.14213
2026-09-110.14374
2026-09-180.14642
2026-09-250.15026

High

0.15414

Low

0.13561

Average

0.14287

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.