The Office for National Statistics (ONS) OpenAPI (Beta) is a RESTful web service which returns UK statistical data as XML or JSON. At the time of launch it only has Census 2011 data, but more data will be added over time.
The Office for National Statistics (ONS) OpenAPI (Beta) was launched on 28th October 2013.
Its home page is http://www.ons.gov.uk/ons/apiservice/web/apiservice/home
It is a RESTful web service which returns UK statistical data as XML or JSON. At the time of launch it only has Census 2011 data, but more data will be added over time and it will eventually replace the NeSS and NOMIS services.
The service is free but developers have to register for an API key.
From the home page above, developers can access example client code, sample outputs, how to guides and reference material.
Example applications are currently supplied for AJAX (HTML/JavaScript), Java, Visual Basic, Excel, D3 (SVG), Mapping (OS OpenSpace and Google), Adobe Flex (Flash) and Android. This code is provided under the Open Government Licence.