The official Python client for the SteamAnalyst CS2 Pricing API.
Get real-time Counter-Strike 2 skin prices aggregated from 30+ marketplaces — including Buff, CSFloat, DMarket, SkinBaron, CS.Money, and more.
SteamAnalyst is the leading price aggregator for CS2 skins, trusted by over 1 million monthly users since 2013. Unlike the Steam Market API, SteamAnalyst provides accurate, manipulation-resistant pricing by aggregating real transaction data from 30+ skin marketplaces.
Learn more about our methodology
Sign up for a free or paid API key at steamanalyst.com/api-info.
| Plan | Requests | Best For |
|---|---|---|
| Hobby (Free) | 100/day | Personal projects, testing |
| Pro | Custom | Trading bots, commercial apps |
pip install steamanalystfrom steamanalyst import SteamAnalyst
client = SteamAnalyst("your_api_key")
# Get a single item price
item = client.get_price("AK-47 | Redline (Field-Tested)")
print(item["price"]) # 25.50Full API documentation is available at api.steamanalyst.com/docs.
Get the current price for a single CS2 item.
item = client.get_price("AWP | Dragon Lore (Factory New)")
# {"market_name": "AWP | Dragon Lore (Factory New)", "price": 12500.00}Get prices for every CS2 item in a single request. Requires a paid API key.
items = client.get_all_prices()
print(f"Loaded {len(items)} items")Get CS2 item data from the v2 endpoint. Pass an optional market_name for a single item.
# All items
all_items = client.get_game_prices()
# Single item
knife = client.get_game_prices("Karambit | Fade (Factory New)")Compare prices across 30+ skin marketplaces — find the best deals instantly. Requires a paid API key.
data = client.get_market_prices()
redline = data["markets_prices"]["AK-47 | Redline (Field-Tested)"]
print(f"Buff: ${redline['buff']}")
print(f"CSFloat: ${redline['float']}")
print(f"DMarket: ${redline['dmarket']}")Supported marketplaces include: Buff, CSFloat, DMarket, SkinBaron, CS.Money, BitSkins, Tradeit, Waxpeer, ShadowPay, LootFarm, SkinFlow, and many more.
from steamanalyst import SteamAnalyst
client = SteamAnalyst("your_api_key")
items = [
"AK-47 | Redline (Field-Tested)",
"AWP | Asiimov (Field-Tested)",
"M4A4 | Howl (Factory New)",
]
for name in items:
item = client.get_price(name)
print(f"{name}: ${item['price']}")from steamanalyst import SteamAnalyst
client = SteamAnalyst("your_api_key")
data = client.get_market_prices()
item = "AK-47 | Redline (Field-Tested)"
prices = data["markets_prices"][item]
cheapest = min(
((market, price) for market, price in prices.items() if price > 0),
key=lambda x: x[1],
)
print(f"Cheapest for {item}: {cheapest[0]} at ${cheapest[1]}")from steamanalyst import SteamAnalyst, SteamAnalystError
client = SteamAnalyst("your_api_key")
try:
item = client.get_price("Nonexistent Skin")
except SteamAnalystError as e:
print(f"API Error [{e.code}]: {e}")
# API Error [ITEM_NOT_FOUND]: Item not foundRate limits depend on your API plan:
| Plan | Rate Limit | Daily Limit |
|---|---|---|
| Hobby (Free) | 30 req/min | 100 req/day |
| Pro | 300 req/min | Unlimited |
The SDK raises SteamAnalystError with code RATE_LIMIT_EXCEEDED when you hit the limit.
- Python 3.10+
- Zero dependencies (uses
urllibfrom the standard library)
- SteamAnalyst — CS2 skin price aggregator
- API Documentation — Full endpoint reference
- API Plans & Pricing — Get your API key
- About SteamAnalyst — Our methodology and mission
- Browse CS2 Skins — Explore the CS2 market
- Market Trends — Track the CS2 skin economy
MIT - see LICENSE
Built and maintained by SteamAnalyst — tracking CS2 skin prices since 2013.