cs2-price-api
The official Python client for the API Skins CS2 price API:
- Offers: every CS2 item's cheapest listing on each marketplace
- Buy orders: every item's highest buy order on each marketplace that has them
Typed, no dependencies (httpx only for the async client), Python 3.10+.
pip install cs2-price-api
Quick start
Sign in with Steam on apiskins.com and copy your key from the API docs page (the free plan works).
import os
from cs2_price_api import ApiSkins, lowest_offer
api = ApiSkins(api_key=os.environ["APISKINS_API_KEY"])
item = api.offers.get("AK-47 | Redline (Field-Tested)")
# {"market_hash_name": "AK-47 | Redline (Field-Tested)", "offers": [{"provider": "buff_163", "price": 31.42}, ...]}
print(lowest_offer(item)) # {"provider": "buff_163", "price": 31.42}
Prices are in USD. Item names are Steam's market_hash_name.
Offers
# one item, every marketplace (None when nothing lists it)
api.offers.get("AWP | Asiimov (Field-Tested)")
# only some marketplaces
api.offers.get("AWP | Asiimov (Field-Tested)", providers=["cs_float", "skinport"])
# many items: 100 per request, longer lists are split for you
api.offers.list(["AWP | Asiimov (Field-Tested)", "★ Karambit | Doppler (Factory New)"])
# every listed item in one answer
api.offers.list()
Buy orders
api.orders.get("AK-47 | Redline (Field-Tested)")
# {"market_hash_name": "...", "orders": [{"provider": "dmarket", "price": 24.51}, {"provider": "steam", "price": 26.1}]}
api.orders.list([...], providers=["dmarket", "market_csgo"])
api.orders.list() # every item with a buy order
highest_order(item) picks the best one.
Async
pip install "cs2-price-api[async]"
import asyncio
from cs2_price_api import AsyncApiSkins
async def main():
async with AsyncApiSkins(api_key="...") as api:
offers, orders = await asyncio.gather(
api.offers.get("AK-47 | Redline (Field-Tested)"),
api.orders.get("AK-47 | Redline (Field-Tested)"),
)
asyncio.run(main())
Marketplaces
OFFER_PROVIDERS and ORDER_PROVIDERS list the ids: cs_float, buff_163, youpin, dmarket, skinport, cs_money, market_csgo, buff_market, waxpeer, lis_skins, skin_baron, halo_skins, white_market, shadow_pay, skins, skin_swap, cs_deals, loot_farm, cs_trade, tradeit, steam, sih.
Plans
The free plan answers Steam's prices and buy orders, 100 requests per 30 days. Every other marketplace, and higher limits, need a paid plan (pricing). Asking for a marketplace your plan lacks raises a 403.
Each answer carries what is left of your 30-day limit:
api.offers.get("AK-47 | Redline (Field-Tested)")
print(api.last_usage) # Usage(limit=100, remaining=99) on the free plan
Errors and limits
Errors raise ApiSkinsError with the API's status and message:
from cs2_price_api import ApiSkinsError
try:
api.offers.list()
except ApiSkinsError as error:
if error.status == 403:
print("Upgrade needed:", error.message)
A short rate limit (429 with a Retry-After up to 60 seconds) and server errors are retried for you, twice by default. The 30-day limit is raised at once.
ApiSkins(
api_key="...",
max_retries=2, # 0 turns retrying off
max_retry_wait_seconds=60, # longest Retry-After worth waiting for
timeout=120,
)
Examples
- examples/cheapest_marketplace.py: where an item is cheapest right now
- examples/order_spread.py: the cheapest listing against the best buy order
Links
License
MIT
Metadata
Release files for cs2-price-api 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cs2_price_api-1.0.0.tar.gz | 10.2 kB | With provenance | Details for cs2_price_api-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cs2_price_api-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for cs2_price_api-1.0.0-py3-none-any.whl |
Total release size: 21.4 kB
Release files / cs2_price_api-1.0.0.tar.gz
| Download URL | cs2_price_api-1.0.0.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db402226f7a08db22ae66243fbb23829024693ad6afdd0c0f16207174e2d99f2
|
|
BLAKE2b-256 checksum How to use checksums |
db83b2524f2dadb51050528d4f6ce36ce779aad4baff1aa6509788922371d6c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / cs2_price_api-1.0.0-py3-none-any.whl
| Download URL | cs2_price_api-1.0.0-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28573fdc34e7e5a9462572dd2907e06b47be49f8e348945e12a23c73c66a2a2d
|
|
BLAKE2b-256 checksum How to use checksums |
130282ab376e1c55e7e1eeb9c46acd29ea248f655e083436986d3892ad0929f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logSecurity for cs2-price-api 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for cs2_price_api-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.