For a given survey, how do you determine its survey_id
for use with the SurveyMonkey API?
A list of all IDs is returned by the API method get_survey_list
, and you could subsequently call get_survey_details
on each survey to determine which one is the intended one, but that seems needlessly complicated. There has to be a way to get a survey's ID from the My Surveys page, right?
Edit:
Whoops, get_survey_details
isn't actually necessary, since get_survey_list
can take a fields
parameter that includes the survey's title.
To retrieve the survey id, you will need to make a GET request to the SurveyMonkey API /surveys endpoint. Include the access token in the request header. The response will list the id, title, link, and additional data for available surveys.
As responses come into the Analyze section, each response is assigned an ID number. This is considered a Respondent ID and you will only see those numbers on exported data. However, this is not a unique number to the respondent.
To get the Survey ID take a look at the URL bar while you're in the survey Build tab. The number that follows /id/ is your survey ID.
Abstract. Survey IDs are short strings of unique characters assigned to each recipient in a sample population.
If you want to get the survey ID via the web page you can:
Right click on the survey in the "ALL SURVEYS" surveys view, and press "Inspect Element" or "Inspect" depending on your browser.
In the bottom of the browser, you will see a highlighted block that starts with:
<a href="/summary/...
Scroll up a few lines until you see a line that starts with:
<tr class="survey-row" id=`
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With