@pokemontcgapi/sdk 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -13
- package/dist/types.d.ts +14 -6
- package/dist/types.d.ts.map +1 -1
- package/package.json +15 -5
package/README.md
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
# @pokemontcgapi/sdk
|
|
2
2
|
|
|
3
|
-
TypeScript client for the Pokémon TCG API at [pokemontcgapi.com](https://pokemontcgapi.com)
|
|
4
|
-
|
|
5
|
-
Simplified Chinese
|
|
6
|
-
their source, basis, grade and sample size.
|
|
3
|
+
TypeScript client for the Pokémon TCG API at [pokemontcgapi.com](https://pokemontcgapi.com): cards,
|
|
4
|
+
sets, illustrators, the reference vocabularies and photo recognition, across three print lines,
|
|
5
|
+
international, Japanese and Simplified Chinese, with card names in eight locales, images, and prices
|
|
6
|
+
that state their source, basis, grade and sample size. The current counts are live at
|
|
7
|
+
[/v1/status](https://api.pokemontcgapi.com/v1/status).
|
|
8
|
+
|
|
9
|
+
**Sealed products and the `/v1/changes` feed have no client here yet.** The API serves both; this
|
|
10
|
+
package does not wrap them, so reach them over plain REST until it does.
|
|
7
11
|
|
|
8
12
|
**Zero runtime dependencies.** Uses the global `fetch`, so it runs unchanged on Node ≥ 20, Bun, Deno,
|
|
9
13
|
Cloudflare Workers and in the browser.
|
|
@@ -12,6 +16,21 @@ Unofficial. Not produced, endorsed, supported by or affiliated with Nintendo, Cr
|
|
|
12
16
|
GAME FREAK inc. or The Pokémon Company International. Pokémon and all related marks are trademarks of
|
|
13
17
|
their respective owners.
|
|
14
18
|
|
|
19
|
+
## Get a key
|
|
20
|
+
|
|
21
|
+
One call, no dashboard and no card:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
curl -s -X POST "https://api.pokemontcgapi.com/v1/accounts/free" \
|
|
25
|
+
-H "Content-Type: application/json" \
|
|
26
|
+
-H "Idempotency-Key: $(uuidgen)" \
|
|
27
|
+
-d '{"email":"you@example.com"}'
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The key comes back once, in `data.key.secret`. Confirming the address we email raises the trial from
|
|
31
|
+
80 to 800 credits, and the trial ends 30 days after signup. Paid plans start at 29 EUR a month:
|
|
32
|
+
[pricing](https://pokemontcgapi.com/pricing).
|
|
33
|
+
|
|
15
34
|
## Install
|
|
16
35
|
|
|
17
36
|
```bash
|
|
@@ -27,7 +46,7 @@ const client = new PokemonTcgApi({ apiKey: process.env.PTCG_API_KEY });
|
|
|
27
46
|
|
|
28
47
|
const card = await client.cards.get('base1-4', { include: ['prices'] });
|
|
29
48
|
console.log(card.id, card.name, card.index_eur);
|
|
30
|
-
// bs-4 Charizard
|
|
49
|
+
// bs-4 Charizard 523.76 ← the index on 16 September 2026; it moves, yours will differ
|
|
31
50
|
```
|
|
32
51
|
|
|
33
52
|
`base1-4` and `bs-4` both resolve: the id is the printed coordinate — set code, dash, collector
|
|
@@ -54,6 +73,7 @@ mistake rather than a choice.
|
|
|
54
73
|
|
|
55
74
|
```ts
|
|
56
75
|
const { data, requested, found } = await client.cards.batch(['bs-4', 'sv3-001'], {
|
|
76
|
+
include: ['index'], // index_eur on list and batch rows is opt-in: 1 credit per 50 cards
|
|
57
77
|
select: ['id', 'name', 'index_eur'],
|
|
58
78
|
});
|
|
59
79
|
```
|
|
@@ -68,7 +88,9 @@ console.log(page.data[0]?.name); // タマタマ
|
|
|
68
88
|
```
|
|
69
89
|
|
|
70
90
|
`lang` replaces the `name` field itself and falls back to English where a translation is missing.
|
|
71
|
-
Locales: `en
|
|
91
|
+
Locales, with the rows each one actually has on 16 September 2026: `en` 57,421, `fr` 42,858,
|
|
92
|
+
`de` 42,604, `ja` 27,230, `it` 21,644, `es` 21,003, `pt` 13,822, `zh` 3,492. A thin locale answers
|
|
93
|
+
mostly in English, because the fallback is per card and not per request.
|
|
72
94
|
|
|
73
95
|
### Conditional requests are free
|
|
74
96
|
|
|
@@ -76,11 +98,16 @@ Locales: `en`, `ja`, `fr`, `de`, `es`, `it`.
|
|
|
76
98
|
const client = new PokemonTcgApi({ cache: 'etag' });
|
|
77
99
|
```
|
|
78
100
|
|
|
79
|
-
Every collection carries
|
|
80
|
-
|
|
101
|
+
Every collection carries an ETag. We compute it strong, from the body; the edge rewrites it weak with
|
|
102
|
+
an encoding suffix when it compresses, so what you receive looks like `W/"…-gzip"` and you send back
|
|
103
|
+
exactly that. With the cache on, the client stores it and replays a `304` without a body, and a `304`
|
|
104
|
+
consumes no quota. A mirror that re-syncs often pays only for what changed.
|
|
81
105
|
|
|
82
106
|
### A photo instead of an id
|
|
83
107
|
|
|
108
|
+
**Included from the Growth plan up.** On a trial or a Developer key the call answers `403
|
|
109
|
+
PLAN_REQUIRED` with `details.min_plan`, before reading the image and without spending credits.
|
|
110
|
+
|
|
84
111
|
```ts
|
|
85
112
|
const { data } = await client.vision.identify(file, { set: 'sv3' });
|
|
86
113
|
|
|
@@ -133,7 +160,8 @@ Stated up front so you find out here rather than three days into an integration:
|
|
|
133
160
|
carry no data.
|
|
134
161
|
- **Card game text is English, and uneven.** `attacks`, `abilities`, `weaknesses`, `resistances`,
|
|
135
162
|
`subtypes`, `retreat_cost`, `rules` and `flavor_text` carry rows since 3 September 2026, on the
|
|
136
|
-
20,725 Western printings
|
|
163
|
+
20,725 Western printings. Measured on 16 September 2026 against 57,450 cards: `attacks` on 29.9% of
|
|
164
|
+
the whole catalogue and 82.9% of the Western part, `subtypes` 35.0%, `abilities` 7.0%.
|
|
137
165
|
Japanese and Chinese printings carry none. The types in this package keep them nullable and say
|
|
138
166
|
the measured rate on each field, so the compiler makes you handle the half that is absent.
|
|
139
167
|
- **No format legalities.** `legalities` is empty for every card. If you are building a deck
|
|
@@ -147,15 +175,31 @@ image, marketplace ids, six-language names — and prices.
|
|
|
147
175
|
```ts
|
|
148
176
|
const card = await client.cards.get('base1-4', { include: ['prices'] });
|
|
149
177
|
for (const price of card.prices ?? []) {
|
|
150
|
-
console.log(price.source, price.basis, price.
|
|
178
|
+
console.log(price.source, price.basis, price.amount, price.currency, price.as_of, price.sample_n);
|
|
151
179
|
}
|
|
152
180
|
```
|
|
153
181
|
|
|
154
182
|
There is no printing filter: first edition, holofoil and graded rows come back together, so read
|
|
155
183
|
`printing`, `condition` and `grading` per row. `basis` separates `GUIDE` (published upstream) from
|
|
156
|
-
`DERIVED` (computed by us). `PTCG_INDEX` is a composite index in EUR carrying `sample_n`, and
|
|
157
|
-
|
|
158
|
-
|
|
184
|
+
`DERIVED` (computed by us). `PTCG_INDEX` is a composite index in EUR carrying `sample_n`, and the same
|
|
185
|
+
number sits on the card row as `index_eur` wherever we have enough observations to compute one: 51,636
|
|
186
|
+
cards of 57,450 on 16 September 2026, so treat it as nullable. On a list or batch it comes with `include: ['index']`
|
|
187
|
+
(1 credit per 50 rows), so a list still has a comparable number without a second request per card.
|
|
188
|
+
|
|
189
|
+
What your plan withholds is named rather than hidden, but it is named in three different places, so
|
|
190
|
+
read the one that matches the call you made:
|
|
191
|
+
|
|
192
|
+
| call | where the exclusions are |
|
|
193
|
+
|---|---|
|
|
194
|
+
| `GET /v1/cards/{id}/prices` | `meta.withheld` |
|
|
195
|
+
| `GET /v1/cards/{id}?include=prices` | the `X-Plan-Withheld` response header |
|
|
196
|
+
| `GET /v1/cards/batch` | a top-level `withheld` field |
|
|
197
|
+
|
|
198
|
+
The values are `graded` and `non_english_locales`: a trial key gets both, Developer keeps `graded`,
|
|
199
|
+
and from Growth up nothing is withheld, in which case the field is absent rather than an empty array.
|
|
200
|
+
Read it before concluding that a card has no graded observations: it may be your plan, not the
|
|
201
|
+
catalogue. Prices also carry their own `locale`, and a card read with `include: ['prices']` returns
|
|
202
|
+
every locale your plan allows, so the currency does not tell you the language.
|
|
159
203
|
|
|
160
204
|
## Also available
|
|
161
205
|
|
package/dist/types.d.ts
CHANGED
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
* Regola: quando l'API smette di essere vuota su un campo, si toglie la nota.
|
|
11
11
|
* Non prima.
|
|
12
12
|
*/
|
|
13
|
-
export type Locale = 'en' | '
|
|
13
|
+
export type Locale = 'en' | 'fr' | 'de' | 'ja' | 'it' | 'es' | 'pt' | 'zh';
|
|
14
14
|
/**
|
|
15
15
|
* Regione di stampa. `KR` esiste nello schema del server ma al 2026-08-27 non
|
|
16
16
|
* corrisponde ad alcun set: filtrarci sopra restituisce una pagina vuota, non
|
|
17
17
|
* un errore.
|
|
18
18
|
*/
|
|
19
19
|
export type PrintRegion = 'WEST' | 'JP' | 'CN' | 'KR';
|
|
20
|
-
export type PriceSource = 'TCGPLAYER' | 'CARDMARKET' | 'CARDTRADER'
|
|
21
|
-
/** Vendite concluse su eBay
|
|
22
|
-
| '
|
|
20
|
+
export type PriceSource = 'TCGPLAYER' | 'PRICECHARTING' | 'CARDMARKET' | 'CARDTRADER'
|
|
21
|
+
/** Vendite concluse su eBay. `EBAY_SOLD` non e' mai esistito: il valore ammesso e' `EBAY`. */
|
|
22
|
+
| 'EBAY' | 'PTCG_INDEX' | 'COMMUNITY';
|
|
23
23
|
/** `DERIVED` e' calcolato da noi; `GUIDE` e' un valore pubblicato a monte. */
|
|
24
24
|
export type PriceBasis = 'GUIDE' | 'DERIVED' | 'SOLD' | 'ASKING';
|
|
25
25
|
export interface Grading {
|
|
@@ -30,7 +30,15 @@ export interface Price {
|
|
|
30
30
|
readonly source: PriceSource | string;
|
|
31
31
|
readonly variant: string;
|
|
32
32
|
readonly basis: PriceBasis | string;
|
|
33
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Il numero, con la sua valuta nel campo fratello.
|
|
35
|
+
*
|
|
36
|
+
* Si chiamava `price` qui dentro mentre l'API risponde `amount` da quando le
|
|
37
|
+
* righe prezzo sono state riscritte: chi leggeva `quote.price` otteneva
|
|
38
|
+
* `undefined` con il compilatore che gli prometteva un `number`. Nessuno se
|
|
39
|
+
* ne era accorto perche' sulla prova l'array `quotes` torna vuoto.
|
|
40
|
+
*/
|
|
41
|
+
readonly amount: number;
|
|
34
42
|
readonly currency: string;
|
|
35
43
|
readonly locale: string | null;
|
|
36
44
|
readonly condition: string | null;
|
|
@@ -169,7 +177,7 @@ export interface BatchResult<T> {
|
|
|
169
177
|
readonly requested: number;
|
|
170
178
|
readonly found: number;
|
|
171
179
|
}
|
|
172
|
-
export type CardInclude = 'prices' | 'legalities' | 'translations' | 'images' | 'set' | 'artist';
|
|
180
|
+
export type CardInclude = 'index' | 'prices' | 'legalities' | 'translations' | 'images' | 'set' | 'artist';
|
|
173
181
|
export interface ListParams {
|
|
174
182
|
/**
|
|
175
183
|
* Grammatica di ricerca. **I nomi dei campi sono camelCase e puntati**
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH,MAAM,MAAM,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3E;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtD,MAAM,MAAM,WAAW,GACnB,WAAW,GACX,eAAe,GACf,YAAY,GACZ,YAAY;AACd,8FAA8F;GAC5F,MAAM,GACN,YAAY,GACZ,WAAW,CAAC;AAEhB,8EAA8E;AAC9E,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEjE,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAA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MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,SAAS,eAAe,EAAE,CAAC;CACjD;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC;;;;;OAKG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,+BAA+B;IAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,iEAAiE;IACjE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,uDAAuD;IACvD,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pokemontcgapi/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "TypeScript client for the pokemontcgapi.com Pokémon TCG API: cards, sets, artists, images and prices with stated provenance.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"engines": {
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=20"
|
|
9
|
+
},
|
|
8
10
|
"sideEffects": false,
|
|
9
11
|
"main": "./dist/index.js",
|
|
10
12
|
"types": "./dist/index.d.ts",
|
|
@@ -14,7 +16,10 @@
|
|
|
14
16
|
"default": "./dist/index.js"
|
|
15
17
|
}
|
|
16
18
|
},
|
|
17
|
-
"files": [
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
18
23
|
"keywords": [
|
|
19
24
|
"pokemon",
|
|
20
25
|
"pokemon-tcg",
|
|
@@ -25,9 +30,14 @@
|
|
|
25
30
|
"card-prices",
|
|
26
31
|
"japanese-cards"
|
|
27
32
|
],
|
|
28
|
-
"repository": {
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "git+https://github.com/pokemontcgapi/sdk-typescript.git"
|
|
36
|
+
},
|
|
29
37
|
"homepage": "https://pokemontcgapi.com/sdk",
|
|
30
|
-
"bugs": {
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/pokemontcgapi/sdk-typescript/issues"
|
|
40
|
+
},
|
|
31
41
|
"scripts": {
|
|
32
42
|
"build": "tsc -p tsconfig.json",
|
|
33
43
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|