npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tcglookup

v0.1.0

Published

Command-line tool for looking up trading card prices for Pokemon, MTG, Yu-Gi-Oh!, One Piece, Lorcana, Star Wars: Unlimited, Flesh and Blood, and Pokemon Japan. Powered by the TCG Price Lookup API.

Readme

tcglookup

npm version license

Live trading card prices in your terminal — Pokemon, Magic: The Gathering, Yu-Gi-Oh!, One Piece, Disney Lorcana, Star Wars: Unlimited, Flesh and Blood, and Pokemon Japan. Powered by the TCG Price Lookup API.

$ tcglookup search charizard --game pokemon --limit 3

┌────────────────────────────┬──────────────────────────┬────────────┬──────────┬────────────┬──────────────┐
│ Name                       │ Set                      │ Game       │ #        │ Variant    │ NM market    │
├────────────────────────────┼──────────────────────────┼────────────┼──────────┼────────────┼──────────────┤
│ Charizard                  │ Base Set                 │ Pokemon    │ 4/102    │ Standard   │ $488.20      │
│ Charizard                  │ XY - Evolutions          │ Pokemon    │ 11/108   │ Standard   │ $71.56       │
│ Charizard ex               │ Obsidian Flames          │ Pokemon    │ 6/197    │ Standard   │ $48.97       │
└────────────────────────────┴──────────────────────────┴────────────┴──────────┴────────────┴──────────────┘
Showing 3 of 557 matches.

Install

npm install -g tcglookup

Get an API key

The CLI is a thin wrapper around the TCG Price Lookup API. You'll need a free API key — get one in 30 seconds at https://tcgpricelookup.com/tcg-api (no credit card on the Free tier).

tcglookup auth login
# Paste your key when prompted. Saved with file mode 600 to:
#   ~/.config/tcglookup/config.json

Or set TCG_API_KEY in your environment — that wins over the stored key, which is handy for CI / one-off scripts.

Commands

Search

tcglookup search "charizard"
tcglookup search "black lotus" --game mtg
tcglookup search charizard --game pokemon --set obsidian-flames --limit 5

Options: --game <slug>, --set <slug>, --ids <comma-separated>, --limit <n>, --offset <n>, --json.

Get full card details

tcglookup get 019535a1-d5d0-7c12-a3e8-b7f4c6d8e9a2

Returns every condition (Near Mint → Damaged), every grader (PSA, BGS, CGC, SGC, …), every grade (1-10), and TCGPlayer market + low/mid/high.

Price history (Trader plan and above)

tcglookup history 019535a1-d5d0-7c12-a3e8-b7f4c6d8e9a2 --period 30d

Periods: 7d, 30d, 90d, 1y. Includes a tiny ASCII sparkline of the price trend and a percentage delta from start to end.

List sets

tcglookup sets pokemon
tcglookup sets mtg --limit 10

List supported games

tcglookup games

Auth management

tcglookup auth status     # show whether a key is configured
tcglookup auth login      # set a key (interactive prompt)
tcglookup auth login --key tcg_xxx   # set a key non-interactively
tcglookup auth logout     # delete the stored key

Pipe-friendly output

Every command supports --json for shell scripting:

# Just the market price of the first hit
tcglookup search charizard --game pokemon --json \
  | jq '.data[0].prices.raw.near_mint.tcgplayer.market'

# Total value of a portfolio (one card ID per line in ids.txt)
tcglookup search --ids "$(paste -sd , ids.txt)" --json \
  | jq '[.data[].prices.raw.near_mint.tcgplayer.market | select(. != null)] | add'

Supported games

| Slug | Game | |--------------|-------------------------| | pokemon | Pokémon (English) | | pokemon-jp | Pokémon Japan | | mtg | Magic: The Gathering | | yugioh | Yu-Gi-Oh! | | onepiece | One Piece Card Game | | lorcana | Disney Lorcana | | swu | Star Wars: Unlimited | | fab | Flesh and Blood |

Plan tiers

The Free tier returns raw TCGPlayer prices only. The eBay sold-listing data, PSA/BGS/CGC graded values, and the history command require the Trader plan or above. The CLI surfaces this clearly when you hit a paywall:

✖ Your plan does not include this resource.

History endpoint requires trader plan or above

Upgrade at https://tcgpricelookup.com/pricing

See https://tcgpricelookup.com/pricing for current quotas.

Exit codes

| Code | Meaning | |------|---------| | 0 | Success | | 1 | Generic error (bad arguments, etc.) | | 2 | No API key configured | | 3 | Invalid API key (401) | | 4 | Plan does not include resource (403) | | 5 | Not found (404) | | 6 | Rate limit exceeded (429) | | 7 | Other API error (5xx) |

Useful for scripting.

Built on

License

MIT © TCG Price Lookup