fourzerotwo-si Uk Legislation API

UK Legislation: Search UK Acts and statutory instruments, read the current (or point-in-time) text of any section, and track amendments.

Operations 6

GET /v1/uk-legislation/item UK Legislation: Act or instrument overview #
GET /v1/uk-legislation/changes UK Legislation: Amendments made to it #
GET /v1/uk-legislation/latest UK Legislation: Newly published legislation #
GET /v1/uk-legislation/types UK Legislation: Legislation type codes #
GET /v1/uk-legislation/provision UK Legislation: Provision text #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/fourzerotwo-si:fourzerotwo-si-uk-legislation-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

fourzerotwo-si-uk-legislation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fourzerotwo Si Uk Legislation API
  version: 1.1.0
  contact:
    url: https://fourzerotwo.si
  description: 'Operations tagged uk-legislation across 2 of this provider''s published API definitions: openapi.json, fourzerotwo-si-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://fourzerotwo.si
tags:
- name: uk-legislation
  description: 'UK Legislation: Search UK Acts and statutory instruments, read the current (or point-in-time) text of any section, and track amendments.'
paths:
  /v1/uk-legislation/item:
    get:
      operationId: uk_legislation__item
      summary: 'UK Legislation: Act or instrument overview'
      description: 'Title, long title, enactment/made date, status, extent, count of outstanding changes and the full table of contents. Price: $0.003 USDC per call via x402. Free within the daily allowance with a free key.'
      tags:
      - uk-legislation
      externalDocs:
        url: https://fourzerotwo.si/apis/uk-legislation/item
      parameters:
      - name: type
        in: query
        required: true
        description: Legislation type code (ukpga, uksi, asp, ssi, wsi, nisr…; see types)
        schema:
          type: string
          maxLength: 8
        example: ukpga
      - name: year
        in: query
        required: true
        description: Year (or regnal year for pre-1963, e.g. Eliz2/10-11)
        schema:
          type: string
          maxLength: 16
        example: '2018'
      - name: number
        in: query
        required: true
        description: Chapter or SI number
        schema:
          type: integer
        example: 12
      responses:
        '200':
          description: The data (paid, or free tier).
          content:
            application/json: {}
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
      - {}
      - freeKey: []
      x-price-usd: '0.003000'
      x-free-tier: free
      x-mcp-tool: uk-legislation__item
    servers:
    - url: https://fourzerotwo.si
  /v1/uk-legislation/changes:
    get:
      operationId: uk_legislation__changes
      summary: 'UK Legislation: Amendments made to it'
      description: 'Most recent 50 changes (substitutions, repeals, insertions…) made by later legislation, with the amending provision, in-force dates and whether the change is reflected in the text yet. Price: $0.003 USDC per call via x402. Free within the daily allowance with a free key.'
      tags:
      - uk-legislation
      externalDocs:
        url: https://fourzerotwo.si/apis/uk-legislation/changes
      parameters:
      - name: type
        in: query
        required: true
        description: Legislation type code (ukpga, uksi, asp, ssi, wsi, nisr…; see types)
        schema:
          type: string
          maxLength: 8
        example: ukpga
      - name: year
        in: query
        required: true
        description: Year (or regnal year for pre-1963, e.g. Eliz2/10-11)
        schema:
          type: string
          maxLength: 16
        example: '2018'
      - name: number
        in: query
        required: true
        description: Chapter or SI number
        schema:
          type: integer
        example: 12
      responses:
        '200':
          description: The data (paid, or free tier).
          content:
            application/json: {}
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
      - {}
      - freeKey: []
      x-price-usd: '0.003000'
      x-free-tier: free
      x-mcp-tool: uk-legislation__changes
    servers:
    - url: https://fourzerotwo.si
  /v1/uk-legislation/latest:
    get:
      operationId: uk_legislation__latest
      summary: 'UK Legislation: Newly published legislation'
      description: 'The newest Acts and instruments published, optionally of one type. Price: $0.001 USDC per call via x402. Free within the daily allowance with a free key.'
      tags:
      - uk-legislation
      externalDocs:
        url: https://fourzerotwo.si/apis/uk-legislation/latest
      parameters:
      - name: type
        in: query
        required: false
        description: Type code
        schema:
          type: string
          maxLength: 8
        example: uksi
      responses:
        '200':
          description: The data (paid, or free tier).
          content:
            application/json: {}
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
      - {}
      - freeKey: []
      x-price-usd: '0.001000'
      x-free-tier: free
      x-mcp-tool: uk-legislation__latest
    servers:
    - url: https://fourzerotwo.si
  /v1/uk-legislation/types:
    get:
      operationId: uk_legislation__types
      summary: 'UK Legislation: Legislation type codes'
      description: 'Type codes and what they mean. Price: $0.0005 USDC per call via x402. Free within the daily allowance with a free key.'
      tags:
      - uk-legislation
      externalDocs:
        url: https://fourzerotwo.si/apis/uk-legislation/types
      responses:
        '200':
          description: The data (paid, or free tier).
          content:
            application/json: {}
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
      - {}
      - freeKey: []
      x-price-usd: '0.000500'
      x-free-tier: free
      x-mcp-tool: uk-legislation__types
    servers:
    - url: https://fourzerotwo.si
  /v1/uk-legislation/search:
    get:
      operationId: uk_legislation__search
      summary: 'UK Legislation: Search legislation'
      description: 'Find Acts and instruments by title words or full text, optionally by type and year. Price: $0.002 USDC per call via x402. Free within the daily allowance with a free key.'
      tags:
      - uk-legislation
      externalDocs:
        url: https://fourzerotwo.si/apis/uk-legislation/search
      parameters:
      - name: title
        in: query
        required: false
        description: Words in the title
        schema:
          type: string
          maxLength: 200
        example: data protection
      - name: text
        in: query
        required: false
        description: Words anywhere in the text
        schema:
          type: string
          maxLength: 200
      - name: type
        in: query
        required: false
        description: Type code (see types)
        schema:
          type: string
          maxLength: 8
        example: ukpga
      - name: year
        in: query
        required: false
        description: Year
        schema:
          type: integer
      - name: page
        in: query
        required: false
        description: Results page (20 per page)
        schema:
          type: integer
      responses:
        '200':
          description: The data (paid, or free tier).
          content:
            application/json: {}
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
      - {}
      - freeKey: []
      x-price-usd: '0.002000'
      x-free-tier: free
      x-mcp-tool: uk-legislation__search
    servers:
    - url: https://fourzerotwo.si
  /v1/uk-legislation/provision:
    get:
      operationId: uk_legislation__provision
      summary: 'UK Legislation: Provision text'
      description: 'Plain numbered text of one section, regulation, article or schedule paragraph, as it stands today or on a past date, with amendment and commencement notes. Price: $0.003 USDC per call via x402. Free within the daily allowance with a free key.'
      tags:
      - uk-legislation
      externalDocs:
        url: https://fourzerotwo.si/apis/uk-legislation/provision
      parameters:
      - name: type
        in: query
        required: true
        description: Legislation type code (ukpga, uksi, asp, ssi, wsi, nisr…; see types)
        schema:
          type: string
          maxLength: 8
        example: ukpga
      - name: year
        in: query
        required: true
        description: Year (or regnal year for pre-1963, e.g. Eliz2/10-11)
        schema:
          type: string
          maxLength: 16
        example: '2018'
      - name: number
        in: query
        required: true
        description: Chapter or SI number
        schema:
          type: integer
        example: 12
      - name: provision
        in: query
        required: true
        description: Path such as section/3, regulation/2, article/5 or schedule/1/paragraph/4
        schema:
          type: string
          maxLength: 80
        example: section/3
      - name: date
        in: query
        required: false
        description: 'Point in time, YYYY-MM-DD (default: current revised text)'
        schema:
          type: string
      responses:
        '200':
          description: The data (paid, or free tier).
          content:
            application/json: {}
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
      - {}
      - freeKey: []
      x-price-usd: '0.003000'
      x-free-tier: free
      x-mcp-tool: uk-legislation__provision
    servers:
    - url: https://fourzerotwo.si
components:
  responses:
    PaymentRequired:
      description: x402 payment required. The body (also base64 in the PAYMENT-REQUIRED header) lists accepted payments.
      headers:
        PAYMENT-REQUIRED:
          schema:
            type: string
          description: Base64 JSON x402 v2 PaymentRequired
      content:
        application/json:
          schema:
            type: object
            properties:
              x402Version:
                type: integer
              error:
                type: string
              accepts:
                type: array
                items:
                  type: object
    Error:
      description: 400 = invalid input, 404 = not found at the source, 502 = the source failed. Never charged.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
              charged:
                type: boolean
  securitySchemes:
    freeKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: Optional free key (fzt_…) for the free tier.
x-refined-from:
- openapi.json
- fourzerotwo-si-openapi.json