🗃️ historicData list

Game logs for every player on a team's current roster.

Authorization

🔐 Private API Key

📊

Product Required: This endpoint requires the historicData product subscription.

Returns game-by-game player statistics for every player on a team's currently-active roster in a single request. Players are resolved from active roster spots at request time.

Required Query Parameter

ParameterTypeDescription
teamstringTeam ID with TEAM_ prefix or the team's full name (case-insensitive, e.g. Los Angeles Lakers).

Optional Query Parameters

ParameterTypeDescription
gamesBackintegerMost recent N completed games per player (counts distinct games, not stat rows).
seasonTypestringFilter by season type (REG, PRE, POST).
metricstringOne metric ID or a comma-separated list (e.g. METR_points,METR_assists).

Error Responses

  • 400 — team query param missing, or a full-name lookup matched more than one team.
  • 404 — No team matches the supplied ID or name.

Response Shape

Returns a bare list — one entry per rostered player. Each entry has a player object (PlayerSerializerLight) and a historicData list of {event, stats} rows for that player.

[
  {
    "player": {
      "id": "PLYR_abc123def456",
      "firstName": "LeBron",
      "lastName": "James",
      "fullName": "LeBron James",
      "sportId": "SPRT_basketball",
      "sportsdataioId": "20000571",
      "oddsjamId": null,
      "sportradarId": null
    },
    "historicData": [
      {
        "event": {
          "id": "EVNT_xyz789abc012",
          "sport": "Basketball",
          "league": "NBA",
          "name": "Lakers @ Heat",
          "nameSpecial": null,
          "startTime": "2024-01-15T01:20:00Z"
        },
        "stats": [
          { "metric": { "id": "METR_points", "name": "Points" }, "value": 28 },
          { "metric": { "id": "METR_assists", "name": "Assists" }, "value": 10 }
        ]
      }
    ]
  }
]
Query Params
string
required

Team ID (TEAM_ prefix) or full name (case-insensitive)

integer

Limit to the most recent N completed games (counts distinct games, not stat rows)

string
enum

Filter by season type

Allowed:
string

One metric ID or a comma-separated list (e.g. METR_points,METR_assists)

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json