Skip to main content

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.

PyPI

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

cs2cap-3.0.0.tar.gz (128.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cs2cap-3.0.0-py3-none-any.whl (295.9 kB view details)

Uploaded Python 3

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

Hashes for cs2cap-3.0.0.tar.gz
Algorithm Hash digest
SHA256 69bda0e8286b58492e10d8ec6255aaae2edf735dc75d89cb9219e2002b21b17e
MD5 e3c0c9c7a8a332d9f25723439650ab7e
BLAKE2b-256 cf233c2794f606b004c3fcd752891dbd1e7746ccb6c1114a1da9b779bfe93c30

See more details on using hashes here.

Provenance

The following attestation bundles were made for cs2cap-3.0.0.tar.gz:

Publisher: publish.yml on CS2Cap/cs2cap-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for cs2cap-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1fd777e1a01702477e49c1f6e411dc30e78fd9caa71b4c6a47756bfba298429
MD5 80bd8c36daf4aa4500af081951872393
BLAKE2b-256 a0cd2c97193a2fdc0a003252352f843d91c572390f7d00bda518cfac5a4fb3ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for cs2cap-3.0.0-py3-none-any.whl:

Publisher: publish.yml on CS2Cap/cs2cap-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page