- Published on
Show HN: MoroccoAPI: An open source API for Moroccan public data
- Authors

- Name
- DeepHorus
MoroccoAPI, an open-source API for Moroccan public data, is now available as a community-built project. The tool aims to make public datasets from Morocco easier to discover and use. It offers a single, consistent JSON format for developers. Clear documentation and source attribution accompany each dataset.
The project is currently at version 2.3.0 and is described as open source. It is built together by contributors, according to its tagline. The API targets developers who need reliable Moroccan public data. It seeks to reduce fragmentation in public information access.
Its initial focus is geography. The API covers regions, provinces, and communes. Arabic and French names are included for these administrative areas. A sample request points to https://moroccoapi.dev/api/v2/regions.
That endpoint returns Moroccan regions in JSON. Developers can use the same format across different datasets. The approach is intended to simplify integration into applications. It also provides a source behind every dataset, supporting transparency.
Open data projects can improve access to public information. By standardizing Moroccan public data, MoroccoAPI could make datasets easier to discover and use. The community-built model encourages contributors to improve the API over time. Its open-source status allows anyone to inspect the code and documentation.
The project is listed as v2.3.0, indicating iterative development. Its open-source nature allows users to inspect and improve the code. Future updates may expand beyond geography to other public datasets. For now, MoroccoAPI offers a practical starting point for Moroccan open data.
The documentation emphasizes clarity and consistency. Each dataset includes a source, which can help users verify information. The project invites builders to start with geography before moving to other data. As an open-source tool, MoroccoAPI can evolve with community feedback.