TypeScript npm

JavaScript & TypeScript SDK

SDK ไม่มี dependency ใช้ native fetch รองรับ ESM + CJS dual output พร้อม TypeScript type definition ครบถ้วน

ติดตั้ง npm
$ npm install @tcgpricelookup/sdk

ฟีเจอร์หลัก

  • 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
ตัวอย่างการใช้งาน
import { TCGLookup } from 'tcglookup';

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

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

เริ่มสร้างด้วย TCG API

รับคีย์ API ฟรีและเริ่มค้นหาราคาการ์ดภายในไม่กี่นาที