statshawk
REST APIPersons

`GET /v1/persons/{per_id}/stats`.

cost 2 unitsany plan
GET
/v1/persons/{person_id}/stats
X-API-Key<token>

In: header

Path Parameters

person_id*string

Minted person id (per_…)

Query Parameters

competition*string

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

season*integer
Formatint32

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/persons/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
  }
}