SDKs and LLM integration
Official Python and TypeScript SDKs for the PkmnPrices API, plus a machine-readable OpenAPI schema and a system prompt for coding agents.
SDKs
Official SDKs for JavaScript / TypeScript and Python. Typed methods for every endpoint, API-key auth handled for you, auto-paginating iterators, and editor autocomplete on params and responses.
npm install @pkmnprices/sdk
typescript
import { PkmnPrices } from "@pkmnprices/sdk";const client = new PkmnPrices({apiKey: process.env.PKMNPRICES_API_KEY});// Search cards — fully typed params and responseconst { data } = await client.cards.list({name: "charizard",per_page: 5});// Fetch one card with TCGplayer (USD) or Cardmarket (EUR) pricesconst charizard = await client.cards.get(data[0].id, {currency: "usd"});// Every row has one market_price for its exact condition and printing variantconsole.log(charizard.prices[0].market_price); // 285// Cursor-paginated Cardmarket offers are language-matched to the cardconst offers = await client.cards.listings.cardmarket(charizard.id, {condition: "Near Mint",variant: "Reverse Holo"});console.log(offers.data[0]?.seller, offers.data[0]?.price);// Sealed products support the same currency filterconst box = await client.sealed.get(5678, { currency: "eur" });console.log(box.cardmarket_url, box.prices[0]?.market_price);
LLM integration
Point coding agents at /llm.md for a concise markdown reference, or /openapi.json for the full machine-readable schema. The prompt below drops into an LLM system prompt so it knows how to query card prices, filter by set or condition, and parse responses correctly.
System prompt