Skip to main content

Official Python SDK for the CardShowData TCG pricing API

Project description

CardShowData Python SDK

Official Python client for the CardShowData TCG pricing API.

Install

pip install cardshowdata

Quick Start

from cardshowdata import CardShowData

client = CardShowData(api_key="csd_live_...")

# Get a card by pretty ID
card = client.cards.get("pk_bs_004")
print(card.name)  # "Charizard"
print(card.image)  # "https://images.cardshowdata.com/..."

# Search cards
page = client.cards.search(tcg="pk", q="name:charizard")
for card in page.data:
    print(f"{card.name}{card.expansion.name}")

# Get pricing (all values in cents)
price = client.pricing.get("aaaa-bbbb-cccc-dddd")
print(price.market_price_cents)  # 12500

# Bulk pricing
prices = client.pricing.bulk(["uuid1", "uuid2", "uuid3"])

# Browse the catalog
tcgs = client.catalog.list_tcgs()
sets = client.catalog.list_sets("pk")

Async

from cardshowdata import AsyncCardShowData

async with AsyncCardShowData(api_key="csd_live_...") as client:
    card = await client.cards.get("pk_bs_004")
    async for product in client.catalog.list_products_all("pk"):
        print(product.product_name)

Auto-Pagination

Endpoints with pagination have _all() methods that automatically fetch every page:

# Offset-paginated (cards)
for card in client.cards.search_all(tcg="pk", q="name:pikachu"):
    print(card.name)

# Cursor-paginated (catalog products, pricing changes)
for product in client.catalog.list_products_all("pk"):
    print(product.pretty_id)

for change in client.pricing.changes_all(since="2026-04-01T00:00:00Z"):
    print(f"{change.pretty_id}: {change.pct_change}%")

Resources

Resource Methods
client.cards get(), search(), search_all(), list_by_expansion(), get_ebay_sales()
client.pricing get(), bulk(), history(), changes(), changes_all()
client.catalog list_tcgs(), list_sets(), get_taxonomy(), list_products(), list_products_all(), export_csv(), resolve(), search()
client.grading get(), history(), changes(), changes_all()
client.lifecycle get()
client.usage get()
client.sales submit(), submit_batch(), submit_csv()
client.feedback submit()
client.onboarding quickstart()

Error Handling

from cardshowdata import NotFoundError, RateLimitError

try:
    card = client.cards.get("nonexistent")
except NotFoundError:
    print("Card not found")
except RateLimitError as e:
    print(f"Rate limited — retry after {e.retry_after}s")

Errors: AuthenticationError (401), PermissionError (403), NotFoundError (404), RateLimitError (429), ApiError (5xx).

Configuration

client = CardShowData(
    api_key="csd_live_...",                        # or set CSD_API_KEY env var
    base_url="https://api.cardshowdata.com",       # default
    timeout=30,                                     # seconds
    max_retries=3,                                  # auto-retry on 429/5xx
)

Rate limit info is available after any request:

print(client.rate_limit.remaining)  # requests left this minute

Requirements

  • Python 3.10+
  • httpx 0.27+

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

cardshowdata-1.0.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

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

cardshowdata-1.0.0-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file cardshowdata-1.0.0.tar.gz.

File metadata

  • Download URL: cardshowdata-1.0.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for cardshowdata-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4512e5e3d11d56094522e39fb2b51d6e2e24f888f2472f880a0563f363119bbd
MD5 03f30c7bca75ab5357df3193a3cd42d5
BLAKE2b-256 7d1231cb8bada86ca98bb5f8a57843fca25fa9b69f8fcfd15de8c4440a8f0ea6

See more details on using hashes here.

File details

Details for the file cardshowdata-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cardshowdata-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for cardshowdata-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e74765aff7057ebeacf246390b30d781db5e8e5aa13bf7e0ceba85d0e5fc673
MD5 7b9ebd0f9ab2f760a826ce4e3ce9e068
BLAKE2b-256 08c124224a8f8c41c3a94581b1566c387d323cd5204e18a48bfc22d913cb39d0

See more details on using hashes here.

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