Skip to content

Releases: TCG-Price-Lookup/tcglookup-js

v0.1.0 — Initial release

Choose a tag to compare

@devnerdly devnerdly released this 10 Apr 00:37

Official JavaScript / TypeScript SDK for the TCG Price Lookup API.

What's in the box

  • Fully typed against the production API response shapes
  • Zero runtime dependencies, native fetch, ESM + CJS
  • Works in Node 18+, browsers, Cloudflare Workers, Bun, Deno
  • Auto-chunks batch ID lookups beyond the backend's 20-per-request cap
  • Typed errors (AuthenticationError, PlanAccessError, RateLimitError, …)
  • Optional retry-with-backoff for 429 and 5xx responses

Install

npm install @tcgpricelookup/sdk

Quickstart

import { TcgLookupClient } from '@tcgpricelookup/sdk';

const client = new TcgLookupClient({ apiKey: 'tlk_live_...' });
const results = await client.cards.search({ q: 'charizard', game: 'pokemon', limit: 5 });

Get a free API key at tcgpricelookup.com/tcg-api.

Sister SDKs

Full ecosystem index: awesome-tcg