Skip to main content

Population Explorer API Overview

Population Explorer API

The Population Explorer API provides population statistics based on geographic structures encoded as GeoJSON.

Key Features

  • Supports querying population statistics for a defined geographic area.
  • Provides breakdowns by gender and age.
  • Easily integrates with GIS mapping software, statistical programs, and mobile apps.

API Request Example

To query population statistics, send a POST request with the geographic structure as GeoJSON.

Example Request

curl -H "Authorization: Token your_token_here" \
-H "Content-Type: application/json" \
-X POST -d '{
"type": "Polygon",
"coordinates": [[[6.94625616073608, 50.9500866975338, 0.0], [6.95224285125733, 50.9498568863318, 0.0], [6.95370197296143, 50.9480183558104, 0.0], [6.95383071899414, 50.9458147270956, 0.0], [6.95183515548706, 50.9442058769703, 0.0], [6.94780111312866, 50.9434893123546, 0.0], [6.942458152771, 50.9443275566572, 0.0], [6.9428014755249, 50.9479777991703, 0.0], [6.94625616073608, 50.9500866975338, 0.0]]]
}' \
https://www.populationexplorer.com/api/geodata/population/


Population Explorer API Response Example

Below is an example of a typical response from the Population Explorer API:

Response Structure

The API response contains the following structure:

{
"results": [
{
"definer": 0,
"the_geom": "POLYGON Z ((6.94625616073608 50.9500866975338 0, 6.95224285125733 50.9498568863318 0, 6.95370197296143 50.9480183558104 0, 6.95383071899414 50.9458147270956 0, 6.95183515548706 50.9442058769703 0, 6.94780111312866 50.9434893123546 0, 6.942458152771 50.9443275566572 0, 6.9428014755249 50.9479777991703 0, 6.94625616073608 50.9500866975338 0))",
"population_data": {
"female": 3311,
"male": 3194,
"sum": 6506
}
}
]
}