One API for every trading card game

Live prices for Pokémon, MTG, Yu-Gi-Oh, Lorcana, One Piece, Star Wars: Unlimited, and Flesh and Blood — TCGPlayer market data, real eBay sold averages, and PSA / BGS / CGC graded comps. All from a single REST endpoint.

Official SDKs

Native client libraries with idiomatic conventions, typed errors, and automatic batch chunking.

📦 JavaScript / TypeScript

Native fetch, ESM + CJS, zero deps. Works in Node 18+, browsers, Bun, Deno, Cloudflare Workers.

🐍 Python

Built on httpx. Python 3.9+, sync API, typed exception hierarchy, context manager support.

🐹 Go

Stdlib net/http, zero third-party deps, functional options, typed error wrappers.

🦀 Rust

Async with reqwest + tokio. Builder pattern, typed Error enum.

🐘 PHP

PHP 8.1+, Guzzle, PSR-4, typed exception hierarchy.

💻 Terminal CLI

Live prices in your shell. Search, lookup, history, JSON output for scripting.

30-second quickstart

Get a free API key at tcgpricelookup.com/tcg-api, then:

JavaScript / TypeScript

import { TcgLookupClient } from "@tcgpricelookup/sdk";

const client = new TcgLookupClient({ apiKey: "tlk_live_..." });
const results = await client.cards.search({ q: "charizard", game: "pokemon" });

Python

from tcglookup import TcgLookupClient

client = TcgLookupClient(api_key="tlk_live_...")
results = client.cards.search(q="charizard", game="pokemon")

CLI

npm install -g tcglookup
tcglookup search "blue-eyes white dragon" --game yugioh

Supported games

Eight major trading card games, one API. Use these slugs in the game parameter.

Beyond the SDKs

The TCG Price Lookup ecosystem also ships:

🤖 Discord bot

Self-hosted bot with 21 slash commands: price lookup, alerts, portfolios, leaderboards, and more.

📚 awesome-tcg

Curated index of every TCG Price Lookup resource — SDKs, CLI, examples, tutorials, blog posts.

🧪 Code examples

Runnable samples in 8 languages — JS, Python, Go, Rust, PHP, Ruby, Java, C#.

📡 OpenAPI spec

Hand-written OpenAPI 3.1 spec for every endpoint. Use with Swagger UI, Redoc, openapi-generator.

📮 Postman collection

Import and start hitting the API in 30 seconds. Includes a Newman-ready environment file.

📝 Blog

Tutorials, market analysis, rarity guides, listicles. New post every week.