Skip to content

MAD to MXN exchange rate API

Moroccan Dirham to Mexican Peso · quoted 2026-10-04

1.8283

▼ +7.12% over YTD

1 MAD = 1.8283 MXN · 1 MXN = 0.54695 MAD · Get this rate via the API

1 MAD buys 1.8283 MXN as of 2026-10-04, so 1 MXN buys 0.54695 MAD. Over the year to date, MAD/MXN traded between 1.8036 and 1.9684, averaged 1.8720 and fell 7.12%. The API holds daily MAD/MXN 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/MXN over YTD

MAD/MXN over YTD: show the values
PointMAD/MXN
2025-12-311.9684
2026-01-071.9523
2026-01-141.9307
2026-01-211.9023
2026-01-281.8948
2026-02-041.8801
2026-02-111.8822
2026-02-181.8707
2026-02-251.8682
2026-03-041.8875
2026-03-111.8862
2026-03-181.8910
2026-03-251.9045
2026-04-011.9126
2026-04-081.8682
2026-04-151.8722
2026-04-221.8713
2026-04-291.8792
2026-05-061.8743
2026-05-131.8798
2026-05-201.8799
2026-05-271.8852
2026-06-031.8767
2026-06-101.8866
2026-06-171.8612
2026-06-241.8735
2026-07-011.8638
2026-07-081.8754
2026-07-151.8666
2026-07-221.8553
2026-07-291.8616
2026-08-051.8473
2026-08-121.8326
2026-08-191.8349
2026-08-261.8293
2026-09-021.8191
2026-09-091.8036
2026-09-161.8090
2026-09-231.8170
2026-09-301.8692

High

1.9684

Low

1.8036

Average

1.8720

For developers

Get this rate via the API

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

Replace YOUR_API_KEY with the key from your dashboard.

MAD/MXN API questions

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

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

How far back does MAD/MXN historical data go?

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