sidelined.chdevelopers sidelined.ch ↗

API reference

Base URL: https://api.sidelined.ch/v1 · Free, no key · 60 requests a minute per IP address · OpenAPI 3.1 document

Every response includes an attribution to show with the data. Errors are problem details. Field meanings and rules: the data model.

GET /v1/teams #

The 14 clubs with their current counts.

curl "https://api.sidelined.ch/v1/teams"
StatusMeaningBody
200All teams.data: array of Team, attribution: Attribution
403Before the public launch: not open yet.Problem
429Rate limit: 60 requests a minute per IP address.Problem

GET /v1/teams/{slug} #

One club with all its current entries (every category, marked).

ParameterInTypeDescription
slug (required)pathstringTeam slug, from GET /v1/teams.
curl "https://api.sidelined.ch/v1/teams/zug"
StatusMeaningBody
200The team.data: Team + object, attribution: Attribution
403Before the public launch: not open yet.Problem
404Unknown team slug.Problem
429Rate limit: 60 requests a minute per IP address.Problem

GET /v1/teams/{slug}/absences #

A club's current entries, as on its team page.

ParameterInTypeDescription
slug (required)pathstringTeam slug, from GET /v1/teams.
categoryquerystringWhich entries: out (default, as the site counts), scratch, loan, several comma-separated (out,loan), or all. Default: out.
curl "https://api.sidelined.ch/v1/teams/zug/absences?category=out,loan"
StatusMeaningBody
200The entries.data: array of Absence, attribution: Attribution
400Invalid parameter.Problem
403Before the public launch: not open yet.Problem
404Unknown team slug.Problem
429Rate limit: 60 requests a minute per IP address.Problem

GET /v1/absences #

Current entries across the league, filterable.

ParameterInTypeDescription
teamquerystringTeam slug.
typequerystringAbsence type. One of: injury, illness, suspension, loan, national_team, personal, healthy_scratch, import_limit, unknown.
confidencequerystringConfidence. One of: official, league, media, inferred.
categoryquerystringWhich entries: out (default, as the site counts), scratch, loan, several comma-separated (out,loan), or all. Default: out.
curl "https://api.sidelined.ch/v1/absences?team=zug"
StatusMeaningBody
200The entries.data: array of Absence, attribution: Attribution
400Invalid parameter.Problem
403Before the public launch: not open yet.Problem
404Unknown team slug.Problem
429Rate limit: 60 requests a minute per IP address.Problem

GET /v1/changes #

Recent changes: players newly out, updated, back, or no longer listed (last 14 days).

ParameterInTypeDescription
sincequerystringOnly changes after this ISO 8601 date or timestamp (at most 14 days back).
teamquerystringTeam slug.
limitqueryintegerPage size, 1–100. Default: 50.
cursorquerystringnext_cursor from the previous page.
curl "https://api.sidelined.ch/v1/changes?team=zug"
StatusMeaningBody
200Newest first. A page can hold fewer than limit changes; follow next_cursor until it is null.data: array of Change, next_cursor: string or null, attribution: Attribution
400Invalid parameter or cursor.Problem
403Before the public launch: not open yet.Problem
429Rate limit: 60 requests a minute per IP address.Problem

GET /v1/openapi.json #

This document.

StatusMeaningBody
200OpenAPI 3.1 document.

Schemas #

Attribution #

Must be shown wherever the data is shown (terms of use).

FieldTypeDescription
textstringCredit line to display.
urlstring (uri)Link the credit points to.

Team #

FieldTypeDescription
slugstringStable identifier used in URLs and filters.
namestringFull club name.
short_namestringShort name for tight spaces.
logo_urlstring (uri)Club logo (256 px WebP). The logos are the clubs' trademarks; use them only to identify the club.
urlstring (uri)The team page on sidelined.ch.
outintegerPlayers currently unavailable (category out): scratches and loans are not counted.
scratchesintegerFit players left out of the last game (healthy scratch, import limit; category scratch).
loansintegerPlayers with the farm team or another club (category loan).
checked_atstring or null (date-time)When one of the club's own sources was last read successfully (UTC).
next_gameobject or nullThe club's next National League game, or today's until it's over, from the league's schedule (no cup or Champions Hockey League games). Null when none is scheduled.

Player #

FieldTypeDescription
idintegerStable player ID.
namestringDisplay name, "First Last".
jerseyinteger or nullJersey number, when known.

Source #

FieldTypeDescription
kindstringWhere the entry comes from. One of: medical_report, manual, news, league_news, lineup, lineup_sheet, media.
labelstringHuman-readable source name.
urlstring or null (uri)The page or document it comes from: the club's report, the article, the lineup sheet. Null for lineup data.

Absence #

A player currently unavailable. Reasons are given as the source published them; sidelined.ch adds no medical details of its own.

FieldTypeDescription
idintegerStable ID of this absence.
teamstringTeam slug.
playerPlayer
typestringWhy the player is unavailable. One of: injury, illness, suspension, loan, national_team, personal, healthy_scratch, import_limit, unknown.
categorystringout: counted as unavailable. scratch: fit, left out by the coach (healthy scratch, import limit). loan: with the farm team or another club. Only out counts in Team.out. One of: out, scratch, loan.
confidencestringHow the information is known: official (the club), league (National League, SIHF), media, inferred (only missing from lineups; reason unknown). One of: official, league, media, inferred.
reason_textstring or nullThe reason as the source published it, in its language.
body_regionstring or nullBody region, when the source names one. One of: upper_body, lower_body, head.
sincestring (date)Date the absence started or was first reported (see since_kind).
since_kindstringWhat since is: reported (a date the source published), article (the article's date), first_seen (when sidelined.ch first saw it), lineup (the first game missed). One of: reported, article, first_seen, lineup.
returnobjectExpected return: the source's wording and sidelined.ch's reading of it. An estimate, not a club statement.
detailstring or nullExtra context, e.g. "Not dressed for the last 3 games" on inferred entries.
sourcesarray of Source
off_club_reportobject or nullThe club's medical report no longer lists him, but another source (usually SIHF's lineup sheet of his team's last game) keeps the entry open. return is then the club's last estimate, from before it dropped him. Null otherwise.
expected_backobject or nullThe club says he plays a named upcoming game (a game preview or club news, read by a language model and checked against the article): the game and the article. The entry stays open until he's dressed. Null once that game has started, or when no club says so.
updated_atstring (date-time)Last change to this entry (UTC).

Change #

FieldTypeDescription
idintegerEvent ID, increasing.
kindstringopened: a player became unavailable. updated: an open entry has a new type, a new reason or a new suspension length (reworded return estimates are left out), or the club's medical report dropped him or lists him again while another source keeps the entry open. closed: no longer listed. One of: opened, updated, closed.
closed_reasonstring or nullreturned: dressed for a game again. cleared: the sources no longer list him. moved: dressed for another club (a loan to another National League club, a transfer). One of: returned, cleared, moved.
changedarray of stringFor updated: what is new. Null otherwise.
club_reportobject or nullFor updated with changed: ["club_report"]: whether the club's medical report lists him now. False: it dropped him, but another source (usually SIHF's lineup sheet) keeps the entry open. Null otherwise.
suspensionobject or nullFor updated with a new suspension length (a decision after a provisional suspension, an appeal). Null otherwise.
atstring (date-time)When sidelined.ch recorded it (UTC).
teamstringTeam slug.
absence_idinteger
playerPlayer
typestringAbsence type. One of: injury, illness, suspension, loan, national_team, personal, healthy_scratch, import_limit, unknown.
confidencestringConfidence of the absence. One of: official, league, media, inferred.
reason_textstring or nullThe reason as published.

Problem #

RFC 9457 problem details. type links to a page explaining what to do.

FieldTypeDescription
typestring (uri)Docs page for this error.
titlestring
statusinteger
detailstring