TypeScript npm

JavaScript & TypeScript SDK

SDK zonder afhankelijkheden die native fetch gebruikt. ESM + CJS dual output, volledige TypeScript-typedefinities inbegrepen.

Installatie npm
$ npm install @tcgpricelookup/sdk

Belangrijkste functies

  • ✓ 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
Gebruiksvoorbeeld
import { TCGLookup } from 'tcglookup';

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

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

Begin met bouwen met de TCG API

Haal uw gratis API-sleutel op en begin binnen enkele minuten kaartprijzen op te vragen.