# Steam Market Scraper — CS2 Skin Prices, Price History & Orders (`he_work/steam-market-scraper`) Actor

Scrape the Steam Community Market for CS2, Dota 2, TF2, Rust or any game: prices, listings, full price history, 24h / 7d / 30d sales and median price, highest buy order, lowest sell order, wear, rarity and collection. Price-change alerts to Discord or Telegram.

- **URL**: https://apify.com/he_work/steam-market-scraper.md
- **Developed by:** [HE Work](https://apify.com/he_work) (community)
- **Categories:** E-commerce, Games, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.76 / 1,000 items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Market Scraper — CS2 Skin Prices, Price History & Orders

> ✅ **Checked daily.** An automated test runs this Actor on the Apify cloud every day and checks that it still returns real data, so if the website changes and something breaks, it's caught the same day and fixed.

Scrape the **Steam Community Market** for **Counter-Strike 2**, Dota 2, Team Fortress 2, Rust, Steam trading cards or any other game. You get current prices and listings plus, for each item, the **full price history**, 24h / 7d / 30d sales and median price, all-time high and low, and the **highest buy order and lowest sell order**.

### What you get

- **Search results**: item name, market hash name, game, type / rarity colour, number of listings, lowest price ($ and as shown), image and link. Search by keyword, or list a game's whole market sorted by popularity, price or quantity.
- **Item details** (*Price history & order book*, or any item you list in *Specific items*):
  - Price history: daily since the item was first sold, hourly for the last month.
  - Sales and median price over 24 hours, 7 days and 30 days; latest sale.
  - All-time high and low.
  - Order book: highest buy order, lowest sell order, buy and sell order counts.
  - Item facts: wear (exterior), rarity, quality (StatTrak™ / Souvenir), weapon, collection, inspect link, trade hold.
- **Price alerts**: give the run a watch-list name and it flags every item as new, changed or unchanged. It sends you a digest of price changes (Discord, Telegram, Slack, Google Sheets, email). See *Alerts & workflows* below.

### Use cases

- **Skin trading and investing**: track case and skin prices, find spreads between buy and sell orders, spot sales-volume spikes.
- **Price alerts**: schedule it hourly and get a Discord or Telegram message when a skin's price moves.
- **Portfolio value**: price every item you own from its market hash name.
- **Market research and dashboards**: whole-market snapshots per game, sorted by price or popularity.

### Alerts & workflows

Ready-made workflow: **Steam price alerts → Discord / Telegram / Google Sheets**. No Make or Zapier needed — set it in the input and schedule the Actor (e.g. daily).

1. Give the run a **Watch list name** (e.g. `my-watch`). Every run with that name remembers each item's lowest price; each item gets `change_status` = `new`, `changed` or `unchanged` (changed items also carry `previous_value`).
2. Turn on **Only new / changed items** to skip — and not pay for — items you've already seen.
3. Add one or more destinations; after each run you get a digest of what's new or changed:
   - **Slack**: an incoming-webhook URL.
   - **Telegram**: bot token (from @BotFather) + chat ID.
   - **Discord**: a channel webhook URL.
   - **Email**: an address (sent with Apify's send-mail Actor).
   - **Google Sheets**: open your sheet → Extensions → Apps Script, paste the script below, Deploy → New deployment → Web app (execute as you, access: anyone), and paste the web app URL into the input. Each new / changed item is appended as a row.

```javascript
function doPost(e) {
  var rows = JSON.parse(e.postData.contents).rows || [];
  var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
  if (!rows.length) return ContentService.createTextOutput("0");
  var head = sheet.getLastRow() ? sheet.getRange(1, 1, 1, sheet.getLastColumn()).getValues()[0] : [];
  if (!head.length) { head = Object.keys(rows[0]); sheet.appendRow(head); }
  rows.forEach(function (r) { sheet.appendRow(head.map(function (h) { return r[h] === undefined ? "" : r[h]; })); });
  return ContentService.createTextOutput(String(rows.length));
}
```

Secrets (webhook URLs, bot tokens) are stored encrypted by Apify.

### Example input

```json
{
  "games": ["730"],
  "searchQueries": ["AK-47 Redline"],
  "includeDetails": true,
  "historyDays": 30,
  "maxItemsPerSearch": 20
}
```

### Example output

One item with price history and order book from a real run (history shortened to 3 points):

```json
{
  "type": "item",
  "appid": 730,
  "game": "Counter-Strike 2",
  "name": "AK-47 | Redline (Minimal Wear)",
  "market_hash_name": "AK-47 | Redline (Minimal Wear)",
  "item_type": "Classified Rifle",
  "name_color": "#d32ce6",
  "sell_listings": 68,
  "sell_price": 157.43,
  "sell_price_text": "$157.43",
  "sale_price_text": "$150.59",
  "commodity": false,
  "tradable": true,
  "icon_url": "https://community.fastly.steamstatic.com/economy/image/i0CoZ81Ui0m-9KwlBY1L_18myuGuq1wfhWSaZgMttyVfPaERSR0Wqmu7LAocGIGz3UqlXOLrxM-vMGmW8VNxu5Dx60noTyLwlcK3wiFO0POlPPNSI_-RHGavzedxuPUnFniykEtzsWWBzoyuIiifaAchDZUjTOZe4RC_w4buM-6z7wzbgokUyzK-0H08hRGDMA",
  "url": "https://steamcommunity.com/market/listings/730/AK-47%20%7C%20Redline%20%28Minimal%20Wear%29",
  "exterior": "Minimal Wear",
  "rarity": "Classified",
  "quality": "Normal",
  "weapon": "AK-47",
  "collection": "The Phoenix Collection",
  "category": "Rifle",
  "tags": {
    "Type": "Rifle",
    "Weapon": "AK-47",
    "ItemSet": "The Phoenix Collection",
    "Quality": "Normal",
    "Rarity": "Classified",
    "Exterior": "Minimal Wear"
  },
  "inspect_link": "steam://run/730//+csgo_econ_action_preview%20%propid:6%",
  "market_tradable_restriction_days": 7,
  "group_name": "AK-47 | Redline",
  "sales_24h": 4,
  "median_price_24h": 155.62,
  "sales_7d": 19,
  "median_price_7d": 159.51,
  "sales_30d": 76,
  "median_price_30d": 157.72,
  "last_sale_price": 173.69,
  "last_sale_at": "2026-11-05T23:00:00Z",
  "all_time_high": 632.75,
  "all_time_low": 1.27,
  "first_sale_at": "2014-02-21",
  "currency": "USD",
  "price_history": [
    {
      "time": "2026-11-05T15:00:00Z",
      "median_price": 146.97,
      "sales": 2
    },
    {
      "time": "2026-11-05T21:00:00Z",
      "median_price": 154.86,
      "sales": 1
    },
    {
      "time": "2026-11-05T23:00:00Z",
      "median_price": 173.69,
      "sales": 1
    }
  ],
  "highest_buy_order": 136.32,
  "lowest_sell_order": 157.43,
  "buy_orders": 2591,
  "sell_orders": 68,
  "change_status": "new",
  "scraped_at": "2026-11-06T07:41:42Z"
}
```

### How it compares

| | This Actor | Typical alternative |
|---|---|---|
| Fields per result | 45 (see *Example output*) | Varies by actor |
| Freshness | Read live from the source when the run starts | Varies |
| Reliability | Tested daily by an automated run on the Apify cloud (see the top of this page) | — |
| Price | $0.90 per 1,000 items | $0.90 per 1,000 results (the comparable Actor on the Apify Store, 6 Nov 2026) |

### Pricing

Pay per result, no monthly fee:

- **$0.90 per 1,000 items**: One Steam Market item with its current price.
- **$1.50 per 1,000 price history & order books** (add-on): Extra per item opened for price history, sales stats and buy / sell orders.
- $0.001 per run (start).

Bronze plans pay 5% less, Silver 10% less, Gold and above 15% less.

**Examples:** 1,000 items = $0.90; 1,000 items plus 1,000 price history & order books = $2.40; 10,000 = $9.00.

### FAQ

**Which currency are prices in?** US dollars, as shown on the Steam Market to logged-out visitors.

**Why are search pages slow for a whole game?** Steam returns 10 items per search page to logged-out visitors and rate-limits busy IPs. The Actor rotates IPs automatically. A typical run of a few hundred items takes a minute or two.

**One skin has several wears. Do I pay for each page?** No. One item page carries the history of every wear, StatTrak™ and Souvenir version, so they're fetched once and reused.

**Are buy orders available for every wear?** The lowest sell price is available for every wear and variant. The highest buy order and order counts are only available for the variant that Steam's own page shows first (it shows one per skin).

**Do I need a Steam account?** No. Everything comes from the public Steam Market pages.

# Actor input Schema

## `games` (type: `array`):

Steam Market games to search.

## `customAppIds` (type: `array`):

Any other Steam app ID with a market (the number in the store URL).

## `searchQueries` (type: `array`):

Item names or keywords, e.g. 'AK-47', 'Karambit', 'Case', 'Arcana'. Leave empty to list the whole market of each game in the chosen order.

## `sort` (type: `string`):

Result order.

## `maxItemsPerSearch` (type: `integer`):

Stop after this many items for each game and search.

## `includeDetails` (type: `boolean`):

Also open every item: price history, 24h / 7d / 30d sales and median price, all-time high and low, highest buy order, lowest sell order, wear, rarity, collection and inspect link.

## `historyDays` (type: `integer`):

How many days of price history to include per item (0 = everything since the item was first sold). Sales stats are always calculated.

## `itemUrls` (type: `array`):

Steam Market item URLs, or market hash names like 'AK-47 | Redline (Field-Tested)' (first selected game) or '570/Inscribed Bracers of Aeons of the Crimson Witness'. Always scraped with price history and order book.

## `maxResults` (type: `integer`):

Hard cap for the run (0 = no cap).

## `proxyConfiguration` (type: `object`):

Apify datacenter proxy by default; requests that Steam rate-limits are retried on fresh IPs.

## `watchListName` (type: `string`):

Any name, e.g. 'qld-tenders'. Runs with the same name compare against each other: items get change_status new / changed / unchanged.

## `onlyNewItems` (type: `boolean`):

With a watch list name: skip (and don't charge for) items that were already seen and haven't changed.

## `slackWebhookUrl` (type: `string`):

Slack incoming-webhook URL. Gets a digest of new / changed items after each run.

## `telegramBotToken` (type: `string`):

From @BotFather. Use together with the chat ID.

## `telegramChatId` (type: `string`):

Chat, group or channel ID that receives the digest (e.g. -1001234567890).

## `discordWebhookUrl` (type: `string`):

Discord channel webhook URL. Gets the digest.

## `googleSheetsWebAppUrl` (type: `string`):

Deploy the 10-line Apps Script from the README in your sheet and paste its web app URL: every new / changed item is appended as a row.

## `notifyEmail` (type: `string`):

Email address for the digest (sent with Apify's send-mail Actor).

## Actor input object example

```json
{
  "games": [
    "730",
    "570"
  ],
  "customAppIds": [
    "1172470"
  ],
  "searchQueries": [
    "Karambit"
  ],
  "sort": "price_desc",
  "maxItemsPerSearch": 50,
  "includeDetails": true,
  "historyDays": 90,
  "itemUrls": [
    "https://steamcommunity.com/market/listings/730/AK-47%20%7C%20Redline%20%28Field-Tested%29"
  ],
  "maxResults": 500,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "watchListName": "my-watch-list",
  "onlyNewItems": false,
  "notifyEmail": "you@example.com"
}
```

# Actor output Schema

## `results` (type: `string`):

One row per item.

## `report` (type: `string`):

Items per search, alerts and request counts.

# 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 = {
    "searchQueries": [
        "AK-47 Redline"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("he_work/steam-market-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 = { "searchQueries": ["AK-47 Redline"] }

# Run the Actor and wait for it to finish
run = client.actor("he_work/steam-market-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 '{
  "searchQueries": [
    "AK-47 Redline"
  ]
}' |
apify call he_work/steam-market-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,he_work/steam-market-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/274S8ETHy0WnL5SfD/builds/E6l1BjTQJKbvVudPj/openapi.json
