votations

GET

votations

Get voting results (Abstimmungen)

https://api.srgssr.ch/polis-api/v2 /votations

Name Values Description
lang

The language of the multilanguage content. Must be one of "de" (German), "fr" (French), "it" (Italian), "rr" (Romansch), "en" (English)

caseid

Provide the case ID if you wish to get a specific case, e.g. a case in the past. You can get a List of all cases by fetching cases api service

locationid

Provide the location ID if you wish to get specific results from this location. You can get a List of all locations by fetching locations api service

locationtypeid

Provide the locationType ID if you wish to get results just for Cantons or Countries. LocationTypes are "1 - Country (Land)", "2 - Canton (Kanton)", "3 - Destrict (Bezirk)", "4 - Community (Gemeinde)", "5 - Swiss citizens living abroad (Ausland Schweizer)", "6 - Urban District (Stadtkreis)"

votelocationid

Provide the location ID if you wish to get specific only votes from one location. You can get a List of all locations by fetching locations api service

votelocationtypeid

Provide the locationType ID if you wish to get results just for Cantons or Countries. LocationTypes are "1 - Country (Land)", "2 - Canton (Kanton)", "3 - Destrict (Bezirk)", "4 - Community (Gemeinde)", "5 - Swiss citizens living abroad (Ausland Schweizer)", "6 - Urban District (Stadtkreis)"

dataconditionid

Provide the datacondition ID if you wish to get specific results from this datacondition. Available dataconditions are "3 - result", "4 - extrapolation 1", "8 - extrapolation 2", "9 - extrapolation 3", "5 - web", "6 - trend", "7 - zwischenstand", "10 - fremde Hochrechnung"

timestamp

Timestamp in the format "YYYY-MM-DDThh:mm:ss" You can provide the timestamp of the last file you received. If something changed since your last request, you will get a new XML File. If nothing changed, you will get an XML File with the following inner XML true

Name Values Description
accept

Authorization

Pass the access-key as a Bearer token in Authorization header. In the developer portal, Authorization header is attached on OAuth authentication. you can use a pre-existing bearer token here or generate one using the button below before sending the request.

HTTP Basic

OAuth 2.0

API Key

Reset

Working...

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

HTTP Code Error Code Description
400

Object of type BadRequest.

401

Object of type TokenError

403

Object of type QuotaViolation.

404

Object of type UnknownResource.

405

Object of type MethodNotAllowed.

Resource Summary

Security

Category

Votations