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.
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.
Our data model overview explains what our data represent and how to interpret them.
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.
Our website provides data for items of legislation in multiple formats, including XML. You can try:
/data.xml
to the end of a legislation.gov.uk address to get the content as XML (e.g. https://www.legislation.gov.uk/asc/2021/4/part/1/data.xml
), or/data.feed
to the end of the address for a search or list page (before the ?
query string character, if it appears) to get the content of the results page as an Atom feed (e.g. https://www.legislation.gov.uk/nia/2013/data.feed?title=budget
).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.
You can find details about our code and schemas on the More Resources page.
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.