REST APITeams
`GET /v1/teams/{team_id}/stats?competition=&season=` — the materialized
season aggregate (Workflow-1 task A2). Store-only: the typed season tables are served directly, never a provider fan-out.
cost 2 unitsany plan
season aggregate (Workflow-1 task A2). Store-only: the typed season tables are served directly, never a provider fan-out.
Authorization
api_key X-API-Key<token>
In: header
Path Parameters
team_id*string
Minted team id (team_…)
Query Parameters
competition*string
Competition slug (e.g. mlb) or minted comp_… id.
season*integer
Format
int32Response Body
application/json
application/json
curl -X GET "https://example.com/v1/teams/string/stats?competition=string&season=0"{
"data": {},
"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
}
}