Legislation.gov.uk data reuse documentation

Welcome

Open data

The information on legislation.gov.uk is available for you to reuse free of charge, under a permissive licence, for commercial and non-commercial uses.

You can download the following data from us, in a variety of formats:

You can also search or query for legislation, download lists of legislation or subscribe to feeds of new and updated content.

Find out what data we have

Our dataset is not yet complete and only contains data for some items of legislation. You can read about what data we have, including limitations of the data in our dataset.

We acquire new and historical legislation data from multiple sources. You can read about how to track updates to our data.

Understand our data

Our data model overview explains what our data represent and how to interpret them.

Start using our data

You can get our data via our website and API.

You can find more information about the different kinds of data we offer, including how to get and interpret them, in the open data section above.

Online access via our API and website

Our website provides data for items of legislation in multiple formats, including XML. You can try:

The website is usable as an API by applications that speak HTTP. All the features of the website are available via the API.

If you want to find out more about our API, we provide an overview of the API that explains how it works and what features it offers.

Code, schemas and other resources

You can find details about our code and schemas on the More Resources page.

Contact us

If you have any questions about using our data or API, please contact data.legislation@nationalarchives.gov.uk. We’re happy to help with enquiries from individuals, business, organisations and government departments.

You can also follow us on X (formerly Twitter) at @legislation.