Skip to content
Hockay API
Esc
↑↓navigate↵open⌘Jpreview

Every season, newest first

GET/seasons
Authorization
x-api-keyAPI key · headerrequired
Responses
200

OK

dataSeason[]required
Show properties
Array of Season
idstringrequired

e.g. "S04"

numberintegerrequired
min -9007199254740991 · max 9007199254740991
phasestringrequired
Allowed:regular_seasonwildcardquarterfinalssemifinalsconference_finalsfinalrest_dayintersaison
currentMatchdayintegerrequired
min -9007199254740991 · max 9007199254740991
startDatestringrequired

ISO 8601 date-time (UTC)

endDatestring | nullrequired
Show properties
Any of:
string
string
null
null
304

Not modified (If-None-Match matched the ETag)

401

Missing, unknown, revoked, or expired key

errorobjectrequired
Show properties
codestringrequired
messagestringrequired
403

This account cannot use this key class

errorobjectrequired
Show properties
codestringrequired
messagestringrequired
429

Rate limited; retry after the Retry-After seconds

errorobjectrequired
Show properties
codestringrequired
messagestringrequired
Try it
Server
Authorization
Request
curl -X GET 'https://hockay.com/api/v1/seasons' \
  -H 'x-api-key: YOUR_API_KEY' \
  -H 'Accept: application/json'
Response
{
  "data": [
    {
      "id": "string",
      "number": -9007199254740991,
      "phase": "regular_season",
      "currentMatchday": -9007199254740991,
      "startDate": "string",
      "endDate": "string"
    }
  ]
}

Was this page helpful?