One game by id: teams, start time, status, score, period scores and live clock. Ids come from sports.games or odds.events.
curl -X POST "https://api.primaryapi.com/v1/run/sports.game" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"WyJvIiw3NzM0MCwiYnVuZGVzbGlnYSJd","clock":false}'{
"output": {
"found": true,
"data": {
"homeScore": 2,
"awayScore": 1,
"league": "bundesliga",
"sport": "soccer", …
}
},
"credits": 1
}Input and output
2 fields
WyJvIiw3NzM0MCwiYnVuZGVzbGlnYSJd.false.15 fields
Good to know
Monitor recipe for a final score. Schedule sports.game with clock: false. The webhook fires when the score or status changes, and status "final" marks the end.
An unknown id returns found: false. A miss is an answer, not an error.
Terms of use. Scores and schedules are informational; they are not official league data and are not suitable for settling bets. Team and league names are trademarks of their owners.
More from Sports. Same key, same credits.
The same key and credits work for every API.