TCGplayer
TCGplayer Product API
One TCGplayer product (US marketplace, prices in USD) by product id or tcgplayer.com URL: name, URL, images at 200, 400 and 1000 px, game, set, card number, rarity, product type, release date, market, median and lowest price, listing and seller counts, card text, flavor text and the game's card attributes (Pokemon HP, stage, energy type, attacks, weakness, retreat cost; Magic color, mana value, type line, power, toughness; Yu-Gi-Oh! attribute, monster type, level, ATK, DEF). Every SKU, one per condition x printing x language, comes with its market price, the lowest and highest recent sale price and the number of sales behind the market price. An unknown id is a 404. Costs 1 credit per request.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonproduct_idintegerTCGplayer product id: the number after /product/ in a tcgplayer.com URL, or a search result's product_id. A number or a string of digits. Pass product_id or url.
Example: 219058
urlstringA tcgplayer.com product URL (/product/<id>/...). Used when product_id is not given.
Example: https://www.tcgplayer.com/product/219058/pokemon-battle-academy-charizard-3-70-39-charizard-stamped
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
p = client.tcgplayer.product(product_id=219058)["data"]
print(p["name"], p["set_name"], p["number"], "market", p["market_price"])
for s in p["skus"]:
print(s["condition"], s["printing"], s["language"], s["market_price"],
s["lowest_sale_price"], "-", s["highest_sale_price"], f'({s["sale_count"]} sales)')Response