Morocco — Country Data API
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
Cities
All cities and localities in Morocco
Zip / Postal Codes
Complete postal code dataset for Morocco
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=MAAuthorization: Bearer YOUR_API_KEY
cURL example
curl "https://api.countrydataapi.com/v1/states/by-country?country=MA" -H "Authorization: Bearer YOUR_KEY"More Countries in Africa
Access Morocco Data via API
Integrate Morocco geographic data into your application today. Countries, states, cities, and zip codes in one API.

