Format I
Initial data
Get entities
GET https://api.elections.openknowledge.be/format-i/entities/:year/:type
This endpoint allows you to get all the entities for specific elections. If you need the list of available elections types, see Types.
Path Parameters
year
integer
Year of the elections.
type
string
Type of the elections (see Types).
Query Parameters
test
boolean
Use test data instead of real data.
{
"1101": {
"id": 1101,
"level": "K",
"name_fr": "Votes Émis Dans le Canton de Rhode-Saint-Genèse",
"name_nl": "Stemmen Uitgebracht In het Kanton Sint-Genesius-Rode",
"name_de": "Stimmabgabe Im Kanton Sint-Genesius-Rode",
"name_en": "Voted In The District of Rhode-Saint-Genèse/sint-Genesius-Rode",
"nis": "1101",
"parent": "21004",
"electronic": true,
"stations": 44,
"max_official": 0,
"max_substitues": 0,
"registrations": {
"BB": 44429,
"E1_E2": 127,
"E3_E4": 0,
"E5": 0
}
},
...
}Get groups
GET https://api.elections.openknowledge.be/format-i/groups/:year/:type
This endpoint allows you to get all the groups for specific elections. If you need the list of available elections types, see Types.
Path Parameters
year
integer
Year of the elections.
type
string
Type of the elections (see Types).
Query Parameters
test
boolean
Use test data instead of real data.
Get lists
GET https://api.elections.openknowledge.be/format-i/list/:year/:type
This endpoint allows you to get all the lists for specific elections. If you need the list of available elections types, see Types.
Path Parameters
year
integer
Year of the elections.
type
string
Type of the elections (see Types).
Query Parameters
test
boolean
Use test data instead of real data.
Get candidates
GET https://api.elections.openknowledge.be/format-i/candidates/:year/:type
Path Parameters
year
integer
Year of the elections.
type
string
Type of the elections (see Types).
Query Parameters
test
boolean
Use test data instead of real data.
Last updated
Was this helpful?