Is this possible to download PDF summary of responses by using Qualtrics API in Python? | XM Community
Skip to main content
Solved

Is this possible to download PDF summary of responses by using Qualtrics API in Python?


Forum|alt.badge.img+1

Is this possible to download PDF summary of responses by using Qualtrics API in Python?

Best answer by rondev

Yes, it is possible. First create a csv sheet with all the response id in a column. Then write a python code which would do this - Parse the csv file in your code. Loop through each row and get the response id. Get the generalized response pdf link/URL from here and add(format) response id and survey id to it. Use requests.get method to save the pdf

View original

6 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • 1449 replies
  • Answer
  • June 3, 2020

Yes, it is possible. First create a csv sheet with all the response id in a column. Then write a python code which would do this - Parse the csv file in your code. Loop through each row and get the response id. Get the generalized response pdf link/URL from here and add(format) response id and survey id to it. Use requests.get method to save the pdf


Forum|alt.badge.img+1

Thank you! I have already called all the response id's in a list using python. Is there any other way to download the PDF easily because I can not use Salesforce.


rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • 1449 replies
  • June 5, 2020

https://www.qualtrics.com/community/discussion/comment/26316#Comment_26316Sorry , but I guess you misunderstood the steps.
Once you have the response id, just use the below link, and fetch all the PDFs by changing response id, using requests.get method of python
https://s.qualtrics.com/WRQualtricsControlPanel/Report.php?R=${e://Field/ResponseID}&NoStatsTables=1&SID=${e://Field/SurveyID}&ResponseSummary=True


Forum|alt.badge.img+1

Would i get all the responses summary in one time and how would I download this?


rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • 1449 replies
  • June 5, 2020

You can just use the for loop in the code and in one run, all the response id pdf will get downloaded


Forum|alt.badge.img+1

Thank you so much Rondev :)


Leave a Reply