Skip to content

Treaties API API

by parliament.uk

No authHTTPSOpen Data
Open documentation ↗

Overview

An API exposing details of the treaties laid before Parliament.

Treaties API is an open data API from parliament.uk. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 6 endpoints.

At a glance

Authentication
No auth
HTTPS
Yes
CORS
Unknown
Category
Open Data
Version
v1
Endpoints
6
Spec updated
2023-03-03

Endpoints

MethodPathWhat it does
GET/api/BusinessItem/{id}Returns business item by ID.
GET/api/GovernmentOrganisationReturns all government organisations.
GET/api/SeriesMembershipReturns all series memberships.
GET/api/TreatyReturns a list of treaties.
GET/api/Treaty/{id}Returns a treaty by ID.
GET/api/Treaty/{id}/BusinessItemsReturns business items belonging to the treaty with ID.

Questions

Does the Treaties API API need an API key?

No. The Treaties API API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

Does the Treaties API API support HTTPS?

Yes, the Treaties API API is served over HTTPS.

How many endpoints does the Treaties API API have?

Its OpenAPI description lists 6 endpoints in version v1. All of them are shown on this page.

What are alternatives to the Treaties API API?

Other Open Data APIs include Search Services, Wayback API, Wikipedia, Nasdaq Data Link, University of Oslo.

Compare alternatives →

Listed from APIs.guru (CC0).