tcglookup-rs
The official Rust SDK for the TCG Price Lookup API — live trading card prices across Pokemon, Magic: The Gathering, Yu-Gi-Oh!, Disney Lorcana, One Piece TCG, Star Wars: Unlimited, and Flesh and Blood.
One API for every major trading card game. TCGPlayer market prices, eBay sold averages, and PSA / BGS / CGC graded comps — all in one place.
Install
[]
= "0.1"
= { = "1", = ["macros", "rt-multi-thread"] }
Quickstart
use ;
async
Get an API key
Sign up at tcgpricelookup.com/tcg-api. Free tier includes 10,000 requests per month with TCGPlayer market prices. Trader plan unlocks eBay sold averages, PSA / BGS / CGC graded prices, and full price history.
API surface
Cards
// Search
client.cards.search.await?;
// Get one
let card = client.cards.get.await?;
// Daily price history (Trader plan)
let hist = client.cards.history.await?;
Sets
let sets = client.sets.list.await?;
Games
let games = client.games.list.await?;
Batch lookups
Pass any Vec<String> and the SDK auto-chunks into 20-ID batches:
let results = client.cards.search.await?;
Error handling
use Error;
match client.cards.history.await
Configuration
use Duration;
use Client;
let client = builder
.base_url
.timeout
.user_agent
.build;
Sister SDKs
- tcglookup-js — JavaScript / TypeScript
- tcglookup-py — Python
- tcglookup-go — Go
- tcglookup-php — PHP
- tcglookup CLI — terminal client
- tcg-api-examples — runnable code samples in 8 languages
- tcg-discord-bot — self-hosted Discord bot with slash commands
The full developer ecosystem index lives at awesome-tcg.
License
MIT — see LICENSE.
Built by TCG Price Lookup. Get a free API key at tcgpricelookup.com/tcg-api.