readBoxscore
Returns every matching team boxscore. This is the bulk version of getBoxscore.
Access
This returns every matching row, so it needs a paid subscription with read access. Free trial keys get access denied — see Usage tokens.
Usage is billed by response size, so filter as tightly as you can.
Required arguments
organization_id
Everything else is a filter, and the more you add the smaller the response. game_id gets both teams in one game; adding team_id narrows it to one side. season with team_id gets a team's whole season.
Request
GET
https://api.srating.io/v1/boxscore/readBoxscore?organization_id=f1dedce6-3b4c-11ef-94bc-2a93761010b8&game_id=91897046-68e4-11ef-9222-9667e47de71aPOST
fetch('https://api.srating.io/v1', {
'method': 'POST',
'headers': {
'Content-Type': 'application/json',
'X-API-KEY': 'YOUR_API_KEY',
},
'body': JSON.stringify({
'class': 'boxscore',
'function': 'readBoxscore',
'arguments': {
'organization_id': 'f1dedce6-3b4c-11ef-94bc-2a93761010b8',
'game_id': '91897046-68e4-11ef-9222-9667e47de71a',
}
}),
}).then(response => {
return response.json();
}).then(json => {
console.log(json);
return json;
}).catch(error => {
console.log(error);
});Response
Keyed by boxscore_id. Stat columns are trimmed here for readability — each row carries the full set for the sport, as shown on getBoxscore.
{
"13b33a79-68e5-11ef-9222-9667e47de71a": {
"boxscore_id": "13b33a79-68e5-11ef-9222-9667e47de71a",
"organization_id": "f1dedce6-3b4c-11ef-94bc-2a93761010b8",
"division_id": "bf258a3f-3b4a-11ef-94bc-2a93761010b8",
"game_id": "91897046-68e4-11ef-9222-9667e47de71a",
"team_id": "75a9cb12-8549-11ed-bf01-5296e1552828",
"season": 2024,
"sport_boxscore_id": "13b21c0e-68e5-11ef-9222-9667e47de71a",
"final": 1,
"deleted": 0,
"football_boxscore_id": "13b21c0e-68e5-11ef-9222-9667e47de71a",
"points": 38,
"passing_yards": 215,
"passing_touchdowns": 2,
"rushing_yards": 106,
"rushing_touchdowns": 2
},
"24c44b8a-68e5-11ef-9222-9667e47de71a": {
"boxscore_id": "24c44b8a-68e5-11ef-9222-9667e47de71a",
"organization_id": "f1dedce6-3b4c-11ef-94bc-2a93761010b8",
"division_id": "bf258a3f-3b4a-11ef-94bc-2a93761010b8",
"game_id": "91897046-68e4-11ef-9222-9667e47de71a",
"team_id": "885557ec-8549-11ed-bf01-5296e1552828",
"season": 2024,
"sport_boxscore_id": "24c33d9b-68e5-11ef-9222-9667e47de71a",
"final": 1,
"deleted": 0,
"football_boxscore_id": "24c33d9b-68e5-11ef-9222-9667e47de71a",
"points": 24,
"passing_yards": 241,
"passing_touchdowns": 1,
"rushing_yards": 88,
"rushing_touchdowns": 1
}
}The stat columns you get back depend on the sport behind organization_id — football boxscores and basketball boxscores have different fields.