Candidates

get
Get candidates

https://api.elections.openknowledge.be/candidates/:year/:type[/:id]
This endpoint allows you to get information about candidates. 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 candidate.
Query Parameters
test
optional
boolean
Use test data instead of real data.
200: OK

get
Get candidates by list

https://api.elections.openknowledge.be/candidates/:year/:type/list/:list
This endpoint allows you to get information about candidates filtered by list. 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).
list
required
integer
ID of the list.
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

get
Get candidates by group

https://api.elections.openknowledge.be/candidates/:year/:type/group/:group
This endpoint allows you to get information about candidates filtered by group. 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).
group
required
integer
ID of the group.
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

get
Get candidates by entity

https://api.elections.openknowledge.be/candidates/:year/:type/entity/:entity
This endpoint allows you to get information about candidates filtered by entity. 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).
entity
required
integer
ID of the entity.
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