SPB Git forge

spb/rareindex

Public
54commits 1branches 0releases
7.1 MBsize
maindefault branch
10 days agolast push
TypeScript 61.9% HTML 37.2% SQL 0.7%
2.3 KB · 61 lines json
Raw Blame History
1{2  "raw": {3    "url": "https://www.cardtrader.com/cards/89",4    "externalId": "89",5    "kind": "catalog_item",6    "engine": "api",7    "fetchedAt": "2026-09-08T03:00:00.000Z",8    "payload": {9      "game": { "id": 1, "name": "Magic", "display_name": "Magic: the Gathering" },10      "categorySlug": "magic_the_gathering",11      "expansion": { "id": 8, "game_id": 1, "code": "tm10", "name": "Magic 2010 Tokens" },12      "blueprint": {13        "id": 89,14        "name": "Beast // Plant",15        "version": null,16        "game_id": 1,17        "category_id": 2,18        "expansion_id": 8,19        "image_url": null,20        "scryfall_id": "381854e2-7369-473e-a604-4dd7c010fc89",21        "card_market_ids": [362677],22        "tcg_player_id": null,23        "fixed_properties": null24      },25      "products": [26        {27          "id": 105234025,28          "blueprint_id": 89,29          "name_en": "Beast // Plant",30          "quantity": 1,31          "price": { "cents": 390, "currency": "EUR" },32          "description": null,33          "properties_hash": { "condition": "Near Mint", "mtg_language": "it", "mtg_foil": false, "signed": true, "altered": false },34          "expansion": { "id": 8, "code": "tm10", "name_en": "Magic 2010 Tokens" },35          "user": { "id": 51242, "username": "seller", "can_sell_via_hub": false, "country_code": "DE", "user_type": "normal" },36          "graded": true,37          "on_vacation": true,38          "bundle_size": 439        },40        {41          "id": 105234026,42          "blueprint_id": 89,43          "name_en": "Beast // Plant",44          "quantity": 1,45          "price": { "cents": 0, "currency": "EUR" },46          "properties_hash": { "condition": "Poor" },47          "graded": false,48          "on_vacation": false,49          "bundle_size": 150        }51      ]52    }53  },54  "expect": {55    "count": 2,56    "kinds": ["catalog_item", "listing"],57    "requiredFields": ["attributes.set", "attributes.name"]58  },59  "note": "NOT a live capture (gated: CARDTRADER_API_TOKEN missing). Blueprint 89 'Beast // Plant' and the Money/cart example ids come from the official docs; the offer rows exercise edge cases described in the Products structure (graded=true, on_vacation=true, bundle_size 4, signed, Italian language, and a zero-price row that must be dropped)."60}61