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%
3.3 KB · 65 lines json
Raw Blame History
1{2  "raw": {3    "url": "https://www.cardtrader.com/cards/10050",4    "externalId": "10050",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": 92, "game_id": 1, "code": "ptkdf", "name": "Tarkir Dragonfury" },12      "blueprint": {13        "id": 10050,14        "name": "Dragon Fodder",15        "version": null,16        "game_id": 1,17        "category_id": 1,18        "expansion_id": 92,19        "image_url": "/uploads/blueprints/image/10050/show_dragon-fodder.jpg",20        "scryfall_id": "381854e2-7369-473e-a604-4dd7c010fc89",21        "card_market_ids": [362677],22        "tcg_player_id": null,23        "fixed_properties": { "collector_number": "247", "mtg_rarity": "Common", "cmc": "0.0", "mtg_card_colors": "" }24      },25      "products": [26        {27          "id": 101862104,28          "blueprint_id": 10050,29          "name_en": "Dragon Fodder",30          "quantity": 1,31          "price": { "cents": 2, "currency": "USD" },32          "description": "protection from postofficer",33          "properties_hash": { "condition": "Moderately Played", "signed": false, "mtg_foil": false, "mtg_language": "en", "altered": false },34          "expansion": { "id": 92, "code": "ptkdf", "name_en": "Tarkir Dragonfury" },35          "user": { "id": 41687, "username": "username", "can_sell_via_hub": true, "country_code": "FI", "user_type": "normal", "max_sellable_in24h_quantity": null },36          "graded": false,37          "on_vacation": false,38          "bundle_size": 139        },40        {41          "id": 108455069,42          "blueprint_id": 10050,43          "name_en": "Dragon Fodder",44          "quantity": 4,45          "price": { "cents": 10, "currency": "EUR" },46          "description": "",47          "properties_hash": { "condition": "Near Mint", "mtg_card_colors": "", "tournament_legal": true, "collector_number": "247", "cmc": "0.0", "signed": false, "mtg_foil": true, "mtg_language": "en", "altered": false, "mtg_rarity": "Common" },48          "expansion": { "id": 92, "code": "ptkdf", "name_en": "Tarkir Dragonfury" },49          "user": { "id": 34089, "username": "CT Connect", "can_sell_via_hub": true, "country_code": "IT", "user_type": "professional", "max_sellable_in24h_quantity": null },50          "graded": false,51          "on_vacation": false,52          "bundle_size": 153        }54      ]55    }56  },57  "expect": {58    "count": 3,59    "kinds": ["catalog_item", "listing"],60    "requiredFields": ["attributes.set", "attributes.identifiers.cardtrader_blueprint_id"],61    "first": { "kind": "catalog_item", "attributes.identifiers.scryfall_id": "381854e2-7369-473e-a604-4dd7c010fc89", "attributes.identifiers.cardmarket_id": "362677", "attributes.number": "247" }62  },63  "note": "NOT a live capture: no CARDTRADER_API_TOKEN in this environment. Assembled verbatim from the example responses in the official API documentation (https://www.cardtrader.com/docs/api/full: Expansion object, Blueprint object example (ids/scryfall/card_market_ids), 'Structure of Products response' example 101862104 and the inventory example 108455069/properties_hash with mtg_rarity). Replace with a live capture once a token exists."64}65