Skip to content

legislation.gov.uk API: Get UK law section

Gets the latest available revised text of a section of a UK Act from legislation.gov.uk, or the Act's section contents when no section is given. The outstanding-changes flag describes the Act and may include changes outside the selected section.

legislation.gov.uk (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by legislation.gov.uk.

Inputs

Values from the run on Oct 31, 2026, shown under Output.

Act, requiredact

Act title, with year if known; for example, Equality Act 2010. A legislation.gov.uk Act link or ID also works.

Equality Act 2010

Section optionalsection

Section number, such as 13. Leave blank to get the Act contents.

(default)

Output

From a run on Oct 31, 2026, shortened for this page.
{  "link": "https://www.legislation.gov.uk/ukpga/2010/15/contents",  "text": null,  "year": 2010,  "title": "Equality Act 2010",  "extent": null,  "heading": null,  "contents": [    {      "link": "https://www.legislation.gov.uk/ukpga/2010/15/section/1",      "number": "1",      "heading": "Public sector duty regarding socio-economic inequalities"    },    {      "link": "https://www.legislation.gov.uk/ukpga/2010/15/section/2",      "number": "2",      "heading": "Power to amend section 1"    },    {      "link": "https://www.legislation.gov.uk/ukpga/2010/15/section/3",      "number": "3",      "heading": "Enforcement"    }  ],  "in_force": null,  "version_date": null,  "chapter_number": 15,  "section_number": null,  "prospective_note": null,  "changes_still_to_be_applied": null}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
legislation.gov.uk/get_law_section
Returns
title, year, chapter, section heading and text, in force, extent, outstanding changes, version date, link, contents

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method legislation.gov.uk/get_law_section with the inputs above.

Ask your agent

  • What does section 13 of the Equality Act 2010 say right now? I need the current revised wording on direct discrimination.
  • Pull up the table of contents for the Data Protection Act 2018 so I can see how the sections are organised.
  • Is section 21 of the Housing Act 1988 still in force, and does it extend to Scotland? Check legislation.gov.uk for the latest version.
  • Get me the up-to-date text of s.1 of the Theft Act 1968, including whether there are any outstanding amendments not yet applied to the Act.
  • I need the revised version of section 98 of the Employment Rights Act 1996 from legislation.gov.uk, plus the version date and a link to it.
  • Search UK legislation by topic or title, with optional type and year filters. Closest title matches appear first; broader text matches fill remaining places.

    legislation.gov.uk/search_legislation
  • Gets the status, official summary, titles, actions and related bills for one U.S. bill on Congress.gov, found by popular name, title, number or link. A missing summary or text is returned as null.

    congress.gov/get_bill
  • Gets the official text and key dates of one article of an EU regulation or directive from EUR-Lex, in the latest consolidated version when there is one, in any official EU language.

    eur-lex.europa.eu/get_law_article
  • Reads the text and details of a BBC News article from its link or headline. Live coverage pages return the latest entries available.

    bbc.com/read_article
  • Lists the article headlines shown on a BBC News section page, in page order, with summary, publish time, authors, image and link.

    bbc.com/list_headlines
  • Lists the stories on a Guardian section front (top stories, world, UK, US, business, environment, technology, sport or culture) in page order, with the summary and image shown on the front, the publication time (as displayed, else from the story page), and each story's section and authors from its page.

    theguardian.com/list_headlines
  • Finds current eCFR regulation sections for a topic or an exact CFR citation. Returns each section's text, last amendment date and the date the title is current through.

    ecfr.gov/get_regulation
  • Reads one public Guardian article by link or headline and returns its details and available full-text paragraphs. Live blogs return the latest entries shown on the page; some older articles may be unavailable.

    theguardian.com/read_article