Skip to content

About

Reliable, developer-friendly access to Morocco's public open data.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

MoroccoAPI

MoroccoAPI logo

Reliable, developer-friendly access to Morocco's public open data.

Status: Ready Code License: Apache-2.0 Data licenses: per dataset

MoroccoAPI is a community-driven, open-source project that turns reusable Moroccan public datasets into consistent, documented, and versioned APIs.

Public information is often distributed across spreadsheets, documents, portals, and incompatible schemas. MoroccoAPI aims to make approved open datasets easier to discover and use while preserving source attribution, licensing, provenance, and update history.

Website · API documentation · Releases

Run locally

Requirements: Node.js 22 or newer and npm.

npm install
npm run dev

The homepage starts at http://127.0.0.1:3000; interactive documentation is at http://127.0.0.1:3000/docs.

Before opening a pull request, run:

npm run check

Principles

  1. Source first: every field must be traceable to an identified source.
  2. License before code: a dataset is not integrated until redistribution rights are documented.
  3. Stable contracts: breaking changes require a new API version.
  4. No personal-data lookup: MoroccoAPI will not expose CIN, phone, address, or citizen profile.
  5. Multilingual by design: Arabic, French, and English names are supported when reliable translations exist.
  6. Freshness is visible: responses identify the source and relevant update dates.
  7. Community governance: decisions and changes are discussed publicly.

Data licensing

Source code and data have separate licenses:

  • Project code is available under the Apache License 2.0.
  • Adapted databases derived from ODbL sources will be published under ODbL 1.0.
  • Third-party datasets keep their original licenses and notices.
  • Incompatible or unclear sources will not be merged into the public database.

Acknowledgements

MoroccoAPI is inspired by community public-data projects such as BrasilAPI. Inspiration does not imply affiliation.

About

Reliable, developer-friendly access to Morocco's public open data.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages