Using Qualtrics API to get the value of embedded data of specific respondent | XM Community
Solved

Using Qualtrics API to get the value of embedded data of specific respondent

  • 28 June 2020
  • 7 replies
  • 417 views

Userlevel 1
Badge +1

I have a Qualtrics survey link called from a different platform (MTurk). Each respondent will enter the survey only through this site. After each completion, I'd like to get an embedded data that was randomly set by Qualtrics (this is actually the random assignment of respondents, so should be a randomly selected one value, out of two values). Is there a way to do this for each specific respondent? It's important to note that there might be multiple participants taking the survey at the same time.
Thanks!

icon

Best answer by TomG 28 June 2020, 22:07

View original

7 replies

Userlevel 7
Badge +22

I'd like to get an embedded data -> Where do you want to get this data?
If you want in some external system other than qualtrics, then you can create an API that will fetch the embedded data and response id of each respondent.

Userlevel 1
Badge +1

Thanks rondev !
All the respondents get the link in an enxternal website. Then, after each completion of the stuvet, I want to know what was the embedded data value given to him/her, so that I can do something in the external website. I've never used the Qualtrics API and wondered whether I can get the value for a specific respondent...

Userlevel 7
Badge +27

@yinbar,
Yes you can use the API to get embedded data from a response, but you need the response id to get it.
If you are redirecting back to the external website at end of the survey, it would by easier to pipe the data you need as url parameters in the link.

Userlevel 1
Badge +1

Thanks TomG !
I'm not really redirecting, it's just that the external page is kept open (it is an Amazon Mechanical Turk), and then it's the respondents' responsibility to go back after they finish the Qualtrics survey, and do some work there. So I guess the URL parameters option is less suitable here... if I understood it correctly.

Userlevel 7
Badge +27

https://www.qualtrics.com/community/discussion/comment/27279#Comment_27279I think you understand correctly. I don't think the API will help you because you would need response id to do the lookup, and since you can't pass anything back there is no way to get the response id.

TomG Do you know which API I have to use? I can get survey question answers from the Retrieve Survey Response one very easily (https://api.qualtrics.com/api-reference/b3A6NjEwNjg-retrieve-a-survey-response), but I can't get the embedded values to come through.

Userlevel 7
Badge +27

https://community.qualtrics.com/XMcommunity/discussion/comment/40646#Comment_40646The embedded data fields are included. In the json, they are at the end of "values" just before "labels".

Leave a Reply