Can you pull records with the API and not duplicate prior exports? | XM Community
Solved

Can you pull records with the API and not duplicate prior exports?

  • 7 August 2019
  • 1 reply
  • 18 views

Userlevel 1
Badge
Is it possible to hit up the API and pull only new responses since the last pull, and is there a way to only pull particular fields from the survey? The code I'm currently using is:

downloadRequestUrl = baseUrl
downloadRequestPayload = '{"format":"' + fileFormat + '","surveyId":"' + surveyId + '"}'
downloadRequestResponse = requests.request("POST", downloadRequestUrl, data=downloadRequestPayload, headers=headers)
progressId = downloadRequestResponse.json()["result"]["id"]
print(downloadRequestResponse.text)

Thanks
icon

Best answer by TomG 8 August 2019, 21:28

View original

1 reply

Userlevel 7
Badge +27
Yes, you can use the startDate and questionIds parameters:
https://api.qualtrics.com/reference#create-response-export-new

Leave a Reply