Can I Get Results in an API?

For publishers that want to integrate unit results into reporting systems, or want exact poll results and not just percentages we also have results in a JSON format.

This is how you do it: 

1. Get your interaction ID

Every interaction (poll, quiz etc.) you publish has an interaction ID. When you preview a unit, the interaction ID is part of the URL.

In the dashboard, hover over the unit and press the preview icon:

Help_center_part_2.png

Then in the preview page, copy the ID from the URL (highlighted in yellow):

The URL looks like this:

https:renderer.apester.com/interaction/<interaction_id>?preview=true

Help_Desk_Part2.png

2. The paste the ID into this URL:

https://interaction.apester.com/interaction-stats/<interaction_id>?prettify=true

3. Load the URL and you'll get a JSON in this format:

"code": 200,
"message": "ok",
"payload": {
"interactionId": "",
"count": "",
"statistics": Array[6][
  {
   "slideId": "",
   "slideTitle": "",
   "options": Array[2][
        {
          "optionId": "",
          "optionTitle": "",
         "optionCount": 
         },
        {
       "optionId": "",
       "optionTitle": "",
       "optionCount": 
       }
}

 

Currently JSON results is supported in Poll, Quiz, Personality Test, Countdown Poll and Interactive Video. 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.