TCGplayer
TCGplayer Sets API
Every set of one TCGplayer game, newest release first: set id (for the price guide), name, url_name (for search's set filter), abbreviation, release date and the supplemental flag. Takes a game url_name or game id from games. An unknown game is a 404. Costs 1 credit per request.
POST/api/v1/tcgplayer/sets
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/jsongamestringrequiredGame url_name or game_id from /api/v1/tcgplayer/games: pokemon, magic, yugioh, one-piece-card-game, or 3, 1, 2...
Example: pokemon
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
sets = client.tcgplayer.sets(game="pokemon")["data"]["sets"]
for s in sets[:5]:
print(s["set_id"], s["abbreviation"], s["name"], s["release_date"])Response
"game": "pokemon",
"game_id": 3,
"count": 221,
},
"response_time": 1046
}