Continents, Countries And Cities API
Continents, countries and cities — rebuilt on GeoNames, the world''s reference geographical database: 235,640 cities and towns (every place with population 500+), 252 countries and all 7 continents, self-hosted and coherent. Every city carries real coordinates, population, elevation, IANA timezone, region (state/province) and alternate names (Múnich finds München); every country carries capital, ISO2/ISO3, area, population, currency code and name, languages, TLD, phone prefix and neighbouring countries; continents roll up their countries and population. Search cities by name prefix across native and ASCII spellings, filter by country, region or minimum population, and find every city near a coordinate with the distance-sorted nearby endpoint. Existing integrations keep working: the classic /continents, /countries and /cities paths and name/page/pageSize parameters are honoured. Data refreshes daily from GeoNames'' official modification feed (CC-BY 4.0, attribution included in every response). Built for signup forms, store locators, travel apps, shipping calculators and mapping tools. Self-hosted — no third-party calls at request time.
{
"geonameid": 3674962,
"name": "Medellín",
"country": "Colombia",
"region": "Antioquia",
"population": 1999979,
"latitude": 6.245,
"longitude": -75.57151,
"timezone": "America/Bogota"
}Also available on
Why developers pick this API
Production-ready
Production Ready
Battle-tested infrastructure with a 99.9% uptime SLA. Rate limits are generous, responses are consistent.
Simple Integration
Standard REST + JSON. Works with any HTTP client. Copy-ready code snippets in 4 languages.
One Key, 20+ APIs
Your DataAndAPIs subscription unlocks every API on the platform — anime, finance, sports, and more.
Code snippets
One install. Every endpoint.
No proprietary SDKs needed. Any HTTP client works. Pick your language and paste.
- Fully typed responses — auto-completion in your IDE
- Tracks the API in lockstep — new endpoints land same day
- One key works across 20+ APIs on the platform
import axios from 'axios';
const { data } = await axios.get(
'{API_URL}',
{ headers: { 'X-Api-Key': process.env.API_KEY } }
);🔒 Subscribe to unlock the live API URL
Developer playground
Explore the endpoints
Browse request parameters and inspect live example responses.
Available Endpoints
Request Parameters
API URL
Please subscribe to see the API URL
Headers
Query Parameters
Please subscribe to see the actual API URL
import axios from 'axios';
const url = '{API_URL}';
const { data } = await axios.get(url, {
headers: { 'X-Api-Key': 'YOUR_API_KEY' }
});Pricing
One subscription. Every API.
Tokens unlock this API and 20+ others on DataAndAPIs. Switch APIs any time — we promote.
STARTER
25,000 tokens / month
- Access to all APIs
- Tokens reset monthly
- Email support
PRO
100,000 tokens / month
- Access to all APIs
- Tokens reset monthly
- Priority email support
ULTRA
1,000,000 tokens / month
- Access to all APIs
- Tokens reset monthly
- Priority support
Need higher volume, dedicated infra, or a custom contract? Talk to sales →
Common questions
The things that actually block the upgrade.
Ship Continents, Countries And Cities API this afternoon.
500 free tokens. No card. Plus 20+ other APIs on the same key.

