# Steam Store Scraper (`m0uka/steam-store-scraper`) Actor

Steam Store Scraper crawls the Steam front page and extracts data from individual Steam Store pages. The extracted data is stored in a dataset, from where you can extract it in various formats, such as JSON, XML, CSV, and Excel.

- **URL**: https://apify.com/m0uka/steam-store-scraper.md
- **Developed by:** [Lukas Moucka](https://apify.com/m0uka) (community)
- **Categories:** E-commerce, Open source
- **Stats:** 487 total users, 2 monthly users, 100.0% runs succeeded, 8 bookmarks
- **User rating**: 3.00 out of 5 stars

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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 Game Scraper

A simple actor that crawles the Steam's frontpage and extracts data from individual games without any coding.
You can get the following data from the scraper:

- Game information
- Price and any active deals
- Genres
- Popular tags
- Supported platforms
- Supported languages
- Recent and all reviews

### Usage

Starting with the Steam Game Scraper is very easy. Currently you have these options available:

- Only on sale - extract games that are only current on sale (good for potential deals)
- Only released - only extract games, that have been already released (are not coming soon)

### Input config

You can configure the inputs in the [Apify Console](https://console.apify.com/) user interface, or programatically with JSON using the [Apify API](https://apify.com/docs/api/v2#/reference/actors/run-collection/run-actor).

### Cost of usage

Steam Game Scraper is pretty lightweight, because it uses [Cheerio Scraper](https://apify.com/apify/cheerio-scraper), which downloads and processes raw HTML pages - Steam doesn't use much JavaScript to change the layout of the page.

In terms of platform usage credits, **one** scrape takes about ~**0.025** compute units.

### Results

The actor stores its result in the default dataset associated with the actor run. It can be then exported to various formats, such as JSON, XML, CSV or Excel.

Every store page in the dataset will contain a seperate object that follows this format (JSON is used below):

```json
{
  "url": "https://store.steampowered.com/app/1703340/The_Stanley_Parable_Ultra_Deluxe/?snr=1_4_4__145",
  "title": "The Stanley Parable: Ultra Deluxe",
  "description": "The Stanley Parable: Ultra Deluxe is an expanded re-imagining of 2013's The Stanley Parable. You will play as Stanley, and you will not play as Stanley. You will make a choice, and you will become powerless. You are not here to win. The Stanley Parable is a game that plays you.",
  "headerImage": "https://cdn.akamai.steamstatic.com/steam/apps/1703340/header.jpg?t=1652303715",
  "releaseDate": "27 Apr, 2022",
  "comingSoon": false,
  "earlyAccess": false,
  "supportedPlatforms": [
    "windows",
    "linux",
    "mac"
  ],
  "features": [
    "Single-player",
    "Steam Achievements",
    "Full controller support"
  ],
  "genres": [
    "Adventure",
    "Casual",
    "Indie"
  ],
  "popularTags": [
    "Multiple Endings",
    "Comedy",
    "Choices Matter",
    "Walking Simulator",
    "First-Person",
    "Singleplayer",
    "Narration",
    "3D",
    "Funny",
    "Exploration",
    "Adventure",
    "Casual",
    "Story Rich",
    "Psychological Horror",
    "Emotional",
    "Mystery",
    "Horror",
    "Atmospheric",
    "Game Development",
    "Dark Humor"
  ],
  "languages": {
    "English": {
      "interface": true,
      "sound": true,
      "subtitles": true
    },
    "French": {
      "interface": true,
      "sound": false,
      "subtitles": true
    },
    "Italian": {
      "interface": true,
      "sound": false,
      "subtitles": true
    },
    "German": {
      "interface": true,
      "sound": false,
      "subtitles": true
    },
    "Russian": {
      "interface": true,
      "sound": false,
      "subtitles": true
    },
    "Spanish - Spain": {
      "interface": true,
      "sound": false,
      "subtitles": true
    }
  },
  "price": "21,99€",
  "sale": false,
  "salePercentage": null,
  "saleUntil": null,
  "recentReviews": "Very Positive",
  "allReviews": "Very Positive",
  "developers": [
    "Crows Crows Crows"
  ],
  "publishers": [
    "Crows Crows Crows"
  ]
}
```

# Actor input Schema

## `onlyOnSale` (type: `boolean`):

Add games only on sale

## `onlyReleased` (type: `boolean`):

Add only released games (don't add upcoming)

## Actor input object example

```json
{}
```

# 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("m0uka/steam-store-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("m0uka/steam-store-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 m0uka/steam-store-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,m0uka/steam-store-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/m7QkAOpTRBj8Jszlv/builds/UfgFqn6fCZUPG61sC/openapi.json
