Retrieve Questions and Answers from SurveyMonkey API - surveymonkey

I'm trying to get the results from a survey through the API, I know I need a list of respondents Ids and the survey ID. When I use the getResponses method I get the results but all the questions and answers come in numbers (Ids) except the questions with open answers (text). How can I bring the actual questions and answers from an API request?
Thanks

You need to combine the information received in get_responses with the survey structure retrieved with get_survey_details.
Note I believe there is an outstanding issue where if questions are deleted from the survey they will no longer be in the get_survey_details response.

Related

SurveyMonkey API v3 survey list - example wrong and list unhelpfully brief

I am just starting converting an existing app from SurveyMonkey v2 API to v3.
I found the example response on the developer website for getting a survey list was incorrect - when I get a survey list it just contains ID, Title and URL for each survey. It would be good if that could be corrected for the benefit of others.
My app needs the survey list so that it can present the user with a list of the surveys they have access to, and my current version shows date_modified, number of responses and number of questions.
All of this information was available in a single call in v2 API but in v3 we seem to have to go on to do a call for each survey individually in order to get the date_modified and number of questions information and a further call to get the number of responses.
Thus the v3 API is much less efficient at giving us what we need than v2 was.
Is it possible that the V3 survey list could be enhanced to contain that additional information?
The docs need to be updated.
/v3/surveys?api_key=API_KEY&include=response_count,date_created,date_modified,language,question_count,analyze_url,preview
/v3/surveys/SURVEY_ID/collectors?api_key=API_KEY&include=type,status,response_count,date_created,date_modified,url

REST API support by survey monkey

I am planning to do a survey using survey monkey. I will require API support to automatically pull responses from your datasource. I looked into https://developer.surveymonkey.com/docs/methods/get_responses/ and it looks like I need to use services like curl to extract data. It also looks like I can extract data in json format. And the data that is extracted using get_responses api, returns only ids.
So my questions are:
1. Do you support REST APIs to download data?
2. Can I download data in csv format?
3. Can I download actual responses with questions and not just ids? What APIs will be return survey, questions asked and user responses?
3. Can you send me an example format of how data will look when downloaded using the APIs?
5. Finally, with $26/month subscription for one month, will I get API support? Is the API support available for free subscription?
Thanks!!
SurveyMonkey does have a REST API
You can get all responses (just ids) doing:
GET /surveys/{survey_id}/responses
See: https://developer.surveymonkey.com/api/v3/#surveys-id-responses
You can get the details and all answers to questions for a specific response by ID doing:
GET /responses/{response_id}/details
See: https://developer.surveymonkey.com/api/v3/#responses-id
Or you can do this all at once by doing
GET /surveys/{id}/responses/bulk
See: https://developer.surveymonkey.com/api/v3/#surveys-id-responses-bulk
Answered by akand074.
We only support JSON at this time.
You'll have to make a separate GET to /v3/surveys/{survey_id}/details to get the survey details, and then map it to the response data.
The format, along with response data examples can be found here.
You'll have to contact api-support#surveymonkey.com to find out.

survey_details does not contain all the question_id's

I've put out a survey and gotten >100 responses. However, when I get the survey details using the api (i'm using python if it helps), then get the responses from respondents, I find a question in the response that is not present in the survey details.
I thought that the responses would only have question id's that were present in the survey details -- so I'm not sure what is going on.
Any help/advice?

SurveyMonkey API - Closed Survey

I'd be grateful for some help with a couple of questions on the Survey Monkey API;
Using the API console, I've entered a valid survey number and back got a list of collectors. Is there also an API call to get information about each of the collectors ?
Is possible through the API to determine if a survey has been closed ?
Is possible through the API to determine if a reponse has been completed ?
Many thanks.
With the list of collectors, you can get details about the type and the status of the collector (open/close). Please see the above link for a list of optional response fields. Once you have the collector_id, you can pass that to get_respondent_list, which will give you details for the respondents AND only those collectors.
From that same get_collector routine, you can see if the collector is open or closed. It is an option return field called 'data.collectors[_].open'
Using get_respondent_list][4] you can pass those respondent IDs to get_responses. Usually the response is recorded if the respondent completes the page or the entire survey.

Get details about survey monkey's questions and answers by id

survey monkey provides an api to extract responses here
https://developer.surveymonkey.com/mashery/get_responses
However, the responses map to a question_id along with column, row and/or text for the user response.
How do I go about extracting the question details from the question_id? I was not able to find any documentation for this.
To map this back you need to use the data retrieved via get_survey_details, documented here:
https://developer.surveymonkey.com/mashery/get_survey_details
This will return the question and answer ids so you can map the response back to what was asked.
We have a sample app in the works that will show an example of how to do this in code, however it should be relatively straightforward for you to map things back.
Cheers,
Miles

Resources