# sidelined.ch for developers
Who's out in the Swiss National League, for your site, app or agent: injured, ill, suspended and otherwise unavailable players of all 14 clubs, with the source of every entry. Free, no sign-up, no key.
## Embed a widget
Show a club's list on your site with two lines of HTML. It updates itself, works in light and dark, and needs no account.
```html
```
[Widgets: quickstart and playground →](/widgets)
## Use the API
Read-only JSON over HTTPS: the clubs, their current entries, and what changed recently.
```sh
curl https://api.sidelined.ch/v1/teams/zug/absences
```
[API: quickstart →](/api) · [Reference →](/api/reference) · [OpenAPI spec](https://api.sidelined.ch/v1/openapi.json)
## For AI agents
Every page here is also plain Markdown (add `.md` to the address), the whole portal is in [llms-full.txt](/llms-full.txt), and the API is described by an OpenAPI 3.1 document. [How agents use sidelined.ch →](/agents)
## The rules in short
- **Credit the data.** Widgets show "Data: sidelined.ch" by themselves; with the API, show the `attribution` from each response.
- **Reasons as published.** sidelined.ch passes on what clubs, the league and the federation publish, and adds no medical details of its own.
- **Fair use.** 60 API requests a minute per IP address; widgets aren't counted.
Details: [terms of use](/terms) · [what's covered](/data) · [changelog](/changelog)
---
# Widgets
A club's list of unavailable players on your site: two lines of HTML, no account, no key. The widget loads in the background, updates itself and can't break your page's layout.
## Quickstart
Put the element where the widget should appear, and the script once anywhere on the page:
```html
```
That's it. The `team` is the club's slug from the table below.
## Playground
Try the variants and themes live on https://developers.sidelined.ch/widgets.
## Options
| Attribute | Values | Default |
|---|---|---|
| `team` | a club's slug (required) | |
| `variant` | `list` (players, reason, expected return) or `badge` (the count and names) | `list` |
| `theme` | `light`, `dark` or `auto` (follows the reader's setting) | `auto` |
| `limit` | how many players the list shows before "+N more", 1–20 | `5` |
Change an attribute later (for example with JavaScript) and the widget redraws.
## Clubs
| Slug | Club |
|---|---|
| `biel` | EHC Biel-Bienne |
| `kloten` | EHC Kloten |
| `zug` | EV Zug |
| `fribourg` | Fribourg-Gottéron |
| `geneve` | Genève-Servette HC |
| `ajoie` | HC Ajoie |
| `ambri` | HC Ambrì-Piotta |
| `davos` | HC Davos |
| `lugano` | HC Lugano |
| `lausanne` | Lausanne HC |
| `bern` | SC Bern |
| `langnau` | SCL Tigers |
| `rapperswil` | SCRJ Lakers |
| `zsc` | ZSC Lions |
`GET https://api.sidelined.ch/v1/teams` returns the same list.
## Without JavaScript: the iframe
Some content management systems remove scripts. The same widget works as an iframe:
```html
```
The iframe can't size itself to its content, so give it a height: about 80 px per player plus 120 px, or 140 px for the badge.
## Content Security Policy
If your site restricts where scripts and requests may go, allow `embed.sidelined.ch`:
```
script-src https://embed.sidelined.ch;
connect-src https://embed.sidelined.ch;
img-src https://sidelined.ch;
frame-src https://embed.sidelined.ch; (only for the iframe)
```
## Attribution
Every widget shows the sources and "Data: sidelined.ch" with a link to the club's page. It's part of the widget and can't be switched off; hiding it breaks the [terms of use](/terms).
## Privacy
The widget sets no cookies, loads nothing from third parties and doesn't track your readers. sidelined.ch counts how often widgets are shown per website (the site's host name only), to know where they're used.
## How it works
The script defines the `` element. For each one, it loads the finished widget (HTML with its own styles) from `embed.sidelined.ch/{team}.html` into the element's Shadow DOM, so your page's CSS and the widget's can't interfere. The script is under 1 KB. Breaking changes get a new address (`/v2.js`); `v1.js` stays as it is.
## Questions
**How fresh is it?** The sources are read every 15 to 30 minutes; widgets are cached for a minute.
**Can I style it?** Choose `light`, `dark` or `auto`. For a fully custom design, use the [API](/api).
**Is it free for commercial sites?** Yes, with the attribution in place. See the [terms](/terms).
---
# API
Read-only JSON over HTTPS, free, no key: the 14 National League clubs, their current entries and recent changes. The [reference](/api/reference) lists every endpoint and field; the [OpenAPI 3.1 document](https://api.sidelined.ch/v1/openapi.json) describes the same, for code and agents.
## Quickstart
The clubs and how many players each is missing:
```sh
curl https://api.sidelined.ch/v1/teams
```
One club's current entries:
```sh
curl https://api.sidelined.ch/v1/teams/zug/absences
```
```json
{
"data": [
{
"id": 89,
"team": "zug",
"player": { "id": 69, "name": "Lukas Bengtsson", "jersey": 32 },
"type": "injury",
"category": "out",
"confidence": "official",
"reason_text": "fibula",
"body_region": "lower_body",
"since": "2026-10-11",
"since_kind": "reported",
"return": { "text": "several months", "kind": "duration", "min": "2026-12-10", "max": "2027-04-09" },
"detail": null,
"sources": [
{ "kind": "medical_report", "label": "club medical report", "url": "https://www.evz.ch/en/eissport/men/medical-report/" }
],
"off_club_report": null,
"expected_back": null,
"updated_at": "2026-10-21T13:00:40.995Z"
}
],
"attribution": { "text": "Data: sidelined.ch, from the clubs, the National League and the Swiss Ice Hockey Federation (sources on each entry)", "url": "https://sidelined.ch" }
}
```
What changed in the last 14 days, newest first:
```sh
curl "https://api.sidelined.ch/v1/changes?team=zug&limit=20"
```
## Endpoints
| Endpoint | Returns |
|---|---|
| `GET /v1/teams` | The 14 clubs: name, slug, logo, players out, scratches, loans, last checked |
| `GET /v1/teams/{slug}` | One club with all its current entries |
| `GET /v1/teams/{slug}/absences` | The club's entries (`category=out` by default; also `scratch`, `loan`, `all`) |
| `GET /v1/absences` | All entries, filterable by `team`, `type`, `confidence`, `category` |
| `GET /v1/changes` | Recent changes: newly out, updated (also off or back on the club's report), back, no longer listed; `since`, `team`, `limit`, `cursor` |
| `GET /v1/openapi.json` | The OpenAPI 3.1 document |
## Conventions
- **Base URL:** `https://api.sidelined.ch/v1`. Breaking changes only come with `/v2`; deprecations are announced in the [changelog](/changelog) and with `Deprecation` and `Sunset` headers.
- **JSON:** `snake_case` fields, dates as `YYYY-MM-DD`, timestamps in UTC (ISO 8601), stable IDs.
- **Attribution:** every response has an `attribution`. Show its `text` with a link to its `url` wherever you show the data.
- **Errors:** [problem details](/api/errors) (`application/problem+json`), each with a `type` link explaining what to do.
- **Caching:** responses carry an `ETag`; send it back as `If-None-Match` and you get `304 Not Modified` when nothing changed. They may be cached for a minute; the sources are read every 15 to 30 minutes, so polling more often than every few minutes brings nothing new.
- **Rate limit:** 60 requests a minute per IP address. Above that: `429` with `Retry-After`.
- **CORS:** open, so browsers can call the API directly. Read-only, no cookies.
- **Pagination:** `/v1/changes` returns `next_cursor`; pass it back as `cursor` for the next page. It's `null` on the last page. A page can hold fewer than `limit` changes.
## Next
- [The data model](/api/concepts): what `type`, `confidence`, `since_kind` and `return` mean.
- [Reference](/api/reference): every endpoint, parameter and field.
- [Errors](/api/errors): what each error means and what to do.
---
# The data model
What the fields mean, and the rules behind them. Agents and developers can rely on these definitions; they don't change within `/v1`.
## Entries
An entry (an *absence*) is a player who is currently unavailable for his club, as at least one source reports it. Every entry has an `id` that stays the same while it's open, and a `player.id` that stays the same across entries.
An entry closes when the player is dressed for a game of his club again (`closed_reason: returned`), when no source lists him any more (`cleared`), or when he's dressed for another club (`moved`: a loan to another National League club, a transfer). Closed entries no longer appear in the current lists; [`/v1/changes`](/api/reference#get-v1-changes) shows that they closed.
[`/v1/changes`](/api/reference#get-v1-changes) also lists updates (`kind: updated`) when they are news: a new `type`, a new reason, or a new suspension length (`suspension.games`, `was`, and `eligible_from`, the first game the player may play again). A reworded return estimate is not news and isn't listed; the entry itself always has the latest wording.
Clubs' medical reports list everyone the club says is out. When a club drops a player but another source still lists him (usually SIHF's lineup sheet of his team's last game), the entry stays open with `off_club_report` set: since when, and the club's page. Its `return` is then the club's last estimate, from before it dropped him; the site shows "Off the club's medical report since …" instead. `/v1/changes` lists the drop as an update with `changed: ["club_report"]` and `club_report.listed: false`, and `listed: true` when the club lists him again. The entry closes as usual, once he's dressed for a game (`returned`) or no source lists him (`cleared`).
When a club's game preview or news says a player it lists as out plays a named upcoming game ("Martschini vor Comeback"), his entry gets `expected_back`: the game (`starts_at`, `home`, the `opponent`'s slug) and the article (`url`, `said_on`). It's the club's stated plan, read by a language model and checked against the article, not a fact: the entry stays open until he's dressed, and `expected_back` is null again once that game has started.
## `type`
| Value | Meaning |
|---|---|
| `injury` | Injured |
| `illness` | Ill |
| `suspension` | Suspended (league discipline) |
| `loan` | With the farm team or another club (`category: loan`) |
| `national_team` | Away with a national team |
| `personal` | Personal reasons |
| `healthy_scratch` | Fit, but left out of the last game (`category: scratch`) |
| `import_limit` | A foreign player left out because six were already dressed (`category: scratch`) |
| `unknown` | Unavailable, reason not known |
## `category`
Not every entry is an absence. `category` says how an entry counts:
| `category` | Types | Counted in `Team.out` |
|---|---|---|
| `out` | injury, illness, suspension, national team, personal, unknown | yes |
| `scratch` | healthy scratch, import limit: fit, left out by the coach | no |
| `loan` | loan: with the farm team or another club, a roster decision | no |
Lists return `category=out` by default, as the site counts; ask for `category=all`, `scratch`, `loan`, or several (`out,loan`).
## `confidence`
How the information is known, from strongest to weakest:
| Value | Source |
|---|---|
| `official` | The club itself: its medical report or its news |
| `league` | The National League (discipline) or the Swiss Ice Hockey Federation (lineup sheets) |
| `media` | A media report, checked by a person before it's shown |
| `inferred` | Only that a regular has been missing from the lineups; the reason is unknown |
When several sources report the same player, the entry shows the strongest one's details, and `sources` lists them all.
## Reasons
`reason_text` is the reason **as the source published it, in its language** ("Oberkörperverletzung", "bas du corps", "knee"). sidelined.ch adds no medical details, diagnoses or guesses of its own. `body_region` (`upper_body`, `lower_body`, `head`) is only set when the source names it. Inferred entries have no reason.
## `since` and `since_kind`
| `since_kind` | `since` is |
|---|---|
| `reported` | A date the source published (injury or report date) |
| `article` | The date of the news article that reported it |
| `first_seen` | When sidelined.ch first saw the entry (sources without dates) |
| `lineup` | The first game the player missed |
## `return`
The expected return: the source's wording and sidelined.ch's reading of it. **An estimate, not a club statement.**
| `return.kind` | Reading | `min` / `max` |
|---|---|---|
| `day_to_day` | Day-to-day | today and a week later |
| `week_to_week` | Week-to-week | one to four weeks from now |
| `duration` | "6 weeks", "2–3 Wochen", "several months" | the window from the report date |
| `calendar` | "mid-November", "fin octobre" | that part of the month |
| `games` | A suspension for a number of games | the date of the first game he may play again (he misses the ones before it) |
| `season` | Out for the season | both the end of the season |
| `unknown` | "unbestimmt", "à déterminer" | both `null` |
`return.text` keeps the source's original words, and `return.text_by` is `source`. The one exception: for league suspensions the league states the number of games, and `text` is our summary of it ("für 3 Spiele gesperrt", "vorsorglich für 1 Spiel gesperrt"), with `text_by` set to `sidelined`. Don't quote that as the league's words.
## `sources`
Every entry lists where it comes from: `kind`, a readable `label` and the `url` of the page or document (the club's report, the article, the lineup sheet). Lineup data has no URL.
## Freshness
Club pages are read every 30 minutes, news every 1 to 4 hours, SIHF's lineups and lineup sheets around each game. `Team.checked_at` says when the club's own sources were last read successfully.
`Team.next_game` is the club's next National League game from the league's schedule (today's, until it's over): `starts_at` in Swiss local time with its offset, `home`, and the `opponent`. Cup and Champions Hockey League games aren't in it. `null` when nothing is scheduled.
---
# API reference
Base URL: `https://api.sidelined.ch/v1` · Free, no key · 60 requests a minute per IP address · [OpenAPI 3.1 document](https://api.sidelined.ch/v1/openapi.json)
Every response includes an `attribution` to show with the data. Errors are [problem details](/api/errors). Field meanings and rules: [the data model](/api/concepts).
## GET /v1/teams
The 14 clubs with their current counts.
```sh
curl "https://api.sidelined.ch/v1/teams"
```
| Status | Meaning | Body |
|---|---|---|
| 200 | All teams. | `data`: array of [Team](#team), `attribution`: [Attribution](#attribution) |
| 403 | Before the public launch: not open yet. | [Problem](#problem) |
| 429 | Rate limit: 60 requests a minute per IP address. | [Problem](#problem) |
## GET /v1/teams/{slug}
One club with all its current entries (every category, marked).
| Parameter | In | Type | Description |
|---|---|---|---|
| `slug` (required) | path | `string` | Team slug, from GET /v1/teams. |
```sh
curl "https://api.sidelined.ch/v1/teams/zug"
```
| Status | Meaning | Body |
|---|---|---|
| 200 | The team. | `data`: [Team](#team) + `object`, `attribution`: [Attribution](#attribution) |
| 403 | Before the public launch: not open yet. | [Problem](#problem) |
| 404 | Unknown team slug. | [Problem](#problem) |
| 429 | Rate limit: 60 requests a minute per IP address. | [Problem](#problem) |
## GET /v1/teams/{slug}/absences
A club's current entries, as on its team page.
| Parameter | In | Type | Description |
|---|---|---|---|
| `slug` (required) | path | `string` | Team slug, from GET /v1/teams. |
| `category` | query | `string` | Which entries: `out` (default, as the site counts), `scratch`, `loan`, several comma-separated (`out,loan`), or `all`. Default: `out`. |
```sh
curl "https://api.sidelined.ch/v1/teams/zug/absences?category=out,loan"
```
| Status | Meaning | Body |
|---|---|---|
| 200 | The entries. | `data`: array of [Absence](#absence), `attribution`: [Attribution](#attribution) |
| 400 | Invalid parameter. | [Problem](#problem) |
| 403 | Before the public launch: not open yet. | [Problem](#problem) |
| 404 | Unknown team slug. | [Problem](#problem) |
| 429 | Rate limit: 60 requests a minute per IP address. | [Problem](#problem) |
## GET /v1/absences
Current entries across the league, filterable.
| Parameter | In | Type | Description |
|---|---|---|---|
| `team` | query | `string` | Team slug. |
| `type` | query | `string` | Absence type. One of: `injury`, `illness`, `suspension`, `loan`, `national_team`, `personal`, `healthy_scratch`, `import_limit`, `unknown`. |
| `confidence` | query | `string` | Confidence. One of: `official`, `league`, `media`, `inferred`. |
| `category` | query | `string` | Which entries: `out` (default, as the site counts), `scratch`, `loan`, several comma-separated (`out,loan`), or `all`. Default: `out`. |
```sh
curl "https://api.sidelined.ch/v1/absences?team=zug"
```
| Status | Meaning | Body |
|---|---|---|
| 200 | The entries. | `data`: array of [Absence](#absence), `attribution`: [Attribution](#attribution) |
| 400 | Invalid parameter. | [Problem](#problem) |
| 403 | Before the public launch: not open yet. | [Problem](#problem) |
| 404 | Unknown team slug. | [Problem](#problem) |
| 429 | Rate limit: 60 requests a minute per IP address. | [Problem](#problem) |
## GET /v1/changes
Recent changes: players newly out, updated, back, or no longer listed (last 14 days).
| Parameter | In | Type | Description |
|---|---|---|---|
| `since` | query | `string` | Only changes after this ISO 8601 date or timestamp (at most 14 days back). |
| `team` | query | `string` | Team slug. |
| `limit` | query | `integer` | Page size, 1–100. Default: `50`. |
| `cursor` | query | `string` | `next_cursor` from the previous page. |
```sh
curl "https://api.sidelined.ch/v1/changes?team=zug"
```
| Status | Meaning | Body |
|---|---|---|
| 200 | Newest first. A page can hold fewer than `limit` changes; follow `next_cursor` until it is null. | `data`: array of [Change](#change), `next_cursor`: `string` or null, `attribution`: [Attribution](#attribution) |
| 400 | Invalid parameter or cursor. | [Problem](#problem) |
| 403 | Before the public launch: not open yet. | [Problem](#problem) |
| 429 | Rate limit: 60 requests a minute per IP address. | [Problem](#problem) |
## GET /v1/openapi.json
This document.
| Status | Meaning | Body |
|---|---|---|
| 200 | OpenAPI 3.1 document. | |
## Schemas
### Attribution
Must be shown wherever the data is shown (terms of use).
| Field | Type | Description |
|---|---|---|
| `text` | `string` | Credit line to display. |
| `url` | `string` (uri) | Link the credit points to. |
### Team
| Field | Type | Description |
|---|---|---|
| `slug` | `string` | Stable identifier used in URLs and filters. |
| `name` | `string` | Full club name. |
| `short_name` | `string` | Short name for tight spaces. |
| `logo_url` | `string` (uri) | Club logo (256 px WebP). The logos are the clubs' trademarks; use them only to identify the club. |
| `url` | `string` (uri) | The team page on sidelined.ch. |
| `out` | `integer` | Players currently unavailable (category `out`): scratches and loans are not counted. |
| `scratches` | `integer` | Fit players left out of the last game (healthy scratch, import limit; category `scratch`). |
| `loans` | `integer` | Players with the farm team or another club (category `loan`). |
| `checked_at` | `string` or null (date-time) | When one of the club's own sources was last read successfully (UTC). |
| `next_game` | `object` or null | The 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
| Field | Type | Description |
|---|---|---|
| `id` | `integer` | Stable player ID. |
| `name` | `string` | Display name, "First Last". |
| `jersey` | `integer` or null | Jersey number, when known. |
### Source
| Field | Type | Description |
|---|---|---|
| `kind` | `string` | Where the entry comes from. One of: `medical_report`, `manual`, `news`, `league_news`, `lineup`, `lineup_sheet`, `media`. |
| `label` | `string` | Human-readable source name. |
| `url` | `string` 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.
| Field | Type | Description |
|---|---|---|
| `id` | `integer` | Stable ID of this absence. |
| `team` | `string` | Team slug. |
| `player` | [Player](#player) | |
| `type` | `string` | Why the player is unavailable. One of: `injury`, `illness`, `suspension`, `loan`, `national_team`, `personal`, `healthy_scratch`, `import_limit`, `unknown`. |
| `category` | `string` | out: 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`. |
| `confidence` | `string` | How 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_text` | `string` or null | The reason as the source published it, in its language. |
| `body_region` | `string` or null | Body region, when the source names one. One of: `upper_body`, `lower_body`, `head`. |
| `since` | `string` (date) | Date the absence started or was first reported (see `since_kind`). |
| `since_kind` | `string` | What `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`. |
| `return` | `object` | Expected return: the source's wording and sidelined.ch's reading of it. An estimate, not a club statement. |
| `detail` | `string` or null | Extra context, e.g. "Not dressed for the last 3 games" on inferred entries. |
| `sources` | array of [Source](#source) | |
| `off_club_report` | `object` or null | The 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_back` | `object` or null | The 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_at` | `string` (date-time) | Last change to this entry (UTC). |
### Change
| Field | Type | Description |
|---|---|---|
| `id` | `integer` | Event ID, increasing. |
| `kind` | `string` | opened: 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_reason` | `string` or null | returned: 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`. |
| `changed` | array of `string` | For `updated`: what is new. Null otherwise. |
| `club_report` | `object` or null | For `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. |
| `suspension` | `object` or null | For `updated` with a new suspension length (a decision after a provisional suspension, an appeal). Null otherwise. |
| `at` | `string` (date-time) | When sidelined.ch recorded it (UTC). |
| `team` | `string` | Team slug. |
| `absence_id` | `integer` | |
| `player` | [Player](#player) | |
| `type` | `string` | Absence type. One of: `injury`, `illness`, `suspension`, `loan`, `national_team`, `personal`, `healthy_scratch`, `import_limit`, `unknown`. |
| `confidence` | `string` | Confidence of the absence. One of: `official`, `league`, `media`, `inferred`. |
| `reason_text` | `string` or null | The reason as published. |
### Problem
RFC 9457 problem details. `type` links to a page explaining what to do.
| Field | Type | Description |
|---|---|---|
| `type` | `string` (uri) | Docs page for this error. |
| `title` | `string` | |
| `status` | `integer` | |
| `detail` | `string` | |
---
# Errors
Errors are [problem details](https://www.rfc-editor.org/rfc/rfc9457) (`application/problem+json`):
```json
{
"type": "https://developers.sidelined.ch/api/errors#unknown-team",
"title": "Unknown team",
"status": 404,
"detail": "No team \"zurich\". GET /v1/teams lists the 14 slugs."
}
```
The `type` links to the section below; `detail` says what went wrong in this request.
## `bad-parameter`
**400.** A query parameter has a value the endpoint doesn't accept, for example `category=maybe`, `type=injured` or `limit=500`. `detail` names the parameter and the allowed values.
## `bad-cursor`
**400.** The `cursor` isn't one the API issued. Pass `next_cursor` from the previous response exactly as it is, or leave `cursor` out to start from the newest change.
## `unknown-team`
**404.** No club with that slug. `GET /v1/teams` lists the 14 slugs.
## `not-found`
**404.** No such endpoint. The endpoints are in the [reference](/api/reference).
## `not-yet`
**403.** The API opens with the public launch of sidelined.ch.
## `rate-limited`
**429.** More than 60 requests in a minute from your IP address. Wait for the number of seconds in `Retry-After`. To need fewer requests: send `If-None-Match` with the last `ETag` (a `304` is cheap), and don't poll more often than every few minutes; the sources change every 15 to 30 minutes.
## `internal`
**500.** Something went wrong on our side. Try again in a minute; if it persists, write to hello@sidelined.ch.
---
# For AI agents
sidelined.ch is built to be read by agents as well as people. Everything here works without a key.
## Where to start
- **This portal as text:** [llms.txt](/llms.txt) (an index of all pages) and [llms-full.txt](/llms-full.txt) (all pages in one file). Every page is also Markdown: add `.md` to its address, or ask for `Accept: text/markdown`.
- **The API, machine-readable:** the [OpenAPI 3.1 document](https://api.sidelined.ch/v1/openapi.json), with a description and an example for every field. Discovery: [`/.well-known/api-catalog`](https://api.sidelined.ch/.well-known/api-catalog) (RFC 9727), and a `Link` header on every response.
- **The data model:** [concepts](/api/concepts) defines every field and rule.
## Typical questions and the call that answers them
| Question | Call |
|---|---|
| Who's out at EV Zug? | `GET /v1/teams/zug/absences` |
| Who's injured across the league? | `GET /v1/absences?type=injury` |
| What changed today? | `GET /v1/changes?since=2026-10-25` |
| Which club is missing the most players? | `GET /v1/teams` (sort by `out`) |
## How to present the data
The MCP server sends the same rules as its instructions, and the skill carries them too.
1. **Name the source** of each entry ("according to the club's medical report") and show the attribution: Data: sidelined.ch, from the clubs, the National League and the Swiss Ice Hockey Federation (sources on each entry) (https://sidelined.ch).
2. **No medical speculation.** Pass on `reason_text` as it is. Never infer a diagnosis, its severity or a return date beyond what `return` says.
3. **`return` is an estimate:** `min` and `max` are sidelined.ch's reading of the club's wording, not a club statement.
4. **Expected back:** when `expected_back` is set, the club says the player plays that game. Say it as the club's word ("EV Zug expects him back against Ambrì on Wednesday"), with the article; he's still listed out until he's dressed, so don't call him back yet.
5. **Off the club's report:** when `off_club_report` is set, the club no longer lists the player, but another source still does (usually SIHF's sheet of the last game). Say that, with the date; `return` is the club's last estimate from before, so don't present it as current, and don't guess that he's back.
6. **Suspensions:** when `return.kind` is `games`, `min` is the date of the first game the player may play again. He misses the games before it, not the game on that date.
7. **Quote only the source's words:** `return.text` is the source's wording when `return.text_by` is `source`. When it is `sidelined` (league suspensions: "für 3 Spiele gesperrt"), it's our summary: say it in your own words, without quotation marks.
8. **`inferred` means reason unknown:** the player is a regular missing from recent lineups, nothing more. Say so.
9. **Only `out` counts as unavailable.** `scratch` (healthy scratch, import limit) and `loan` (farm team or another club) are roster decisions, not absences; they are left out unless asked for.
10. **Game dates:** `next_game` is each club's next National League game, from the league's schedule. Use it rather than another site; for games further ahead, or other competitions, say it isn't in this data.
11. **Season figures aren't in this data:** man-games lost, ice time missing and goalie games lost per club are on https://sidelined.ch/stats (this season so far and 2025/26). Link there; don't count them from the current entries, which only show who is out now.
12. **Mind freshness:** the data is refreshed every 15 to 30 minutes, and around games; `checked_at` and `updated_at` say how recent it is.
## MCP server
`https://mcp.sidelined.ch`: remote MCP over Streamable HTTP, read-only, no key, the same data and limit as the API (60 requests a minute; a JSON-RPC batch counts each message and holds at most 10). Its instructions carry the rules above.
| Tool | Answers |
|---|---|
| `list_teams` | The 14 clubs with their counts (out, scratches, loans) and when they were last checked |
| `get_team_absences` | One club's entries (`team`: slug or name; `categories`: `out` by default) |
| `search_absences` | Entries across the league by `team`, `type`, `confidence`, `categories` |
| `get_recent_changes` | Players listed, updated (including off and back on the club's medical report) and no longer listed, newest first, the last 14 days |
Claude Code:
```sh
claude mcp add --transport http sidelined https://mcp.sidelined.ch
```
Other clients: add a remote (HTTP) MCP server with the URL above. Claude, ChatGPT and other chat apps: [sidelined.ch/ai](https://sidelined.ch/ai) walks through it.
## Agent skill
[`https://sidelined.ch/SKILL.md`](https://sidelined.ch/SKILL.md): everything above in one file, in the Agent Skills format: the calls, the club slugs and the presentation rules. Point an agent at it:
```text
Read https://sidelined.ch/SKILL.md and tell me who's out for EV Zug.
```
Or install it for Claude Code:
```sh
mkdir -p ~/.claude/skills/sidelined && curl -fsSo ~/.claude/skills/sidelined/SKILL.md https://sidelined.ch/SKILL.md
```
---
# What's covered
sidelined.ch covers the 14 clubs of the Swiss National League, current season. Entries come from what the clubs, the league and the federation publish.
## Sources
| Source | What it gives | How often |
|---|---|---|
| Club medical reports | The club's list of unavailable players, with reasons and expected return | every 30 minutes |
| Club news | Players reported out in the club's articles, read by an AI language model and checked against a labelled set | every 1 to 4 hours |
| National League discipline | Suspensions, counted in games | every 15 minutes |
| SIHF lineup sheets | Before each game: who is out and why (injured, ill, suspended, farm team, healthy scratch) | around each game |
| SIHF game data | Lineups: who is back, and regulars missing for two games (reason unknown) | around each game |
| Media | Findings from Swiss media for unexplained absences, checked by a person | occasionally |
## Per club
| Club | The club's own sources | Last read |
|---|---|---|
| EHC Biel-Bienne | club news | 4 h ago |
| EHC Kloten | club medical report | 12 min ago |
| EV Zug | club medical report and club news | 12 min ago |
| Fribourg-Gottéron | club news | 27 min ago |
| Genève-Servette HC | club news | 27 min ago |
| HC Ajoie | club news | 27 min ago |
| HC Ambrì-Piotta | club medical report | 12 min ago |
| HC Davos | club news | 27 min ago |
| HC Lugano | club medical report | 2 h ago |
| Lausanne HC | club medical report | 12 min ago |
| SC Bern | club medical report | 12 min ago |
| SCL Tigers | club medical report | 2 days ago |
| SCRJ Lakers | club news and club medical report | 12 min ago |
| ZSC Lions | club medical report | 12 min ago |
## Known gaps
- Clubs without a medical page rely on their news and SIHF's data; their entries may come later or without a reason.
- An empty list means the club currently reports nobody. It doesn't guarantee that everyone is fit.
- SIHF's lineup sheet isn't available for every game; without it, players missing from a lineup show "reason unknown".
---
# Terms of use
## Using the data
You may use the widgets and the API on any website, app or service, commercial or not, free of charge, as long as you follow these terms.
## Attribution
Show the attribution wherever you show the data: in widgets it's built in; with the API, show the `attribution` text with a link to its `url`. Don't hide, shorten or obscure it.
## No endorsement
Don't suggest that sidelined.ch, a club, the National League or the Swiss Ice Hockey Federation endorses your product. Club names and logos may only be used to identify the clubs.
## Accuracy
The data reflects what the sources publish, read automatically. It may be incomplete, late or wrong, and comes without any guarantee. Don't use it as the only basis for decisions where errors cause harm.
## Personal data
The entries are about named people and partly about their health. Use them only to inform about player availability, as sidelined.ch does: don't combine them with other data about the players, don't add medical speculation, and remove an entry promptly if a club or player asks you to.
## Fair use
Stay within the rate limits, cache responses, and don't try to get around the limits. sidelined.ch may block access that harms the service.
## Corrections and takedown
Something wrong, or a request to remove an entry: corrections@sidelined.ch. We act on removal requests within 24 hours.
## Changes
We announce changes to these terms in the [changelog](/changelog).
---
# Changelog
Changes to the widgets, the API and these docs, newest first. Breaking changes only come with a new version (`/v2`, `v2.js`).
## 2026-11-23
- **Public launch:** the API, the widgets, the MCP server and this portal are open to everyone, with no tester sign-in. The rate limit stays at 60 requests a minute per IP address.
## 2026-11-13
- **`closed_reason: moved`:** an entry closes as `moved`, not `returned`, when the player is dressed for another club (a loan to another National League club, a transfer). New value, so still v1.
- **Expected back:** `Absence.expected_back` (the game, with `starts_at`, `home` and the `opponent`'s slug, and the article's `url` and `said_on`) when a club's game preview or news says a player it lists as out plays a named upcoming game. Null once that game has started. New field, so still v1.
## 2026-11-12
- **Stricter filters:** `/v1/absences` answers `400 bad-parameter` for a `type` or `confidence` that doesn't exist, instead of an empty list.
- **MCP batches:** a JSON-RPC batch counts once per message against the rate limit and holds at most 10 messages.
## 2026-11-10
- **Off the club's report:** `Absence.off_club_report` (`since`, `url`) when the club's medical report no longer lists a player whose entry another source keeps open; `return` is then the club's last estimate. `/v1/changes` lists the drop, and the club listing him again, as `updated` with `changed: ["club_report"]` and `club_report.listed`. New fields and value, so still v1.
## 2026-11-07
- **Agent rule on season figures:** man-games lost, ice time missing and goalie games lost aren't in the API or the MCP server; agents link to sidelined.ch/stats instead of counting them from the current entries. Instructions only; the data is unchanged.
## 2026-11-04
- **`/v1/changes` lists updates:** `kind` = `updated` when an open entry has a new type, a new reason or a new suspension length, with `changed` and `suspension` (`games`, `was`, `eligible_from`). Reworded return estimates are left out, as on the site and in the alerts. New value and fields, so still v1; clients that only expect `opened` and `closed` should skip other kinds.
- **Suspensions explained:** for `return.kind` = `games`, `return.min` is the first game the player may play again, not a game he misses. Docs and agent instructions only; the data is unchanged.
- **`Team.next_game`:** the club's next National League game (or today's until it's over): `starts_at`, `home`, `opponent`. Also in the MCP tools `list_teams` and `get_team_absences`. New field, so still v1.
## 2026-11-03
- **`return.text_by`:** whose words `return.text` is, `source` or `sidelined`. League suspensions carry our own summary ("für 3 Spiele gesperrt"), which shouldn't be quoted as the league's. New field, so still v1.
## 2026-10-26
- **Loans are no longer counted as out.** Players with the farm team or on loan are roster decisions, like healthy scratches. API: `Absence.category` (`out`, `scratch`, `loan`) replaces the `scratch` flag, the `category` parameter replaces `scratches`, and `Team.loans` is new. Widgets count and list only `out`. Changed during the tester preview, so still v1.
## 2026-10-25
- **API v1** (preview for testers): teams, entries, recent changes, OpenAPI 3.1 document, problem details, ETags, rate limit of 60 requests a minute.
- **Widgets v1** (preview for testers): `` in the `list` and `badge` variants, light, dark and auto themes, iframe fallback, on `embed.sidelined.ch`.
- **This portal** (preview for testers), with Markdown versions of every page and `llms.txt`.