Skip to content

Get Prediction Info

Fetches a list of predictions made by the user, filterable by time ranges (today, this week, all time, etc.).

POST/prediction/v1/get
Terminal window
curl -X POST https://api.juspredict.com/prediction/v1/get \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"time_in_force": 1,
"page_request": {
"page_number": 1,
"page_size": 20
}
}'
FieldRequirement
time_in_force1: LIVE, 2: COMPLETED TODAY, 6: ALL TIME, 8: UPCOMING.
{
"status": { "type": "SUCCESS" },
"prediction_count": 1,
"predictions": [
{
"prediction_id": "pred-uuid",
"event_name": "Team A vs Team B",
"question": "Who will win?",
"predicted_outcome": "Team A",
"investment_amt": "50.00",
"prediction_status": "MATCHED"
}
]
}
FieldTypeDescription
statusStatusOperation status.
predictionsPredictionInfo[]List of predictions.