API

elections

Description: User GET request to get data

Parliamentary

To get election results grouped by territory:
GET REQUEST URL:
http://datacentar.io/api/izbori/datasource/parlamentarni/godina/int:godina/teritorija/instanca/int:territory_admin_level


Example GET REQUEST URL: http://datacentar.io/api/izbori/2/parlamentarni/godina/2003/teritorija/instanca/2

To get elections results by selected territory:
Example GET REQUEST URL:
http://datacentar.io/api/izbori/int:data_source_id/parlamentarni/godina/int:godina/teritorija/instanca/int:territory_admin_level/string:territory_slug

Presidential

To get election results grouped by political party:
Example GET REQUEST URL:
http://datacentar.io/api/izbori/int:data_source_id/predsjednicki/godina/int:godina/krug/string:krug/teritorija

Example GET REQUEST URL: http://datacentar.io/api/izbori/2/predsjednicki/godina/2003/krug/prvi/teritorija
Short description: round can be prvi or drugi