Options
All
  • Public
  • Public/Protected
  • All
Menu

Parliament related methods

Abgeordnetenwatch API Documentation

Index

Type aliases

ParliamentListResult

ParliamentListResult: { data: EntityParliament[]; meta: ResponseMeta }

List result

Type declaration

ParliamentRelatedDataParameter

ParliamentRelatedDataParameter: "show_information" | "legislatures" | "elections" | "all_parliament_periods"

Possible extra data that you can include on the response for a single item

ParliamentResult

ParliamentResult: { data: EntityParliament; meta: ResponseEntityMeta }

Single item result

Type declaration

Variables

Const url

url: "https://www.abgeordnetenwatch.de/api/v2/parliaments" = 'https://www.abgeordnetenwatch.de/api/v2/parliaments'

Functions

Const parliament

  • parliament(id: number, relatedData?: null | "show_information" | "legislatures" | "elections" | "all_parliament_periods"): Promise<ParliamentResult>
  • Get a single Parliament

    response = await parliament(5);
    

    Parameters

    • id: number

      Id of the Parliament.

    • relatedData: null | "show_information" | "legislatures" | "elections" | "all_parliament_periods" = null

      Possible related Data you can include in the result

    Returns Promise<ParliamentResult>

    ParliamentResult as JSON

Const parliamentList

Generated using TypeDoc