List of operations for resource
Name | URL | Description |
| Returns a list of all surveys for a logged in user. Surveys are sorted by date of adding (ascending). | |
| Returns a list of surveys matching the search criteria. Surveys are sorted by date of adding (ascending). | |
| Detailed survey information. As compared to the data from the previous operation, here information about the domain, skin and key information about the questions will be returned divided by pages |
Description of the response parameters
Name/path | Description | Possible values |
| Survey ID |
|
| Survey title |
|
| Survey title displayed in the user panel |
|
| Survey title used in “friendly links” |
|
| Date of survey creation |
|
| Date of survey publication - starting the collection of results |
|
| Date of last survey modification |
|
| Date of the first end of the collection of survey results |
|
| Number of survey fillings |
|
| Survey status |
|
| Survey type |
|
| Personal data in a survey |
|
| Survey interface language |
|
| Survey access level |
|
| Respondent identification |
|
| Survey access password. Set if |
|
| Filling out the survey |
|
| Displaying a button enabling to contact the survey creator |
|
| Displaying question numbers |
|
| Displaying the survey progress bar |
|
| Respondents can return to filling out the survey later |
|
| Displaying the “Back” button in surveys with more than one page |
|
| The number of surveys filled out after which the study will be ended |
|
| Date on which the survey will be automatically activated |
|
| Date on which the survey will be automatically ended |
|
| Information whether the survey was archived |
|
| Action after filling out |
|
| Address of the redirection page to which the respondent will be redirected after filling out the survey, if |
|
| Thank you message displayed after completing the survey |
|
| Question type |
|
Survey list
URL
(GET) https://www.startquestion.com/api/v2/surveys
Optional parameters (POST)
Name | Description |
| Limit per survey number |
| Offset per list |
Sample response
[
{
"id":69047,
"title":"Tytul ankiety testowej",
"url_title":"tytul-ankiety-testowej",
"date_created":"2011-09-19 13:22:06",
"date_published":"2011-09-19 13:23:10",
"date_modified":"2011-09-19 13:23:10",
"date_end":null,
"answers_count":0,
"status":1,
"type":0,
"personal_data":0,
"lang_code":"pl",
"security_level":0,
"anonymous":0,
"password":"",
"public_results":1,
"many_answers_from_cookie":1,
"email_notification":0,
"comments":1,
"social_media":1,
"contact_with_author_form":1,
"question_numbers":1,
"progress_bar":0,
"partial_answers":0,
"reversible":0,
"answers_limit":0,
"expiration_date":null,
"search_engines":1,
"action_after_answer":0,
"redirection":null,
"thank_you_text":"Dzi\u0119kujemy za wype\u0142nienie ankiety"
},
{
...
}
]
Returned errors
None
Survey search
URL
(GET) https://www.startquestion.com/api/v2/surveys/search
Optional parameters (POST)
Name | Description |
| Survey title |
| Survey creation date. The date must be indicated in the following format |
| Date of first survey publication. The date must be indicated in the following format |
| Date of the first end of the collection of survey results The date must be indicated in the following format |
| Survey status. Permissible values: |
| Survey type. Permissible values: |
| Survey security level. Permissible values: |
| Limit per survey number |
| Offset per list |
Sample response
[
{
"id":69047,
"title":"Tytul ankiety testowej",
"internal_title":"[Projekt] Tytul ankiety testowej",
"url_title":"tytul-ankiety-testowej",
"date_created":"2011-09-19 13:22:06",
"date_published":"2011-09-19 13:23:10",
"date_modified":"2011-09-19 13:23:10",
"date_end":null,
"answers_count":0,
"status":1,
"type":0,
"personal_data":0,
"lang_code":"pl",
"security_level":0,
"anonymous":0,
"password":"",
"public_results":1,
"many_answers_from_cookie":1,
"email_notification":0,
"comments":1,
"social_media":1,
"contact_with_author_form":1,
"question_numbers":1,
"progress_bar":0,
"partial_answers":0,
"reversible":0,
"answers_limit":0,
"expiration_date":null,
"search_engines":1,
"action_after_answer":0,
"redirection":null,
"thank_you_text":"Dzi\u0119kujemy za wype\u0142nienie ankiety"
},
{
...
}
]
Returned errors
400 Bad request
– Incorrect data format, incorrect status or incorrect security level
500 Internal Server Error
– Internal server error
Survey information
URL
(GET) https://www.startquestion.com/api/v2/surveys/:id
Parameters
none
Sample response
{
"id":69047,
"title":"Tytul ankiety testowej",
"url_title":"tytul-ankiety-testowej",
"internal_title":"[Projekt] Tytul ankiety testowej",
"date_created":"2011-09-19 13:22:06",
"date_published":"2011-09-19 13:23:10",
"date_modified":"2011-09-19 13:23:10",
"date_end":null,
"answers_count":0,
"status":1,
"type":0,
"personal_data":0,
"lang_code":"pl",
"security_level":0,
"anonymous":0,
"password":"",
"public_results":1,
"many_answers_from_cookie":1,
"email_notification":0,
"comments":1,
"social_media":1,
"contact_with_author_form":1,
"question_numbers":1,
"progress_bar":0,
"partial_answers":0,
"reversible":0,
"answers_limit":0,
"expiration_date":null,
"search_engines":1,
"action_after_answer":0,
"redirection":null,
"thank_you_text":"Dzi\u0119kujemy za wype\u0142nienie ankiety",
"domain":{
"type":"subdomain",
"main":false,
"address":"subdomena.webankieta.pl"
},
"pages":[
{
"id":261181,
"number":1,
"questions":[
{
"id":804039,
"type":9,
"order":1,
"number":0,
"text":"Blok opisowy",
"desc":"Witamy.",
"date_created":"2011-05-06 00:39:14"
},
{
"..."
}
]
},
{
"id":261182,
"number":2,
"questions":[
{
"id":804041,
"type":0,
"order":1,
"number":1,
"text":"Sk\u0105d dowiedzieli si\u0119 Pa\u0144stwo o naszej restauracji?",
"desc":"",
"date_created":"2011-06-27 16:29:50"
},
{
"..."
}
]
}
],
"skin":{
"id":"115",
"name":"Ankieta.biz",
"head_background":"ffffff",
"progress_bar_background":"93341E",
"title_color":"93341E",
"title_border":"eeeeee",
"question_color":"93341E",
"button_color":"ffffff",
"button_background":"93341E",
"logo":"http:\/\/www.webankieta.pl\/user_files\/user_logo\/16552\/ankietabiz.png"
}
}
Returned errors
404 Not Found
– Resource not found or non-existent.