Entities

get
Get entities

https://api.elections.openknowledge.be/entities/:year/:type[/:id]
This endpoint allows you to get information about entities. If you need a list of available elections types, see Types.
Request
Response
Path Parameters
year
required
integer
Year of the elections.
type
required
string
Type of the elections (see Types).
id
optional
integer
ID of the entity.
Query Parameters
test
optional
boolean
Use test data instead of real data.
200: OK

get
Get entities by level

https://api.elections.openknowledge.be/entities/:year/:type/level/:level
This endpoint allows you to get information about entities filtered by level. If you need a list of available elections types, see Types. If you need a list of available elections levels, see Levels (not all levels are available for each type).
Request
Response
Path Parameters
year
required
integer
Year of the elections.
type
required
string
Type of the elections (see Types).
level
required
string
Level (see Levels).
Query Parameters
test
optional
boolean
Use test data instead of real data.
final
optional
boolean
Use final test data instead of intermediate test data.
200: OK