# Steam Player Count & Charts Scraper (`w3crawler/steam-charts-scraper`) Actor

Keyless, bounded extraction of public SteamCharts player counts, 24-hour peaks, all-time peaks, monthly history, and most-played rankings.

- **URL**: https://apify.com/w3crawler/steam-charts-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 game charts

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Steam Player Count & Charts Scraper

Collect **public SteamCharts statistics** for Steam games: current concurrent players, 24-hour and all-time peaks, the visible monthly history table, and the public home-page Trending, Top Games, and Top Records tables. The Actor reads public HTML from [SteamCharts](https://steamcharts.com/) and does not log in to Steam or SteamCharts, call a private API, or invent missing history.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/steam-charts-scraper) and select **Try for free** or open the **Input** tab.
2. Set `appIds` such as `730` for Counter-Strike 2, or supply full `gameUrls`.
3. Keep `maxItems` and `maxHistoryRows` small for a first test. Enable `includeTopGames` only if you need the home-page charts.
4. Start the Actor, open the dataset, and export the saved records as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to check the outcome and counts.

### Input

All fields are optional; the defaults below are ready to use. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `appIds` | string array | Optional | `["730"]` | Numeric Steam app IDs. If neither source array is supplied, `730` is the runtime default. |
| `gameUrls` | string array | Optional | `[]` | Optional `https://steamcharts.com/app/<id>` URLs. Their IDs are merged with `appIds`. |
| `includeTopGames` | boolean | Optional | `false` | Also parse the home page's Trending, Top Games By Current Players, and Top Records tables. `maxItems` applies to each section. |
| `maxItems` | integer | Optional | `10` | Maximum game-page records and maximum rows from each home-page section, 1–100. |
| `includeHistory` | boolean | Optional | `true` | Include the monthly average, gain, percentage change, and peak table from each game page. |
| `maxHistoryRows` | integer | Optional | `180` | Maximum monthly history rows retained per game, 1–240. |
| `requestDelayMs` | integer | Optional | `750` | Minimum serial delay between SteamCharts requests, 250–10,000 ms. |
| `maxRequestRetries` | integer | Optional | `1` | Bounded retries for transient failures; clear access blocks are not retried. 0–3. |
| `timeoutMs` | integer | Optional | `30000` | Maximum wait for one public HTML request, 5,000–120,000 ms. |
| `maxResponseBytes` | integer | Optional | `10000000` | Maximum HTML response size accepted for parsing, 100,000–30,000,000 bytes. |

Example input matching the saved three-game run:

```json
{
  "appIds": [
    "730",
    "570",
    "1245620"
  ],
  "gameUrls": [],
  "includeTopGames": false,
  "maxItems": 5,
  "includeHistory": true,
  "maxHistoryRows": 12,
  "requestDelayMs": 750,
  "maxRequestRetries": 1,
  "timeoutMs": 30000,
  "maxResponseBytes": 10000000
}
```

The Actor reads public SteamCharts pages. It does not use a Steam login, API key, account action, purchase, market action, CAPTCHA solving, or proxy bypass.

### Output

The dataset contains one row per saved game page or home-page chart row. Optional values are omitted when the page does not publish them; they are not inferred. No diagnostic or placeholder rows are written.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `chartCategory` | string | null | Always | `game`, `trending`, `top-games`, or `top-records`. |
| `sourceName` | string | null | Always | Human-readable source name, `SteamCharts`. |
| `sourceUrl` | string | null | Always | Public SteamCharts URL that produced the record. |
| `pageUrl` | string | null | Always | Public page URL observed for the record. |
| `appId` | string | null | Always | Steam numeric application ID. |
| `name` | string | null | Always | Game name shown by SteamCharts. |
| `gameUrl` | string | null | Always | Canonical public SteamCharts game URL. |
| `storeUrl` | string | null | Always | Steam Store link shown or derived for the same app ID. |
| `hubUrl` | string | null | Always | Steam Community hub link shown or derived for the same app ID. |
| `compareUrl` | string | null | Always | SteamCharts comparison link when exposed on a game page. |
| `imageUrl` | string | null | Always | SteamCharts-hosted game image when exposed. |
| `rank` | integer | null | When published | Visible rank or row position within a home-page chart. |
| `currentPlayers` | integer | null | Always | Concurrent players shown at observation time. |
| `currentPlayersObservedAt` | string | null | Always | Timestamp supplied by the page for the player snapshot. |
| `peak24h` | integer | null | Always | Public 24-hour peak concurrent players. |
| `allTimePeak` | integer | null | Always | Public all-time peak concurrent players. |
| `trendChangePercent` | number | null | When published | Percentage change shown in the home-page Trending table. |
| `last30DaysAverage` | number | null | Always | Average players in the latest SteamCharts history row. |
| `last30DaysPeak` | integer | null | Always | Peak players in the latest history or ranking row. |
| `last30DaysGain` | number | null | Always | Absolute player change in the latest history row. |
| `last30DaysGainPercent` | number | null | Always | Percentage player change in the latest history row. |
| `hoursPlayed` | number | null | When published | Hours played shown in the home Top Games table. |
| `peakPlayers` | integer | null | When published | Peak player count in a Top Games or Top Records row. |
| `recordDate` | string | null | When published | Time label shown for a Top Records row. |
| `monthlyHistory` | object array | Always | Bounded monthly history rows from the game page. |
| `scrapedAt` | string | Always | UTC timestamp when the Actor emitted the record. |

Each `monthlyHistory` entry contains `period`, `averagePlayers`, `gain`, `gainPercent`, and `peakPlayers`.

The example below is a real saved row from the 2026-10-25 run. `monthlyHistory` is shortened to three entries for readability; every value shown is unchanged.

```json
{
  "chartCategory": "game",
  "sourceName": "SteamCharts",
  "sourceUrl": "https://steamcharts.com/app/730",
  "pageUrl": "https://steamcharts.com/app/730",
  "appId": "730",
  "name": "Counter-Strike 2",
  "gameUrl": "https://steamcharts.com/app/730",
  "storeUrl": "http://store.steampowered.com/app/730/",
  "hubUrl": "http://steamcommunity.com/app/730",
  "compareUrl": "https://steamcharts.com/cmp/730",
  "imageUrl": "https://steamcharts.com/assets/steam-images/730.jpg",
  "currentPlayers": 961017,
  "currentPlayersObservedAt": "2026-10-25T20:00:34Z",
  "peak24h": 1316056,
  "allTimePeak": 1818368,
  "last30DaysAverage": 812565.54,
  "last30DaysPeak": 1402441,
  "last30DaysGain": 6927.7,
  "last30DaysGainPercent": 0.86,
  "monthlyHistory": [
    {
      "period": "Last 30 Days",
      "averagePlayers": 812565.54,
      "gain": 6927.7,
      "gainPercent": 0.86,
      "peakPlayers": 1402441
    },
    {
      "period": "September 2026",
      "averagePlayers": 805637.82,
      "gain": -19619.98,
      "gainPercent": -2.38,
      "peakPlayers": 1450705
    },
    {
      "period": "August 2026",
      "averagePlayers": 825257.8,
      "gain": -27974.65,
      "gainPercent": -3.28,
      "peakPlayers": 1331274
    }
  ],
  "scrapedAt": "2026-10-25T21:12:46.318Z"
}
```

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT_SUMMARY`.

| Field | Meaning |
| --- | --- |
| `status` | Run outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Dataset completeness: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `requests` | Public request attempts, including retries and any home-page request. |
| `successfulRequests` | Requests that returned usable HTML. |
| `failedRequests` | Requests that failed before a usable response. |
| `blockedRequests` | Requests rejected by an access block or challenge. |
| `normalRecords` | Source-backed rows emitted. |
| `diagnosticEvents` | Operational issues recorded outside the dataset. |
| `datasetWriteFailureCount` | Dataset writes that failed. |
| `outputWriteFailureCount` | Summary writes that failed. |
| `gamePages` | Game pages processed. |
| `homePages` | Home-page chart pages processed. |
| `rejectedInputCount` | Invalid input values rejected before or during the run. |
| `appIdsRequested` | App IDs requested for the run. |
| `includeTopGames` | Whether home-page chart parsing was enabled. |
| `includeHistory` | Whether monthly history was requested. |
| `maxHistoryRows` | History-row cap used for the run. |
| `sourceWebsite` | Source website, `steamcharts.com`. |
| `sourcePolicy` | Access policy recorded for the run. |
| `termsUrl` | Public terms or privacy URL used for the policy. |
| `completedAt` | UTC summary creation time. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Eligible rows were saved without a diagnostic. |
| `SUCCEEDED` | `PARTIAL` | Rows were saved, but a later request or parse failed. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | The source completed cleanly and returned no matching rows. |
| `FAILED` | `FAILED` | A fatal error occurred before any usable row was saved. |

Example `OUTPUT_SUMMARY` from the 2026-10-25 run:

```json
{
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "COMPLETE",
  "requests": 5,
  "successfulRequests": 3,
  "failedRequests": 1,
  "blockedRequests": 0,
  "normalRecords": 3,
  "diagnosticEvents": 0,
  "datasetWriteFailureCount": 0,
  "outputWriteFailureCount": 0,
  "gamePages": 3,
  "homePages": 0,
  "rejectedInputCount": 0,
  "appIdsRequested": [
    "730",
    "570",
    "1245620"
  ],
  "includeTopGames": false,
  "includeHistory": true,
  "maxHistoryRows": 12,
  "sourceWebsite": "steamcharts.com",
  "sourcePolicy": "Public, read-only SteamCharts pages only. No Steam login, API key, account action, purchase, market action, CAPTCHA solving, proxy bypass, or fabricated history. Player counts are snapshots supplied by the source and can change between requests.",
  "termsUrl": "https://steamcharts.com/privacy",
  "completedAt": "2026-10-25T21:12:47.876Z"
}
```

### Coverage and limitations

The source is **SteamCharts**, not Steam's own charts endpoint. The Actor reads a bounded set of public game pages and, optionally, the public home page. Availability in the output table reflects the saved game-page rows; a home-page chart row carries the chart-specific fields instead of the game-page counters. The Actor respects a robots.txt preflight, follows limited same-host redirects, caps response size, delays requests, and retries only transient failures. It does not return a fabricated `chartData` series: SteamCharts exposes the visible monthly table, not a chart-series array in the rendered page. Concurrent-player counts and monthly gains are snapshots and can change between runs. Home-page chart fields (`rank`, `trendChangePercent`, `hoursPlayed`, `peakPlayers`, `recordDate`) appear only when that section is enabled and the page exposes them.

### Usage and support

The cost is governed by Apify compute time and the number of HTML requests. Start with one app and a small `maxHistoryRows`, inspect the dataset and `OUTPUT_SUMMARY`, then add apps or enable `includeTopGames`. See the Actor's Pricing tab for current account rates. Use the [Actor Issues page](https://apify.com/w3crawler/steam-charts-scraper/issues) to report a problem. Include the run ID, the input used, and the run summary; do not include tokens, cookies, or private data. This Actor is not affiliated with SteamCharts, Valve, or Steam. Use it only for public data and in accordance with SteamCharts' terms, robots guidance, and applicable law.

# Actor input Schema

## `appIds` (type: `array`):

Numeric Steam app IDs such as 730 for Counter-Strike 2. If no source arrays are supplied, 730 is the local/runtime default.

## `gameUrls` (type: `array`):

Optional HTTPS https://steamcharts.com/app/<id> URLs. Their IDs are normalized and deduplicated with appIds.

## `includeTopGames` (type: `boolean`):

Also parse the public SteamCharts home page's Trending, Top Games By Current Players, and Top Records tables. maxItems applies to each section.

## `maxItems` (type: `integer`):

Maximum number of game-page records and maximum rows emitted from each home-page chart section.

## `includeHistory` (type: `boolean`):

Include the monthly average, gain, percentage change, and peak table exposed by each game page.

## `maxHistoryRows` (type: `integer`):

Bound for monthly history rows retained per game page.

## `requestDelayMs` (type: `integer`):

Minimum serial delay between direct public SteamCharts requests.

## `maxRequestRetries` (type: `integer`):

Bounded retries for transient failures. Clear access blocks are not retried.

## `timeoutMs` (type: `integer`):

Maximum time to wait for one public HTML request.

## `maxResponseBytes` (type: `integer`):

Safety cap for one HTML response or fixture.

## Actor input object example

```json
{
  "appIds": [
    "730"
  ],
  "gameUrls": [],
  "includeTopGames": false,
  "maxItems": 10,
  "includeHistory": true,
  "maxHistoryRows": 180,
  "requestDelayMs": 750,
  "maxRequestRetries": 1,
  "timeoutMs": 30000,
  "maxResponseBytes": 10000000
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (type: `string`):

Run status and counters stored by the Actor.

## `sourceMetadata` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/steam-charts-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/steam-charts-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call w3crawler/steam-charts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/steam-charts-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/FjQAICkH0dsXaBOkf/builds/XweETd1SbYhFr3W1X/openapi.json
