Parline API

The Parline API gives read-only programmatic access to the full range of data held within the Parline dataset. This page provides user-friendly documentation for using the API. The API follows the OpenAPI specification (OAS) and the data response conforms to the JSON:API specification. The OAI-generated documentation is available at https://api.data.ipu.org/v1/documentation. Information about recent updates and new releases of the API is published here.

Introduction

Welcome to the documentation for Parline API. This guide provides information and examples on how to the access and use the API.

The API provides access to the historical dataset of parliamentary data, based on five main entities:

  • Country
  • Parliament
  • Chamber
  • Specialized body and
  • Election

There are also two secondary entities:

  • People, containing information about individuals, and
  • Political party, containing information about political organisations.

There is an end point for each entity.

Each main entity has a unique identifier (Id);

Entity Id Example
Country country_code ES
Parliament parliament_code ES
Chamber chamber_code ES-LC01
Election election_code ES-UC02-E20181211
Specialized body specialized_body_code ES-LC-SB01