CS2Cap Python SDK
Typed Python client for the CS2Cap market-data API — CS2 item prices, buy orders, sales history, and analytics across dozens of providers.
Install
pip install cs2cap
Quickstart
Set your API key in the environment. You can generate one from the Account page after verifying your email address at cs2cap.com.
export CS2C_API_KEY="sk_your_key_here"
Verify the install with a small catalog request:
import os
import cs2cap
configuration = cs2cap.Configuration(access_token=os.environ["CS2C_API_KEY"])
with cs2cap.ApiClient(configuration) as client:
api = cs2cap.ItemsApi(client)
response = api.list_items(q="AK-47", rarity_name="Covert", limit=5)
print(client.sanitize_for_serialization(response))
Real-time feeds
FeedStream subscribes to the price and bid feeds over Server-Sent Events and yields
decoded events as they arrive. Requires a Quant-tier key.
with cs2cap.ApiClient(configuration) as client:
feed = cs2cap.FeedStream(client)
for event in feed.stream_prices(providers=["steam"], item_ids=[17464]):
for item in event.items:
print(event.provider, item.item_id, item.change, item.price)
Use feed.stream_bids(...) for buy-order changes. Leaving the loop closes the
connection. The feed has no replay buffer, so re-fetch current state from /prices or
/bids before reconnecting.
Documentation
Full endpoint reference, guides, and tier details are at docs.cs2cap.com. See the changelog for API and SDK updates.
About this package
This SDK is generated from the public OpenAPI spec (openapi.json, included in this repo).
If you hit a bug in the generated client, please open an issue or PR on this repo — fixes are
applied in the generator pipeline rather than as hand-patches to the published package.
Metadata
Release files for cs2cap 3.1.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 |
|---|---|---|---|---|
| cs2cap-3.1.0.tar.gz | 133.7 kB | With provenance | Details for cs2cap-3.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cs2cap-3.1.0-py3-none-any.whl | Python 3 | none | any | Details for cs2cap-3.1.0-py3-none-any.whl |
Total release size: 436.4 kB
Release files / cs2cap-3.1.0.tar.gz
| Download URL | cs2cap-3.1.0.tar.gz |
|---|---|
| Size | 133.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8cb7770545bf7be8a6a4b93e1b3b23d19e1b97ea6dc3bd93495793421d874cb7
|
|
BLAKE2b-256 checksum How to use checksums |
4fc35413b72c9399348fc15f9697bbcd1ddbc04ab2a8153414704fcf29515982
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 12, 2026.
Transparency logRelease files / cs2cap-3.1.0-py3-none-any.whl
| Download URL | cs2cap-3.1.0-py3-none-any.whl |
|---|---|
| Size | 302.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b7ae3230dd65e56e0aba9e1dd277ee964dfcad1958001bac7f2c8e25e0216b4
|
|
BLAKE2b-256 checksum How to use checksums |
fbb5f17111fd5711b387d40c29de54e914edd51c62f8fd4864eca53dbb882926
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 12, 2026.
Transparency logSecurity for cs2cap 3.1.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for cs2cap-3.1.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 Aug 12, 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.