Skip to main content

Help us improve the National Data Library - complete this short survey

Close survey banner

Legislation API

Publisher
The National Archives
Updated
24 June 2026
Topic
Government

Summary

API for www.legislation.gov.uk - launched by The National Archives on 29/07/2010 - giving access to the statute book at various levels, for various times, as reusable html fragments, xml and rdf. The API is RESTful and uses content negotiation, so full access to the data can be achieved using http requests. Alternatively, just append data.xml or data.rdf to any legislation page on the website to return the underlying data. The full API is also available from http://legislation.data.gov.uk.

Data links

Link Format Preview Updated
Developer Documentation HTML 18/3/2014
Legislation API HTML 29/7/2010

Is this data/dataset useful? Give us feedback

Contact

foicentre@nationalarchives.gov.uk

foicentre@nationalarchives.gov.uk

Edit this dataset

You must have an account for this publisher on data.gov.uk to make any changes to a dataset.

Sign in