TypeScript npm

JavaScript & TypeScript SDK

SDK ohne Abhängigkeiten mit nativem fetch. Dualer ESM + CJS-Output, vollständige TypeScript-Typdefinitionen.

Installation npm
$ npm install @tcgpricelookup/sdk

Hauptfunktionen

  • ✓ Zero dependencies
  • ✓ ESM and CommonJS support
  • ✓ Full TypeScript types
  • ✓ Works in Node.js 18+, browsers, Bun, Deno, Cloudflare Workers
  • ✓ Batch card lookups
  • ✓ Price history queries
Verwendungsbeispiel
import { TCGLookup } from 'tcglookup';

const tcg = new TCGLookup({ apiKey: 'your-api-key' });

const results = await tcg.search('charizard');
console.log(results);

Starten Sie mit der TCG API

Holen Sie sich Ihren kostenlosen API-Schlüssel und fragen Sie Kartenpreise in Minuten ab.