Professional online survey tool
Search search
Help sections
FAQ

REST API

MySurveyLab alows for access to its resources with the REST API interface.

Access to API is available with a secure connection (SSL / HTTPS) and require a token. Data are available in JSON format.

List of available requests
 
Request Description
curl -i -X POST https://api.mysurveylab.com/oauth/token/ -d "clientSecret=YOUR_CLIENT_SECRET &clientId=YOUR_CLIENT_ID"  Obtaining a token for communication (the token is valid for 30 days)
curl -i -X GET -H "Authorization:bearer YOUR_ACCESS_TOKEN" -H "Content-Type": "application/json" https://api.mysurveylab.com/api/v2/surveys/ Obtaining the list of surveys
curl -i -X GET -H "Authorization:bearer YOUR_ACCESS_TOKEN" -H "Content-Type": "application/json" https://api.mysurveylab.com/api/v2/surveys/:id/ Obtaining single survey
curl -i -X GET -H "Authorization:bearer YOUR_ACCESS_TOKEN" -H "Content-Type": "application/json" https://api.mysurveylab.com/api/v2/surveys/:id/questions/ Obtaining survey questions
curl -i -X GET -H "Authorization:bearer YOUR_ACCESS_TOKEN" -H "Content-Type": "application/json" https://api.mysurveylab.com/api/v2/surveys/:id/responses Obtaining survey responses, first 100 records
curl -i -X GET -H "Authorization:bearer YOUR_ACCESS_TOKEN" -H "Content-Type": "application/json" https://api.mysurveylab.com/api/v2/surveys/:id/page/2/responses Obtaining survey responses, second 100 records

We are constantly improving our survey software and API. If you have any questions or needs regarding the API pleas contact us.

NOTE. REST is an acronym for REpresentational State Transfer. API is an acronym for Application Programming Interface. JSON is an acronym for JavaScript Object Notation


* Functionality is available for Enterprise plan.


Related pages

This site uses cookies. For more information please refer to the Privacy Policy.
OK