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: Use get_survey_list
with title as a fields
parameter]1. Therefore using get_survey_details
isn't necessary.
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=`