Options
All
  • Public
  • Public/Protected
  • All
Menu

Party related methods

Abgeordnetenwatch API Documentation

Index

Type aliases

PartyListResult

PartyListResult: { data: EntityParty[]; meta: ResponseMeta }

List result

Type declaration

PartyRelatedDataParameter

PartyRelatedDataParameter: "show_information" | "members"

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

PartyResult

PartyResult: { data: EntityParty; meta: ResponseEntityMeta }

Single item result

Type declaration

Variables

Const url

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

Functions

Const party

  • party(id: number, relatedData?: null | "show_information" | "members"): Promise<PartyResult>
  • Get a single Party

    response = await party(5);
    

    Parameters

    • id: number

      Id of the Party.

    • relatedData: null | "show_information" | "members" = null

      Possible related Data you can include in the result

    Returns Promise<PartyResult>

    PartyResult as JSON

Const partyList

Generated using TypeDoc