Elections API
GitHub
  • Open Knowledge Belgium - Elections API
  • API
    • API
      • Entities
      • Groups
      • Lists
      • Candidates
    • Format I
    • Format R
  • More information
    • Types
    • Levels
    • Categories of voters
Powered by GitBook
On this page
  • Get lists
  • Get lists by group
  • Get lists by entity

Was this helpful?

  1. API
  2. API

Lists

PreviousGroupsNextCandidates

Last updated 5 years ago

Was this helpful?

Get lists

GET https://api.elections.openknowledge.be/lists/:year/:type[/:id]

This endpoint allows you to get information about lists. If you need a list of available elections types, see Types.

Path Parameters

Name
Type
Description

year

integer

Year of the elections.

type

string

Type of the elections (see Types).

id

integer

ID of the list.

Query Parameters

Name
Type
Description

test

boolean

Use test data instead of real data.

Get lists by group

GET https://api.elections.openknowledge.be/lists/:year/:type/group/:group

This endpoint allows you to get information about lists filtered by group. If you need a list of available elections types, see Types.

Path Parameters

Name
Type
Description

year

integer

Year of the elections.

type

string

Type of the elections (see Types).

group

integer

ID of the group.

Query Parameters

Name
Type
Description

test

boolean

Use test data instead of real data.

final

boolean

Use final test data instead of intermediate test data.

Get lists by entity

GET https://api.elections.openknowledge.be/lists/:year/:type/entity/:entity

This endpoint allows you to get information about lists filtered by entity. If you need a list of available elections types, see Types.

Path Parameters

Name
Type
Description

year

integer

Year of the elections.

type

string

Type of the elections (see Types).

entity

integer

ID of the entity.

Query Parameters

Name
Type
Description

test

boolean

Use test data instead of real data.

final

boolean

Use final test data instead of intermediate test data.

Types
Types
Types