API Endpoints

TCG Price Lookup API के search, card details, price history, sets, games और batch search endpoints का complete reference।


Base URL

https://api.tcgpricelookup.com/v1

Name से सभी games के cards search करें।

GET /v1/search

Query Parameters:

ParameterRequiredDescription
qहांSearch query (card name)
gameनहींGame slug (जैसे: pokemon, mtg, yugioh)
setनहींSet name या set code से filter
rarityनहींRarity से filter
limitनहींResults count (default: 20, max: 100)
offsetनहींPagination offset

उदाहरण:

curl "https://api.tcgpricelookup.com/v1/search?q=charizard&game=pokemon" \
  -H "X-API-Key: your-api-key"

Card Details

ID से card का detailed price data प्राप्त करें।

GET /v1/cards/:id

उदाहरण:

curl "https://api.tcgpricelookup.com/v1/cards/pokemon-base1-4" \
  -H "X-API-Key: your-api-key"

Price History

Card की price history प्राप्त करें (Trader plan या उससे ऊपर)।

GET /v1/cards/:id/prices

Query Parameters:

ParameterDefaultDescription
days30History के दिन (max: 90)

Sets List

किसी specific game के सभी sets list करें।

GET /v1/sets?game=pokemon

एक request में 20 cards तक fetch करें (Trader plan या उससे ऊपर)।

POST /v1/cards/batch

Request Body:

{
  "ids": ["pokemon-base1-4", "mtg-lea-232", "yugioh-lob-005"]
}

Supported Game Slugs

GameSlug
Pokémon TCG (English)pokemon
Pokémon (Japanese)pokemonjp
Magic: The Gatheringmtg
Yu-Gi-Oh!yugioh
Disney Lorcanalorcana
One Piece Card Gameonepiece
Star Wars: Unlimitedswu
Flesh and Bloodfab