Code examples for tracking TCGPlayer prices, Magic the Gathering prices, Pokemon TCG prices, and more using the Marketplace Price Tracker API.
Build a card price tracker, price alert bot, or TCG arbitrage tool with these ready-to-run examples.
- Go to Marketplace Price Tracker on RapidAPI
- Subscribe (free tier available)
- Copy your API key from the dashboard
pip install requestsnpm install axios| File | Language | Description |
|---|---|---|
| basic_price_check.py | Python | Check current TCGPlayer card prices |
| price_alert.py | Python | Alert when a card drops below a target price |
| batch_prices.js | Node.js | Fetch prices for multiple cards at once |
| webhook_setup.js | Node.js | Set up price change webhooks |
import requests
response = requests.get(
"https://marketplace-price-tracker.p.rapidapi.com/search",
headers={
"X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
"X-RapidAPI-Host": "marketplace-price-tracker.p.rapidapi.com"
},
params={"query": "Black Lotus", "marketplace": "tcgplayer"}
)
for item in response.json().get("results", []):
print(f"{item['name']} — ${item['price']}")- TCGPlayer API price monitoring for Magic the Gathering, Pokemon TCG, Yu-Gi-Oh
- Card price tracker for personal collections or store inventory
- Price alert bot — get notified when cards hit your buy price
- TCG arbitrage — compare buylist pricing across marketplaces
- Portfolio tracking — monitor collection value over time
TCGPlayer API, trading card prices, Magic the Gathering prices, Pokemon TCG prices, card price tracker, price alert bot, TCG arbitrage, buylist pricing
MIT