SDK et intégration LLM

SDK officiels Python et TypeScript pour l'API PkmnPrices, ainsi qu'un schéma OpenAPI lisible par machine et un prompt système pour les agents de code.

SDK

SDK officiels pour JavaScript / TypeScript et Python. Des méthodes typées pour chaque endpoint, l'authentification par clé API gérée pour vous, des itérateurs à pagination automatique et l'autocomplétion dans l'éditeur sur les paramètres et les réponses.

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);

Intégration LLM

Indiquez à vos agents de code /llm.md pour une référence Markdown concise, ou /openapi.json pour le schéma complet lisible par machine. Le prompt ci-dessous s'insère dans le prompt système d'un LLM pour qu'il sache interroger les prix des cartes, filtrer par extension ou par état et analyser correctement les réponses.

Prompt système
Chargement…