360 Secure SkillHub
360 安全技能中心

PC Game Deals

使用 curl 与 jq 调用 CheapShark API:按游戏名搜索最低价、列出 Steam 等商店的热门折扣(可按商店、价格上限、折扣排序筛选)、查询某游戏的价格历史,并说明在网页端手动设置价格提醒。仅覆盖 PC 平台,需联网,无需 API Key。

pazzilivo
pazzilivo
热度 81.66
最近更新 2026-05-11 17:34:24
分类:生活依赖:代码执行 / 第三方 API应用场景:购物 / 推荐

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add pc-game-deals
Metadata
name
game-deals
description
Track PC game discounts across Steam, Epic Games, GOG, Humble Store and 30+ stores via CheapShark API. Use when user asks: 'any deals on [game]', 'game discounts', 'steam sale', 'lowest price for [game]', 'set price alert', or mentions game prices/savings. NOT for console games (PS5/Xbox/Switch) or mobile games - CheapShark is PC only. No API key required.
metadata
{"openclaw":{"emoji":"🎮","requires":{"bins":["curl","jq"]}}}

Game Deals

Track game discounts across PC game stores.

Store IDs

ID Store
1 Steam
7 GOG
11 Humble Store
25 Epic Games Store
31 Blizzard Shop

Full list: curl -s "https://www.cheapshark.com/api/1.0/stores" | jq '.[] | "\(.storeID): \(.storeName)"'


Commands

Search Game

curl -s "https://www.cheapshark.com/api/1.0/games?title=GAME_NAME&limit=5" | jq -r '.[] | "🎯 \(.external) - 最低价: $\(.cheapest)"'

Hot Deals

# Steam deals under $15
curl -s "https://www.cheapshark.com/api/1.0/deals?storeID=1&upperPrice=15&pageSize=10" | jq -r '.[] | "🔥 \(.title) - $\(.salePrice) (原价 $\(.normalPrice), -\(.savings | tonumber | floor)%%)"'

Filter Options

  • storeID=1 — Steam only
  • upperPrice=10 — Max price $10
  • sortBy=Savings&desc=1 — Sort by discount
  • onSale=1 — Only items on sale

Price History

# Get gameID from search first
curl -s "https://www.cheapshark.com/api/1.0/games?id=GAME_ID" | jq '{cheapest: .cheapestPriceEver.price, current: .deals | map({store: .storeID, price: .price})}'

Price Alerts

Web-based only: https://www.cheapshark.com → Search game → "Set Alert" → Enter email + target price