Get detailed data about a country by name, slug, or ISO code. Returns population, area, capital, region, coordinates, and 20+ statistics.
Search for countries by name or keyword, with optional region filter. Returns a list of matching countries with basic data.
Search for cities worldwide by name. Returns matching cities from a database of 13.4M cities with population and country.
List cities in a specific country, sorted by population or name. Supports minimum population filter. Covers 13.4M cities globally.
Compare two countries side by side across all available metrics: population, area, GDP, HDI, life expectancy, and more.
Get country rankings by metric. Available: population, area, gdp, hdi, life-expectancy, and 9 Bamwor indices (ibeu, ibcp, ibda, ibcx, ibee, ibfm, ibdi, ibed, ibsa). Omit metric to list all.
Get detailed information about a specific city by its GeoNames ID. Returns coordinates, population, elevation, timezone, province, and country.
Find cities near a specific city using PostGIS radius search. Returns nearby cities with distance in kilometers.