Skip to content

AFN to MAD exchange rate API

Afghani to Moroccan Dirham · quoted 2026-10-04

0.15414

▲ +13.13% over 5Y

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 5 years, AFN/MAD traded between 0.12657 and 0.15414, averaged 0.13886 and rose 13.13%. 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 5Y

AFN/MAD over 5Y: show the values
PointAFN/MAD
2024-08-240.13625
2024-10-070.14095
2024-11-060.14453
2024-12-060.14189
2025-01-050.14145
2025-02-040.13121
2025-03-060.13162
2025-04-060.13220
2025-05-060.12763
2025-06-070.13155
2025-07-070.12657
2025-08-060.13002
2025-09-050.13029
2025-10-060.13599
2025-11-050.14022
2025-12-050.14074
2026-01-050.13967
2026-02-040.13912
2026-03-060.14799
2026-04-050.14495
2026-05-050.14559
2026-06-060.14483
2026-07-080.14647
2026-08-070.14237
2026-09-070.14226

High

0.15414

Low

0.12657

Average

0.13886

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.