Parliament

UK Parliament API

This application programming interface exposes authoritative information about the Parliament of the United Kingdom as permissively licensed,…

Government & public#government

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

This application programming interface exposes authoritative information about the Parliament of the United Kingdom as permissively licensed, standards-compliant, machine-readable linked data.

Endpoints 5

api.parliament.uk

  • GETGET /odata/openapi.json/odata/openapi.json
  • GETGET /photo/openapi.json/photo/openapi.json
  • GETGET /query/openapi.json/query/openapi.json
  • GETGET /search/openapi.json/search/openapi.json

id.parliament.uk

  • GETGET /{id}https://id.parliament.uk/:id

API details

Base URL
https://api.parliament.uk
Authentication
None declared in the description
Operations
5 operations on 5 pathsGET 5
Main resources
api.parliament.uk 4id.parliament.uk 1
Response formats
application/json text/plain
Description format
OpenAPI 3.0.1, API version Live

How to test the UK Parliament 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 UK Parliament 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 “GET /odata/openapi.json” (GET /odata/openapi.json), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the UK Parliament API?

This application programming interface exposes authoritative information about the Parliament of the United Kingdom as permissively licensed,… It is listed under Government & public and has 5 endpoints.

Who publishes the UK Parliament 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.

What is the base URL of the UK Parliament API?

Requests go to https://api.parliament.uk. Endpoint paths are added to this base URL.

How do I authenticate with the UK Parliament 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 UK Parliament API have?

5 operations on 5 paths (5 GET). The largest groups are api.parliament.uk, id.parliament.uk.

Is forking the UK Parliament 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.