Fast API for getting moroccan cities and their districts in json/xml/csv format built with
The number of requests per user is limited to 100 req/min
# with json format
GET /api/cities?format=json
# with xml format
GET /api/cities?format=xml
# with csv format
GET /api/cities?format=csv
- Search by city Id
# with json format
GET /api/districts/{cityID}?format=json
# with xml format
GET /api/districts/{cityID}?format=xml
# with csv format
GET /api/districts/{cityID}?format=csv
- Search by city name
# with json format
GET /api/districts?name={cityName}&format=json
# with xml format
GET /api/districts?name={cityName}&format=xml
# with csv format
GET /api/districts?name={cityName}&format=csv
Pull requests and stars are always welcome. For bugs and features requests, please create an issue.
Ysn4Irix
Copyright © 2022-present, Ysn4Irix. Released under the MIT License.