USD to MAD exchange rate
Convert USD to MAD
How do I query USD/MAD?
One authenticated GET returns the latest value with its timestamp and source. Swap the language tab for your stack.
$ curl https://api.exchangerate.dev/v1/rate/usd-mad \
-H "Authorization: Bearer $API_KEY"
# → rate, timestamp, source, derivedconst r = await fetch("https://api.exchangerate.dev/v1/rate/usd-mad", {
headers: { Authorization: `Bearer ${API_KEY}` }
}).then(res => res.json())
console.log(r.rate, r.timestamp, r.source)r = requests.get(
"https://api.exchangerate.dev/v1/rate/usd-mad",
headers={"Authorization": f"Bearer {API_KEY}"},
).json()
print(r["rate"], r["timestamp"], r["source"])Related reading
USD/MAD — US Dollar to Moroccan Dirham
Importers, travelers, and businesses with Moroccan costs use this pair to estimate dirham values from dollars.
USD/MAD is the Moroccan dirham value of one US dollar. It is a reference for Moroccan imports, travel, trade payments, and business and household budgets tied to US dollar costs.
The Moroccan dirham can respond to trade flows, inflation, interest rates, and currency policy. Global dollar moves can also affect USD/MAD, including when businesses compare dollar-priced imports with local dirham costs.
This page can update intraday during the trading week and displays both USD-to-MAD and MAD-to-USD. Every observation is source-labeled and timestamped; it is indicative rather than a guaranteed conversion or bank execution rate.