Response Format

TCG Price Lookup API के JSON response structure, pagination और data types का complete reference।


Basic Response Structure

सभी API responses एक consistent JSON structure रखते हैं:

{
  "data": [...],      // card objects की array
  "total": 150,       // matched results की total count
  "limit": 20,        // returned results की count
  "offset": 0,        // pagination offset
  "game": "pokemon"   // game context
}

Card Object

{
  "id": "pokemon-sv4-charizard-ex-006",
  "name": "Charizard ex",
  "game": "pokemon",
  "number": "006",
  "rarity": "Special Illustration Rare",
  "foil": false,
  "set": {
    "id": "sv4",
    "name": "Obsidian Flames",
    "code": "sv4",
    "releaseDate": "2023-08-11",
    "totalCards": 230
  },
  "images": {
    "small": "https://cdn.tcgpricelookup.com/images/pokemon/sv4/006_small.jpg",
    "large": "https://cdn.tcgpricelookup.com/images/pokemon/sv4/006_large.jpg"
  },
  "prices": {
    "nearMint": {
      "market": 285.00,
      "tcgplayer": 280.00,
      "ebay": 290.00,
      "low": 250.00,
      "high": 350.00
    },
    "lightlyPlayed": {
      "market": 240.00,
      "tcgplayer": 235.00,
      "ebay": 245.00
    },
    "moderatelyPlayed": { "market": 200.00 },
    "heavilyPlayed": { "market": 160.00 },
    "damaged": { "market": 100.00 }
  },
  "updatedAt": "2026-04-10T14:32:00Z"
}

Conditions

ConditionDescription
nearMintNear Mint — कोई visible wear नहीं
lightlyPlayedLightly Played — minor wear
moderatelyPlayedModerately Played — noticeable wear
heavilyPlayedHeavily Played — significant damage
damagedDamaged — severe damage

Graded Card Object (Trader plan या उससे ऊपर)

{
  "id": "pokemon-base1-4",
  "graded": {
    "psa": {
      "10": { "market": 12000.00, "population": 128 },
      "9": { "market": 3500.00, "population": 342 },
      "8": { "market": 1200.00 }
    },
    "bgs": {
      "10": { "market": 25000.00 },
      "9.5": { "market": 8000.00 },
      "9": { "market": 4000.00 }
    },
    "cgc": {
      "10": { "market": 5000.00 },
      "9.5": { "market": 2500.00 }
    }
  }
}

Pagination

Large result sets के लिए limit और offset parameters उपयोग करें:

// पहला page
const page1 = await tcg.search('charizard', { limit: 20, offset: 0 });

// अगला page
const page2 = await tcg.search('charizard', { limit: 20, offset: 20 });

// Total pages calculate करें
const totalPages = Math.ceil(page1.total / 20);

Price Units

सभी prices US Dollars (USD) में floating point numbers हैं:

"market": 285.00  // $285.00 USD