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.

Resources (2)

Details

License
UK Open Government Licence (OGL)
Modified
Jun 24, 2026
Metadata observed
Dec 2, 2026
Official publisher title
Legislation API ↗