API Version 0.1
-----------API - VolebniPruzkumy.cz - Version 0.1 -----------The API is read-only. It accepts GET and POST requests. API returns JSON file.
This version of API may be replaced by a newer version and stop to function without prior notice.
The general pattern of API URLs is :: http://volebnipruzkumy.cz/api/v0.1/<data-collection>/?<parameters>`
- choices
- data
- polls
- pollsters
- questions
- topics
Examples: :: http://volebnipruzkumy.cz/api/v0.1/choices/ returns all the available results. :: http://volebnipruzkumy.cz/api/v0.1/choices/?abbreviation=Piráti returns filtered results.
- id
- abbreviation
Examples: :: http://volebnipruzkumy.cz/api/v0.1/data/ returns all the available data (warning: big file). :: http://volebnipruzkumy.cz/api/v0.1/data/?topic_id=model-psp&pollster_id=cvvm&since=2014-01-01 returns all data from pollster CVVM on models of PSP since 2014-01-01. :: http://volebnipruzkumy.cz/api/v0.1/data/?topic_id=model-psp&choice_id=pirati&since=2014-01-01&until=2014-07-01 returns all data from all pollsters on party Piráti from models of PSP since 2014-01-01 until 2014-07-01.
- question_identifier
- poll_identifier
- pollster_id
- topic_id
- choice_id
- since
- until
Examples: :: http://volebnipruzkumy.cz/api/v0.1/polls/ returns all the available polls. :: http://volebnipruzkumy.cz/api/v0.1/polls/?pollster_id=cvvm returns all the polls done by CVVM
- pollster_id
- identifier
Examples: :: http://volebnipruzkumy.cz/api/v0.1/pollsters/ returns all the available pollsters. :: http://volebnipruzkumy.cz/api/v0.1/pollsters/?id=cvvm returns the info on CVVM
- id
Examples: :: http://volebnipruzkumy.cz/api/v0.1/questions/ returns all the available questions. :: http://volebnipruzkumy.cz/api/v0.1/questions/?poll_identifier=2014-01&pollster_id=cvvm&topic_id=ucast-psp returns the info on question of pollster CVVM, with poll identifier 2014-01 and topic Účast PSP
- identifier
- poll_identifier
- pollster_id
- topic_id
- open
Examples: :: http://volebnipruzkumy.cz/api/v0.1/topics/ returns all the available topics. :: http://volebnipruzkumy.cz/api/v0.1/topics/?id=model-psp returns the info on Model PSP topic
- id