Countries and Cities API
Free REST API providing geographic, demographic, and administrative data for countries worldwide, including capitals, currencies, flag images, coordinates, states, and historical population figures from 1960 to 2018.
Screenshot:
Slug: countriesnow
Key:
Base URL:
Auth: none
Endpoints: 15
Reachable: unknown
CORS: unknown
Tier: verified
Key:
countriesnow.space:countries-and-cities-apiBase URL:
https://countriesnow.spaceAuth: none
Endpoints: 15
Reachable: unknown
CORS: unknown
Tier: verified
Links
Topics
DATABASE, GEOGRAPHY, GEOLOCATION
Tutorials
- Getting Started with Countries Now — I can look up a country's first-level administrative divisions with ISO 3166-2 codes, annual population estimates back to 1960, capital city, currency code, and flag image URL from countriesnow.space — no API key required, and the sub-national data (states, cities) is what sets it apart from REST Countries.
Skills
- Look up country states — I can look up a country's states, provinces, capital, ISO codes, and population history from Countries Now in a single unauthenticated GET — but sub-national divisions are where it shines, and multi-capital edge cases go to REST Countries.
Endpoints (15)
| Path | Summary | Response | Auth |
|---|---|---|---|
| countries | Get all countries with cities | application/json |
none |
| countries/capital | Get all countries with capitals | application/json |
none |
| countries/capital/q | Get capital for a specific country | application/json |
none |
| countries/cities/q | Get cities for a specific country | application/json |
none |
| countries/currency | Get all countries with currencies | application/json |
none |
| countries/currency/q | Get currency for a specific country | application/json |
none |
| countries/flag/images | Get all countries with flag images | application/json |
none |
| countries/flag/images/q | Get flag for a specific country | image/* |
none |
| countries/iso | Get all countries with ISO codes | application/json |
none |
| countries/population | Get all countries with population data | application/json |
none |
| countries/population/q | Get population data for a specific country | application/json |
none |
| countries/positions | Get all countries with geographic positions | application/json |
none |
| countries/positions/q | Get position for a specific country | application/json |
none |
| countries/states | Get all countries with states/provinces | application/json |
none |
| countries/states/q | Get states for a specific country | application/json |
none |