Skip to content
RAG Repo

Legislation.gov.uk

Legislation.gov.uk publishes the text of UK primary and secondary legislation: Acts of Parliament, statutory instruments, and equivalent law from the devolved administrations. Many items are available in both their original and current, amended form, so you can retrieve the law as it stands today or as it was on a given date.

The whole database is available as structured XML and as linked data, where each provision has a stable web address you can query directly. This structure makes it well suited to RAG systems that need to cite a specific section rather than a whole document.

The content is published under the Open Government Licence v3.0, which lets you copy, adapt, and reuse it freely as long as you credit the source.

uklegislationstatuteslinked-datagovernment

Related sources