---
title: "🎮 Get the Steam Online and In-Game Player Counts"
method: GET
path: "/steam/api/info/platform-players"
tags: ["Info"]
---

# 🎮 Get the Steam Online and In-Game Player Counts

`GET /steam/api/info/platform-players`

## Request

- Base URL: `https://www.steamwebapi.com`
- URL: `https://www.steamwebapi.com/steam/api/info/platform-players`
- Auth: API key in query parameter `key`

Baseurl: https://www.steamwebapi.com/steam/api/info/platform-players?key=YOUR_API_KEY

    💬 **What this endpoint does:**
    - Returns how many people are on Steam right now and how many of them are in a game, as Valve publishes it, measured every 5 minutes.
    - Adds the share in game, the change against the same moment yesterday, today's peaks with their time, the record peaks and a history series.

    🛠️ **Features:**
    - `range=24h` returns every 5-minute reading, `7d` and `30d` hourly values (average, peak and low of the hour), `90d`, `1y` and `all` daily values.
    - `samples` shows how many readings stand behind an hourly or daily value.
    - `peakscope` tells whether `peakonline` and `peakingame` are all-time records (`alltime`) or the highest readings since measuring began (`sincemeasurementstart`).

    🌐 **How to use:**
    - Show the headline figures on a dashboard and draw the chart from `series`.
    - Per-game player counts and their history come from `/steam/api/apps/{appid}/players`.

## Query parameters

- `range` '24h' | '7d' | '30d' | '90d' | '1y' | 'all'
- `no_cache` '0' | '1'
- `format` string
- `pretty` '0' | '1'

## Response `200`

Request was successful and the platform player counts are returned.

## Other responses

- `400`: A query parameter could not be used as given.
- `429`: Rate limit exceeded. Too many requests in a short time frame.

---

[API](https://skmtc.dev/steamwebapi/apis/steamwebapi-com-third-party-steam-market-api-documentation.md) · [All operations](https://skmtc.dev/steamwebapi/apis/steamwebapi-com-third-party-steam-market-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/steamwebapi/apis/steamwebapi-com-third-party-steam-market-api-documentation/revisions/f9a4109cbda6?raw)
