---
title: Platform & language endpoints
slug: platforms
eyebrow: Platforms
nav_group: Platforms
nav_label: Platforms & languages
nav_order: 125
nav_expanded: true
---

# Platform & language endpoints

Market-level metrics: how a whole platform performed over a time window, and how one language performed on Twitch or Kick. Each request returns **one set of totals for the window you pass** — from a single day up to 366 days — at a flat price of **20 credits** per call, for a platform or for one language on a platform.

> [!INFO] One price, any window
> A one-day window and a 366-day window cost the same. Neither endpoint is paginated: the response is a single object, not a list.

> [!WARNING] 10 requests per minute
> Platform and language stats share a rate limit of **10 requests per minute per client**, both endpoints counted together. A `404` for a language with no data counts towards it too. Request 11 within the minute answers `429 rate_limited` — `Too Many Attempts.` — and is not charged; its `retry-after` header gives the seconds to wait. Responses carry `x-ratelimit-limit: 10` and `x-ratelimit-remaining`, so you can pace calls before hitting the limit.

## Platform stats {new #platform-stats}

Viewership and channel activity across an entire platform over a time window. Available on every platform in the API, including the [discontinued ones](/api/docs/requests#platforms) within their published data ranges.

```endpoint
GET /api/v2/platforms/{platform}
```

| Set of metrics | Availability | Cost / request |
| --- | --- | --- |
| Platform stats | All platforms, discontinued included | 20 |

`{platform}` takes the same lowercase slugs as the `platform` parameter everywhere else — the active platforms below, plus the discontinued ones. Any other value, `Twitch` with a capital letter included, answers `422 invalid_parameter` with the list of supported slugs.

```pills
twitch, youtube, kick, rumble, nimo, bigo, afreecatv, chzzk, steam
```

```curl REQUEST
curl -X GET "https://streamscharts.com/api/v2/platforms/twitch?time=2026-10-01,2026-11-01" \
  -H 'Client-ID: XXXXXXXXXXXX' -H 'Token: YYYYYYYYYYYYYY'
```

```json RESPONSE
{
  "data": {
    "platform": "twitch",
    "hours_watched": 1575253392,
    "peak_viewers": 4166606,
    "average_viewers": 2177770,
    "peak_channels": 138798,
    "average_channels": 87977,
    "active_channels": 3038674,
    "games_streamed": 45594
  }
}
```

### Response fields {#platform-fields}

| Field | Type | Description |
| --- | --- | --- |
| platform | string | Platform slug. |
| hours_watched | integer | Total hours watched across the platform in the window. |
| peak_viewers | integer | Highest concurrent viewers across the platform at any moment in the window. |
| average_viewers | integer | Average concurrent viewers across the platform. |
| peak_channels | integer | Highest number of channels live at the same moment. |
| average_channels | integer | Average number of channels live at the same moment. |
| active_channels | integer | Distinct channels that went live at least once in the window. |
| games_streamed | integer | Distinct games and categories streamed in the window. Streams with no category set count as one more entry. |

### Field availability by platform {#platform-availability}

| Platform(s) | Fields not returned |
| --- | --- |
| Rumble | `games_streamed` |

Every other platform returns the full set above.

> [!INFO] Distinct counts do not add up across windows
> `active_channels` and `games_streamed` count each channel or game once per window. A channel live in both October and November counts once in a two-month window, so two one-month responses cannot be summed into a two-month figure — request the longer window instead. The same goes for `peak_viewers` and `peak_channels`, which are maxima, not totals.

### Supported time periods {#platform-time}

Use `time={value}` — default `30-days`. Presets: `today`, `7-days`, `30-days`, `90-days`, `this-month`, `last-month`, `this-year`, `last-year`, or a custom range `YYYY-MM-DD,YYYY-MM-DD` of up to 366 days. A date range ends exclusively — `time=2026-10-01,2026-11-01` is the whole of October. See [time periods](/api/docs/requests#timeperiods).

| Window | Result |
| --- | --- |
| Longer than 366 days | `422 invalid_parameter` — `Time window must be at most 366 days, got 367`. |
| Hours or minutes, e.g. `2026-11-05 12:00,2026-11-05 18:00` | `422 invalid_parameter` — `Time windows on this endpoint take whole days: use YYYY-MM-DD,YYYY-MM-DD or a preset`. |
| No data on the platform for the whole window | `404 not_found` — `No data for this platform in the given time period.` |
| Data for part of the window | `200` with the totals for the days that have data, plus `meta.data_from` and `meta.data_to` — see [partial windows](#platform-partial). |

None of the error responses is charged.

> [!WARNING] Whole days only
> Platform and language metrics are daily aggregates, so neither endpoint takes hours or minutes. For a day-by-day series, request one day per call — `time=2026-11-05,2026-11-06`, then `2026-11-06,2026-11-07`.

### Partial windows {#platform-partial}

When the platform has data for only part of the window — a discontinued platform near the end of its range, or a gap in collection — the call still answers `200` with the totals for the days it has, and adds a `meta` object with the range actually covered. `meta.data_to` ends exclusively, like the end of `time`: below, the last day with data is 2026-11-03.

```json RESPONSE · time=2026-10-25,2026-11-10
{
  "data": {
    "platform": "steam",
    "hours_watched": 10406323,
    "peak_viewers": 75265,
    "average_viewers": 43786,
    "peak_channels": 753,
    "average_channels": 571,
    "active_channels": 1851,
    "games_streamed": 1785
  },
  "meta": { "data_from": "2026-10-25", "data_to": "2026-11-04" }
}
```

A window with data for every day comes back without `meta`. A partial window costs the same as a full one.

| Field | Type | Description |
| --- | --- | --- |
| meta.data_from | string | First day with data in the window, `YYYY-MM-DD`. |
| meta.data_to | string | Day after the last day with data, `YYYY-MM-DD` — exclusive, like the end of `time`. |

## Language stats {new #language-stats}

Viewership and channel activity for one language on Twitch or Kick over a time window, plus that language's share of the platform. Every request names **both** the language and the platform — there is no cross-platform total for a language; call once per platform.

```endpoint
GET /api/v2/languages/{lang}?platform={platform}
```

| Set of metrics | Availability | Cost / request |
| --- | --- | --- |
| Language stats | twitch, kick | 20 |

`{lang}` is a lowercase language code — `en`, `es`, `pt`, `de` — the same codes the `lang` filter takes on [lists](/api/docs/lists#list-filters). Most are ISO 639-1; any code present in the data is accepted, including `other` for channels whose broadcast language is set to Other (`language_name` `Others`). An unknown code, or a known one in capitals such as `EN`, answers `404 not_found`. A request without `platform` answers `422 invalid_parameter` — `platform is required: a language is always measured on one platform`. Any platform other than Twitch or Kick answers `422 invalid_parameter` — `Language stats support twitch and kick only`. None of these is charged.

```curl REQUEST
curl -X GET "https://streamscharts.com/api/v2/languages/en?platform=twitch&time=2026-11-05,2026-11-06" \
  -H 'Client-ID: XXXXXXXXXXXX' -H 'Token: YYYYYYYYYYYYYY'
```

```json RESPONSE
{
  "data": {
    "platform": "twitch",
    "language": "en",
    "language_name": "English",
    "language_share_%": 50.2,
    "hours_watched": 28996899,
    "peak_viewers": 2004773,
    "average_viewers": 1199314,
    "peak_channels": 47128,
    "average_channels": 24344,
    "unique_channels_over_10_viewers": 61365,
    "unique_channels_over_100_viewers": 7497
  }
}
```

### Response fields {#language-fields}

| Field | Type | Description |
| --- | --- | --- |
| platform | string | Platform slug. |
| language | string | Language code, as passed in `{lang}`. |
| language_name | string | English name of the language. |
| language_share_% | number | The language's share of all viewership on the platform in the window, in percent. |
| hours_watched | integer | Hours watched on channels broadcasting in this language. |
| peak_viewers | integer | Highest concurrent viewers in this language at any moment in the window. |
| average_viewers | integer | Average concurrent viewers in this language. |
| peak_channels | integer | Highest number of channels in this language live at the same moment. |
| average_channels | integer | Average number of channels in this language live at the same moment. |
| unique_channels_over_10_viewers | integer | Distinct channels in this language whose peak viewers in the window were above 10. |
| unique_channels_over_100_viewers | integer | Distinct channels in this language whose peak viewers in the window were above 100. |

### Language availability by platform {#language-availability}

| Platform(s) | Result |
| --- | --- |
| Twitch, Kick | `200` with the language's totals, or `404 not_found` if no channel broadcast in it during the window. |
| Every other platform, discontinued ones included | `422 invalid_parameter` — `Language stats support twitch and kick only` — not charged. |

Language stats need a reliable broadcast language on every channel, which only Twitch and Kick provide. For the other platforms, use [platform stats](#platform-stats) for the whole market.

### Supported time periods {#language-time}

The same as [platform stats](#platform-time): presets or a custom `YYYY-MM-DD,YYYY-MM-DD` range of up to 366 days, default `30-days`, whole days only. A window with only part of its days covered returns `200` with `meta.data_from` and `meta.data_to`, exactly as described in [partial windows](#platform-partial). For a day-by-day series, request one day per call at 20 credits each.

> [!INFO] No data is not charged
> A language with no channels on that platform in the window answers `404 not_found` — `No channels in this language on this platform in the given time period.` Like every non-2xx response it is not charged.