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

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

  • 3 June 2020
  • 6 replies
  • 227 views

Badge +1

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

icon

Best answer by rondev 3 June 2020, 09:50

View original

6 replies

Userlevel 7
Badge +22

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

Badge +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.

Userlevel 7
Badge +22

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

Badge +1

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

Userlevel 7
Badge +22

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

Badge +1

Thank you so much Rondev :)

Leave a Reply