SDKs und LLM-Integration

Offizielle Python- und TypeScript-SDKs für die PkmnPrices-API, dazu ein maschinenlesbares OpenAPI-Schema und ein System-Prompt für Coding-Agents.

SDKs

Offizielle SDKs für JavaScript / TypeScript und Python. Typisierte Methoden für jeden Endpoint, Authentifizierung per API-Schlüssel ohne eigenen Aufwand, automatisch paginierende Iteratoren und Autovervollständigung im Editor für Parameter und Antworten.

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 response
const { data } = await client.cards.list({
name: "charizard",
per_page: 5
});
// Fetch one card with TCGplayer (USD) or Cardmarket (EUR) prices
const charizard = await client.cards.get(data[0].id, {
currency: "usd"
});
// Every row has one market_price for its exact condition and printing variant
console.log(charizard.prices[0].market_price); // 285
// Cursor-paginated Cardmarket offers are language-matched to the card
const 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 filter
const box = await client.sealed.get(5678, { currency: "eur" });
console.log(box.cardmarket_url, box.prices[0]?.market_price);

LLM-Integration

Verweis Coding-Agents auf /llm.md für eine knappe Markdown-Referenz oder auf /openapi.json für das vollständige maschinenlesbare Schema. Der Prompt unten passt direkt in den System-Prompt eines LLM, damit es weiß, wie es Kartenpreise abfragt, nach Set oder Zustand filtert und Antworten richtig auswertet.

System-Prompt
Wird geladen…