MoroccoAPI
Open data. Built together.

Morocco’s open data,
ready to build with.

A community-built API that makes Moroccan public datasets easier to discover and use. One consistent JSON format, clear documentation, and a source behind every dataset.

v2.7.0 · Open source

Start with geography.

Regions, provinces, and communes.
Arabic and French names included.

curl https://moroccoapi.dev/api/v2/regions
See the JSON response