CS2Cap market data API client
Project description
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))
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.
Project details
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 cs2cap-3.0.0.tar.gz.
File metadata
- Download URL: cs2cap-3.0.0.tar.gz
- Upload date:
- Size: 128.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69bda0e8286b58492e10d8ec6255aaae2edf735dc75d89cb9219e2002b21b17e
|
|
| MD5 |
e3c0c9c7a8a332d9f25723439650ab7e
|
|
| BLAKE2b-256 |
cf233c2794f606b004c3fcd752891dbd1e7746ccb6c1114a1da9b779bfe93c30
|
Provenance
The following attestation bundles were made for cs2cap-3.0.0.tar.gz:
Publisher:
publish.yml on CS2Cap/cs2cap-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cs2cap-3.0.0.tar.gz -
Subject digest:
69bda0e8286b58492e10d8ec6255aaae2edf735dc75d89cb9219e2002b21b17e - Sigstore transparency entry: 2166952587
- Sigstore integration time:
-
Permalink:
CS2Cap/cs2cap-python@799ce4289d99fa4a257192f7eeb548262cd7acaa -
Branch / Tag:
refs/tags/v3.0.0 - Owner: https://github.com/CS2Cap
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@799ce4289d99fa4a257192f7eeb548262cd7acaa -
Trigger Event:
push
-
Statement type:
File details
Details for the file cs2cap-3.0.0-py3-none-any.whl.
File metadata
- Download URL: cs2cap-3.0.0-py3-none-any.whl
- Upload date:
- Size: 295.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1fd777e1a01702477e49c1f6e411dc30e78fd9caa71b4c6a47756bfba298429
|
|
| MD5 |
80bd8c36daf4aa4500af081951872393
|
|
| BLAKE2b-256 |
a0cd2c97193a2fdc0a003252352f843d91c572390f7d00bda518cfac5a4fb3ad
|
Provenance
The following attestation bundles were made for cs2cap-3.0.0-py3-none-any.whl:
Publisher:
publish.yml on CS2Cap/cs2cap-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cs2cap-3.0.0-py3-none-any.whl -
Subject digest:
d1fd777e1a01702477e49c1f6e411dc30e78fd9caa71b4c6a47756bfba298429 - Sigstore transparency entry: 2166952589
- Sigstore integration time:
-
Permalink:
CS2Cap/cs2cap-python@799ce4289d99fa4a257192f7eeb548262cd7acaa -
Branch / Tag:
refs/tags/v3.0.0 - Owner: https://github.com/CS2Cap
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@799ce4289d99fa4a257192f7eeb548262cd7acaa -
Trigger Event:
push
-
Statement type: