PUBLICATIONS

UKCensusAPI: python and R interfaces to the nomisweb UK census data API

Andrew P Smith

Nomisweb (“Nomis – Official Labour Market Statistics” 2017) provide an extremely useful API for querying and downloading UK census data. However, in practice data queries must be built manually and the query URL copied and pasted into user code. This makes modification of queries laborious and this is especially so when (re)defining the geographical coverage and resolution of a query.

This package (Smith 2017) provides both python and R interfaces around the nomisweb API that address these shortcomings. It contains functionality to: – query tables directly for their metadata – autogenerate customised python and R query code for reuse – automate and cache data and metadata downloads – easily modify the geographical coverage and resolution of existing queries – add descriptive information to downloaded tables (from metadata).

This is particularly useful in applications such as microsimulation, where there are requirements to run the model for different geographical areas and/or different geographical resolutions with minimal user/developer intervention.

RESEARCH THEMES

ENERGY
TRANSPORT
WATER
DIGITAL COMMUNICATIONS
DEMOGRAPHICS
URBAN DEVELOPMENT
ECONOMICS
INFRASTRUCTURE
GOVERNANCE
NISMOD
RISK AND
RESILIENCE
RESEARCH SOFTWARE ENGINEERING
DATABASES