statshawk
REST APITeams

`GET /v1/teams/{team_id}/game-log` — the team's chronological game log

(Workflow-1 task A4), each game rendered from the team's perspective. Store- only: a pure read over the games table, no *_game_logs table.

cost 2 unitsany plan
GET
/v1/teams/{team_id}/game-log

(Workflow-1 task A4), each game rendered from the team's perspective. Store- only: a pure read over the games table, no *_game_logs table.

X-API-Key<token>

In: header

Path Parameters

team_id*string

Minted team id (team_…)

Query Parameters

competition?|

Competition slug (e.g. mlb) or minted comp_… id.

season?integer
Formatint32
edition?string
from?|
Formatdate-time
to?|
Formatdate-time

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/teams/string/game-log"
{
  "data": {
    "items": [
      {
        "event": {
          "id": "evt_0a1b2c3d4e5f6g7h8i9j0k1l2m",
          "kind": "tournament",
          "lineage": "wimbledon",
          "name": "string",
          "span": {
            "end": "2019-08-24T14:15:22Z",
            "start": "2019-08-24T14:15:22Z"
          }
        },
        "game": "cst_0a1b2c3d4e5f6g7h8i9j0k1l2m",
        "home": true,
        "kickoff": "2019-08-24T14:15:22Z",
        "opponent": "team_0a1b2c3d4e5f6g7h8i9j0k1l2m",
        "opponent_score": 0,
        "outcome": "win",
        "status": "scheduled",
        "team_score": 0
      }
    ],
    "page": 0,
    "per_page": 0,
    "total": 0
  },
  "meta": {
    "cache": "HIT",
    "fetched_at": "2025-10-15T18:30:00Z",
    "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",
    "source": "postgres",
    "version": "v1"
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "property1": null,
    "property2": null
  }
}