statshawk
REST APICompetitions

`GET /v1/competitions/{comp}/capabilities` — the per-phase measure inventory

for the competition's sport (spec §5), re-homed off the slug. Resolves the competition (store-only), then derives the surface from the phase registry.

cost 1 unitany plan
GET
/v1/competitions/{comp}/capabilities

for the competition's sport (spec §5), re-homed off the slug. Resolves the competition (store-only), then derives the surface from the phase registry.

X-API-Key<token>

In: header

Path Parameters

comp*string

Competition slug (nba, mlb, epl, …)

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/competitions/string/capabilities"
{
  "data": {
    "competition": "la_liga",
    "phases": [
      {
        "measure_notes": {
          "property1": "string",
          "property2": "string"
        },
        "measures": [
          "string"
        ],
        "phase": "string"
      }
    ],
    "sport": "basketball"
  },
  "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
  }
}