Documentation / Games
Games in progress
Every game being played now, and those finished in the last 15 minutes: the score, the period, the clock, the score by period and the last play, with how many seconds behind the court it is. Poll it every 30 seconds, or take the game.live webhook.
Live and up
Parameters
| Name | In | Type | About |
|---|---|---|---|
competition | query | id | Only this competition, by its id (cp_…). e.g. cp_11A6HQXJ |
What comes back
data is one of these:
| Field | Type | About |
|---|---|---|
game | object | |
status | string | |
score | object | |
score.home | integer or null | |
score.away | integer or null | |
period | integer or null | |
periods_ended | integer | |
clock | string or null | Time left in the period at the last play, mm:ss. |
periods | object or null | |
periods.home | array of integer | |
periods.away | array of integer | |
last_play | object or null | |
last_play.seq | integer | |
last_play.period | integer | |
last_play.clock | string or null | |
last_play.side | string or null | |
last_play.player | object or null | |
last_play.type | string | |
last_play.description | string | |
last_play.home_score | integer or null | |
last_play.away_score | integer or null | |
last_change | date-time or null | |
seconds_behind | integer or null |
Errors
400422401403429 What each one means