API Playground

The Bamwor API Playground lets you test all REST endpoints directly from your browser. Query geographic and demographic data for 261 countries, search millions of cities by name or coordinates, retrieve population rankings, and explore nearby places using PostGIS geospatial queries β€” all with real-time JSON responses.

Available Endpoints

GET
List Countriesβ€”Paginated list of 261 countries with population, area, GDP, and region data
GET
Get Countryβ€”Full country profile with 20+ statistics from CIA World Factbook
GET
Country Citiesβ€”Cities within a country sorted by population, with coordinates and timezone
GET
Get Cityβ€”City detail by GeoNames ID β€” population, elevation, coordinates, province
GET
Nearby Citiesβ€”PostGIS radius search: find cities within a given distance in kilometers
GET
Searchβ€”Full-text search across countries and cities in 4 languages
GET
Rankingsβ€”Countries ranked by population, GDP, area, HDI, life expectancy, and more

Need an API key? Get one free in 30 seconds Β· Full documentation

No API key yet? Get a free key
GET/api/v1/countries
cURL
curl -H "X-API-Key: bw_live_your_key_here" \
  "https://bamwor.com/api/v1/countries?page=1&limit=10&lang=en"