Skip to content

lulzasaur9192/tcgplayer-price-api-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

TCGPlayer Price Monitoring Examples

Python Node.js RapidAPI

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.

Get API Key

  1. Go to Marketplace Price Tracker on RapidAPI
  2. Subscribe (free tier available)
  3. Copy your API key from the dashboard

Installation

Python

pip install requests

Node.js

npm install axios

Examples

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

Quickstart

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']}")

Use Cases

  • 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

Keywords

TCGPlayer API, trading card prices, Magic the Gathering prices, Pokemon TCG prices, card price tracker, price alert bot, TCG arbitrage, buylist pricing

License

MIT

About

TCGPlayer price monitoring examples — card price tracker, price alerts, batch pricing, webhooks. Python & Node.js.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors