Get Unclaimed Widget Interactions

The claim_token is used to claim rewards from Prediction widgets. To claim the reward, make a post request to the Prediction Follow Up widget's claim_url field. The response will include the rewards array.

The Prediction Follow Up resource can be fetched directly by making a get request to the prediction Follow Up widget's url field.

Using the Unclaimed Widget Interaction response above, you can make a get request to Prediction widget, and access the Prediction Follow Up claim_url from within the Prediction resource.

import requests

prediction_response = requests.get('')
prediction = prediction_response.json()
follow_up = prediction['follow_ups'][0]

claim_response =['claim_url'])
claim = claim_response.json()
rewards = claim['rewards']
Click Try It! to start a request and see the response here!