Parliament

Erskine May API

An API that allows querying of Erskine May data.

Data & analytics#openapi#open-data

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

An API that allows querying of Erskine May data.

Endpoints 11

Chapter

  • GETReturns a single chapter overview by chapter number./api/Chapter/:chapterNumber

IndexTerm

  • GETReturns a list of index terms by start letter./api/IndexTerm/browse?startLetter=string&skip=0&take=20
  • GETReturns an index term by id./api/IndexTerm/:indexTermId

Part

  • GETReturns a list of all parts./api/Part
  • GETReturns a part by part number./api/Part/:partNumber

Search

  • GETReturns a list of index terms which contain the search term./api/Search/IndexTermSearchResults/:searchTerm?skip=0&take=20
  • GETReturns a section overview by reference./api/Search/Paragraph/:reference
  • GETReturns a list of paragraphs which contain the search term./api/Search/ParagraphSearchResults/:searchTerm?skip=0&take=20
  • GETReturns a list of sections which contain the search term./api/Search/SectionSearchResults/:searchTerm?skip=0&take=20

Section

  • GETReturns a section by section id./api/Section/:sectionId
  • GETReturns a section overview by section id and step./api/Section/:sectionId,:step

API details

Authentication
None declared in the description
Operations
11 operations on 11 pathsGET 11
Main resources
Search 4IndexTerm 2Part 2Section 2Chapter 1
Response formats
application/json text/json text/plain
Description format
OpenAPI 3.0.1, API version v1
Listed from
APIs.guru OpenAPI Directory (CC0-1.0)
Source updated

How to test the Erskine May API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Erskine May API collection, without the publisher's secrets.
  3. Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
  4. Send a requestPick an endpoint, for example “Returns a single chapter overview by chapter number.” (GET /api/Chapter/:chapterNumber), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Erskine May API?

An API that allows querying of Erskine May data. It is listed under Data & analytics and has 11 endpoints.

Who publishes the Erskine May API?

It is listed from Parliament's public API description (an OpenAPI document), not published by Parliament on Swastik Codes. Anyone who controls parliament.uk can claim the profile by adding a DNS TXT record.

How do I authenticate with the Erskine May API?

Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.

How many endpoints does the Erskine May API have?

11 operations on 11 paths (11 GET). The largest groups are Search, IndexTerm, Part, Section.

Is forking the Erskine May API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.