Census
Query Census 2021
Retrieve aggregated Census 2021 data for a building block, looked up by geographical code and building block, by coordinates, or by KAEK.
GET
Query Census 2021
Overview
Returns Census 2021 data for a building block. Figures are aggregated across every building in the block. For example,total_buildings is the number of buildings in the block, and construction_year_* fields count buildings per construction period.
The response is a flat JSON object containing every field of the matched record. The exact shape depends on the requested dataset.
The query parameter is
geographical_code, but the response field is named geographic_code.Authorization header. See Authentication to get one.
Path parameters
Lookup methods
Find the building block with exactly one of these lookup methods:
Sending no lookup method, more than one, or only half of a pair (for example,
lat without lon) returns a 400.
Query parameters
All query parameters are optional on their own. Each request must include the parameters for exactly one lookup method.Response
Returns a flat JSON object. Every field of the matched Census 2021 record is included. The exact fields depend on the requested dataset.Example requests
Example response
All three example requests point to the same building block, so they return the same response.Error responses
Example
400 response:
Authorizations
Path Parameters
Query Parameters
Response
Every field of the matched record is returned as a flat JSON object. Response shape depends on the requested dataset.
The response is of type object.
