Python client for SkinAPI - CS2/Steam skin prices, float values, inventories and marketplace data.
Project description
skinapi (Python)
Python client for SkinAPI - real-time CS2 / Dota 2 / Rust / TF2 skin prices, float values, Steam inventories & profiles, and multi-marketplace data through one REST API.
- Real-time prices aggregated across marketplaces
- CS2 float values, paint seed and wear
- Steam inventories, profiles and price history
- Automatic retries, timeouts and rate-limit tracking
- Free tier - get a key in ~2 minutes
Install
pip install skinapi
Get a key
- Sign in with Steam: https://skinapi.skinvaults.online/api/auth/steam
- Create a key in your dashboard
Usage
from skinapi import SkinAPI
api = SkinAPI("sk_live_your_key")
# Aggregated price for one item
price = api.item_price("AK-47 | Redline (Field-Tested)", game="cs2", currency="USD")
# Compare across marketplaces
markets = api.markets("AK-47 | Redline (Field-Tested)", game="cs2")
# Float value, paint seed and wear from a Steam inspect link
fl = api.float("STEAM_INSPECT_LINK")
# Steam profile and bans
profile = api.profile("STEAM_ID_OR_VANITY")
# Priced Steam inventory
inv = api.inventory("STEAM_ID", game="cs2", prices=True)
# Many items at once
batch = api.markets_batch(["AK-47 | Redline (Field-Tested)", "AWP | Asiimov (Field-Tested)"])
# Remaining quota after any call
print(api.rate_limit) # {'remaining_minute': ..., 'remaining_day': ..., 'reset': ...}
Errors raise SkinAPIError with .status and .code:
from skinapi import SkinAPIError
try:
api.item_price("Nonexistent Item")
except SkinAPIError as e:
print(e.status, e.code, e)
Methods
item_price, item_meta, search, catalog, history, markets, markets_batch,
deals, float, float_leaderboard, profile, friendlist, inventory,
inventory_history, inventory_batch, tradeup, status.
Authentication uses the x-api-key header. Games: cs2, dota2, rust, tf2.
Links
- Docs: https://skinapi.skinvaults.online/docs
- OpenAPI spec: https://skinapi.skinvaults.online/api/v1/openapi.json
- JavaScript client: https://www.npmjs.com/package/skinapi-js
- Discord: https://discord.gg/CqVnGdGc4Q
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file skinapi_sdk-0.1.0.tar.gz.
File metadata
- Download URL: skinapi_sdk-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
face7708984746a3ff532c37234c19e9ebeb836d0380ff6b38374c4fc8265190
|
|
| MD5 |
ff29d4240c0c81b4484802ef7dc3693c
|
|
| BLAKE2b-256 |
32389104eeeeda2e8a6e7d7766ea4203659c9e74835a5155adb1f86da03e5976
|
File details
Details for the file skinapi_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: skinapi_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
168dbe84487def2fd762a75e0722425aaedcb1aed86025515b34ae10f1dffd02
|
|
| MD5 |
75543b7e0a974312a950561e09e6e933
|
|
| BLAKE2b-256 |
fdf30438177949e7c663b3e5d76ff142ebda3a8af639bfa74fd52d81c4c19358
|