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 entities
  • Get entities by level

Was this helpful?

  1. API
  2. API

Entities

PreviousAPINextGroups

Last updated 5 years ago

Was this helpful?

Get entities

GET 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.

Path Parameters

Name
Type
Description

year

integer

Year of the elections.

type

string

Type of the elections (see Types).

id

integer

ID of the entity.

Query Parameters

Name
Type
Description

test

boolean

Use test data instead of real data.

Get entities by level

GET 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).

Path Parameters

Name
Type
Description

year

integer

Year of the elections.

type

string

Type of the elections (see Types).

level

string

Level (see Levels).

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
Levels