TopRank Skills

Home / Claw Skills / Others / steam-community-inventory
Official OpenClaw rules 15%

steam-community-inventory

Retrieves Steam inventory data and manages trade offers on steamcommunity.com

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 steam-community-inventory 技能。 若已安装,则直接安装 steam-community-inventory 技能。

Overview

Skill Key
bluesyparty-src/steamcommunity
Author
bluesyparty-src
Source Repo
openclaw/skills
Version
-
Source Path
skills/bluesyparty-src/steamcommunity
Latest Commit SHA
07af461760afdd42d124219b2307676d3641f1db

Extracted Content

SKILL.md excerpt

# Steam Community Inventory Skill

Retrieve and browse a Steam user's inventory, and send/manage trade offers on steamcommunity.com.

## Setup

1. Find your **Steam ID (SteamID64)**:
   - Go to your Steam profile page
   - If your URL is `https://steamcommunity.com/profiles/76561198012345678`, your Steam ID is `76561198012345678`
   - If your URL uses a vanity name like `https://steamcommunity.com/id/myname`, visit [steamid.io](https://steamid.io) and paste your profile URL to get your SteamID64

2. Get your **Steam Web API key**:
   - Go to [https://steamcommunity.com/dev/apikey](https://steamcommunity.com/dev/apikey)
   - Register a domain name (any value works, e.g., `localhost`)
   - Copy the API key shown on the page

3. Get your **Steam session cookies** (required for trade offers and bypassing inventory rate limits):
   - Log in to [steamcommunity.com](https://steamcommunity.com) in your browser
   - Open Developer Tools (F12) > Application tab > Cookies > `https://steamcommunity.com`
   - Copy the value of the `steamLoginSecure` cookie
   - Copy the value of the `sessionid` cookie

4. Set environment variables:
   ```bash
   export STEAM_ID="your-steamid64"
   export STEAM_API_KEY="your-api-key"
   export STEAM_COOKIES="steamLoginSecure=your-cookie-value"
   export STEAM_SESSION_ID="your-sessionid-cookie-value"
   ```

## Usage

All commands use curl to hit the Steam Community inventory endpoint. The context ID is `2` for all standard game inventories.

### Common App IDs

| Game | App ID |
|------|--------|
| CS2 / CS:GO | 730 |
| Team Fortress 2 | 440 |
| Dota 2 | 570 |
| Rust | 252490 |
| PUBG | 578080 |
| Steam Community (trading cards, etc.) | 753 |

### Get inventory for a game

Replace `$APP_ID` with the game's App ID (see table above). Context ID is `2` for all standard game inventories.

```bash
curl -s "https://steamcommunity.com/inventory/$STEAM_ID/$APP_ID/2?l=english&count=2000" \
  -H "Cookie: $STEAM_COOKIES" | jq '.'
```

### Get CS2 inventory...

Related Claw Skills