Morocco — Country Data API

ISO-2: MA ISO-3: MAR Africa MAD — Moroccan Dirham

Morocco (MA/MAR) geographic data via REST API: capital Rabat, MAD (Moroccan Dirham), Arabic, Berber, states/provinces, cities, postal codes. Access Morocco country data through CountryDataAPI using ISO code 'MA'. Free to start, JSON format, plans from $9.99/mo.

Country overview

Capital

Rabat

Currency

MAD

Moroccan Dirham

Languages

Arabic, Berber

Timezone

UTC+1

What data is available for Morocco?

The following geographic datasets are available for Morocco via the REST API.

States & Provinces

All administrative subdivisions for Morocco

Get all states

Cities

All cities and localities in Morocco

Get all cities

Zip / Postal Codes

Complete postal code dataset for Morocco

Get zip codes

API Request Example

Fetch Morocco data using the ISO code MA as the query parameter.

Get country by code

GET https://api.countrydataapi.com/v1/countries/by-code?code=MA

Authorization: Bearer YOUR_API_KEY

cURL example

curl "https://api.countrydataapi.com/v1/states/by-country?country=MA"   -H "Authorization: Bearer YOUR_KEY"

Access Morocco Data via API

Integrate Morocco geographic data into your application today. Countries, states, cities, and zip codes in one API.