candidates

GET

candidates

Get information about candidates

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

Name Values Description
lang

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

candidateId

The id of a specific candidateid. If you provide this value, all of the following parameters will be ignored!

partyid

If you provide a partyid, the output will be filtered and only candidates of that party are delivered. You can get a List of all parties by fetching parties api service

electionid
(required)

The id of a specific election. This will give you a list of all candidates that are eligible for that election. You can get a list of elections and their id's through the cases api service

locationid

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

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

Candidates