搜索

PythonReactSEOPDF
OpenClaw

steam-community-inventory

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

bluesyparty-src0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install bluesyparty-src/steamcommunity

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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 and paste your profile URL to get your SteamID64
  2. Get your Steam Web API key:

  3. Get your Steam session cookies (required for trade offers and bypassing inventory rate limits):

    • Log in to 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:

    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.

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

来源信息

Source
github
Repository
openclaw/skills
Path
skills/bluesyparty-src/steamcommunity
Version
—
Commit
07af461760afdd42d124219b2307676d3641f1db
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# 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...

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.