https://github.com/mrkouhadi/go-countries-api
It's an API that serve all countries, as well as their cities details and flags in svg fomrat, and the rest of details..
https://github.com/mrkouhadi/go-countries-api
api cities-api countries-api go golang
Last synced: 11 months ago
JSON representation
It's an API that serve all countries, as well as their cities details and flags in svg fomrat, and the rest of details..
- Host: GitHub
- URL: https://github.com/mrkouhadi/go-countries-api
- Owner: Mrkouhadi
- Created: 2023-08-09T18:58:06.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T15:15:07.000Z (over 1 year ago)
- Last Synced: 2025-01-18T12:34:36.466Z (over 1 year ago)
- Topics: api, cities-api, countries-api, go, golang
- Language: Go
- Homepage: https://go-countries-cities-api.onrender.com/countries
- Size: 2.02 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### description
- It's an API that serve all countries, as well as their cities details and flags in svg fomrat, and the rest of details..
### ENDPOINTS:
- Get all countries with all details
. https://go-countries-cities-api.onrender.com/countries
- Get a single countries by name
. https://go-countries-cities-api.onrender.com/countries/spain
- Get a single country by its capital city like "paris", "rabat", "beijing"
. https://go-countries-cities-api.onrender.com/countries/by-capital-city/london
- Get all countries of a continent by the continent code like "AS", "NA", "AF"...
. https://go-countries-cities-api.onrender.com/countries/by-continent-code/af
- Get all cities of the world
. https://go-countries-cities-api.onrender.com/cities
- Get all cities of a specific country by the country name
. https://go-countries-cities-api.onrender.com/cities/by-country/china
- Get a single city by its name
. https://go-countries-cities-api.onrender.com/cities/rabat
- Get a single city by its geoNameID
. https://go-countries-cities-api.onrender.com/cities/by-geonameid/2538475