Options
All
  • Public
  • Public/Protected
  • All
Menu

Politician related methods

Abgeordnetenwatch API Documentation

Index

Type aliases

PoliticanRelatedDataParameter

PoliticanRelatedDataParameter: "show_information" | "mandates" | "candidacies" | "all_candidacies_mandates" | "votes"

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

PoliticianListResult

PoliticianListResult: { data: EntityPolitician[]; meta: ResponseMeta }

List result

Type declaration

PoliticianResult

PoliticianResult: { data: EntityPolitician; meta: ResponseEntityMeta }

Single item result

Type declaration

Variables

Const url

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

Functions

Const politician

  • politician(id: number, relatedData?: null | "show_information" | "votes" | "mandates" | "candidacies" | "all_candidacies_mandates"): Promise<PoliticianResult>
  • Get a single Politician

    response = await politician(5);
    

    Parameters

    • id: number

      Id of the Politician.

    • relatedData: null | "show_information" | "votes" | "mandates" | "candidacies" | "all_candidacies_mandates" = null

      Possible related Data you can include in the result

    Returns Promise<PoliticianResult>

    PoliticianResult as JSON

Const politicianList

Generated using TypeDoc