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/countriescURL
curl -H "X-API-Key: bw_live_your_key_here" \ "https://bamwor.com/api/v1/countries?page=1&limit=10&lang=en"