Skip to content

MAD to PEN exchange rate API

Moroccan Dirham to Sol · quoted 2026-10-04

0.34564

▼ +5.61% over YTD

1 MAD = 0.34564 PEN · 1 PEN = 2.8932 MAD · Get this rate via the API

1 MAD buys 0.34564 PEN as of 2026-10-04, so 1 PEN buys 2.8932 MAD. Over the year to date, MAD/PEN traded between 0.34564 and 0.37896, averaged 0.36326 and fell 5.61%. The API holds daily MAD/PEN 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/PEN over YTD

MAD/PEN over YTD: show the values
PointMAD/PEN
2025-12-310.36617
2026-01-070.36297
2026-01-140.36208
2026-01-210.36306
2026-01-280.36686
2026-02-040.36435
2026-02-110.36560
2026-02-180.36408
2026-02-250.36357
2026-03-040.36498
2026-03-110.36499
2026-03-180.36418
2026-03-250.36929
2026-04-010.36862
2026-04-080.36134
2026-04-150.36984
2026-04-220.37001
2026-04-290.37896
2026-05-060.37414
2026-05-130.37107
2026-05-200.36717
2026-05-270.37003
2026-06-030.36893
2026-06-100.36615
2026-06-170.36348
2026-06-240.36175
2026-07-010.36114
2026-07-080.36223
2026-07-150.36043
2026-07-220.36010
2026-07-290.36078
2026-08-050.36176
2026-08-120.35899
2026-08-190.35957
2026-08-260.35927
2026-09-020.35726
2026-09-090.35624
2026-09-160.35346
2026-09-230.35106
2026-09-300.35198

High

0.37896

Low

0.34564

Average

0.36326

For developers

Get this rate via the API

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

Replace YOUR_API_KEY with the key from your dashboard.

MAD/PEN API questions

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

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

How far back does MAD/PEN historical data go?

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