statshawk
REST APITeams

`GET /v1/teams/{team_id}/roster` — the as-of roster surface.

cost 3 unitsany plan
GET
/v1/teams/{team_id}/roster
X-API-Key<token>

In: header

Path Parameters

team_id*string

Minted team id (team_…)

Query Parameters

season?integer

Season year — roster of persons who appeared that season.

Formatint32
as_of?|

RFC3339 instant — who represented the team in a window ending here.

Formatdate-time
edition?string

Tournament edition id — appearances ∪ edition-overlapping memberships.

days?|

Look-back window in days for the Current/AsOf scopes (clamped [1, 90]).

Formatint32

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/teams/string/roster"
{
  "data": {
    "items": [
      {
        "person": {
          "bio": {
            "birth_country": "BRA",
            "display_name": "string",
            "dob": "2019-08-24",
            "full_name": "string",
            "headshot_url": "string",
            "height_inches": 0,
            "position": "SF",
            "weight_lbs": 0
          },
          "id": "per_0a1b2c3d4e5f6g7h8i9j0k1l2m"
        },
        "source": "appearance"
      }
    ],
    "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
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "property1": null,
    "property2": null
  }
}