TypeScript npm

JavaScript & TypeScript SDK

SDK zero dependency menggunakan fetch native. Output dual ESM + CJS, definisi tipe TypeScript lengkap.

Instalasi npm
$ npm install @tcgpricelookup/sdk

Fitur Utama

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

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

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

Mulai membangun dengan TCG API

Dapatkan kunci API gratis Anda dan mulai mengkueri harga kartu dalam hitungan menit.