<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />

Marrakech, Morocco — City Data API

Country: MA Pop: 929,000

Marrakech is a city in Morocco (MA). Get Marrakech geographic data, postal codes and location info via the Country Data API REST endpoints. Query by country code 'MA' to retrieve Marrakech data. JSON, plans from €5/mo.

Marrakech location data via REST API

Use country code MA to query cities and zip codes that include Marrakech.

All cities of Morocco

List every city in Morocco

Cities by country

Zip codes in Morocco

Postal code dataset for Morocco

Get zip codes

API Request Example

Fetch cities in Morocco (MA) — your response will include Marrakech.

Cities by country

GET https://api.countrydataapi.com/v1/cities/country?country=Morocco&limitToken=1000&apikey=YOUR_API_KEY

cURL example

curl "https://api.countrydataapi.com/v1/cities?city=Marrakech&apikey=YOUR_API_KEY"

Access Marrakech data via API

Integrate Marrakech (Morocco) into your application. One API for all countries, states, cities and zip codes.