Card Search

Search Card Sets

Search for card sets with optional name and category filters.

Search the CardHedge database for sets by name and/or category. Useful for populating set dropdowns, browsing available sets, or finding specific product lines.

Parameters:

  • search: Optional text query matched against set names (e.g., "Topps Chrome", "Pokemon 151")
  • category: Optional category filter (e.g., "Baseball", "Basketball", "Pokemon", "Football")
  • count: Number of results to return (1-100, default: 25)

Response includes:

  • count: Number of sets returned
  • sets: Array of set objects with name, year, category, image, and 30-day sales volume

Example curl:

# Search by name
curl -X POST -H "X-API-Key: your-api-key-here" \
     -H "Content-Type: application/json" \
     -d '{
       "search": "Pokemon 151",
       "count": 10
     }' \
     "https://api.cardhedger.com/v1/cards/set-search"

# Filter by category
curl -X POST -H "X-API-Key: your-api-key-here" \
     -H "Content-Type: application/json" \
     -d '{
       "category": "Baseball",
       "count": 25
     }' \
     "https://api.cardhedger.com/v1/cards/set-search"

# Combined search + category
curl -X POST -H "X-API-Key: your-api-key-here" \
     -H "Content-Type: application/json" \
     -d '{
       "search": "Topps Chrome",
       "category": "Baseball",
       "count": 50
     }' \
     "https://api.cardhedger.com/v1/cards/set-search"

Returns matching sets with metadata and sales data.

post/v1/cards/set-search

Request body

searchstring nullable

Search query for set name

categorystring nullable

Filter by category (e.g., 'Baseball', 'Basketball', 'Pokemon')

countinteger

Number of results to return (1-100)

Response

Successful Response

countinteger required

Number of sets returned

Example response

{
  "count": 3,
  "sets": [
    {
      "30 Day Sales": 1250,
      "category": "Baseball",
      "description": "2023 Topps Chrome Baseball",
      "id": "1587446850514x224832321163624450",
      "image": "//942284f33c575895b4be9de571ca6e40.cdn.bubble.io/d112/f1724143874181x158765543979815900/crop_image",
      "name": "2023 Topps Chrome Baseball",
      "set_type": "Topps Chrome Baseball",
      "year": "2023"
    },
    {
      "30 Day Sales": 2340,
      "category": "Baseball",
      "description": "2024 Topps Chrome Baseball",
      "id": "1684286084852x189232814543430100",
      "image": "//942284f33c575895b4be9de571ca6e40.cdn.bubble.io/d112/f1724143874181x158765543979815901/crop_image",
      "name": "2024 Topps Chrome Baseball",
      "set_type": "Topps Chrome Baseball",
      "year": "2024"
    },
    {
      "30 Day Sales": 870,
      "category": "Baseball",
      "description": "2022 Topps Chrome Baseball",
      "id": "1699670576265x928796749151534600",
      "image": "//942284f33c575895b4be9de571ca6e40.cdn.bubble.io/d112/f1724143874181x158765543979815902/crop_image",
      "name": "2022 Topps Chrome Baseball",
      "set_type": "Topps Chrome Baseball",
      "year": "2022"
    }
  ]
}

Changes

No recorded changes to this endpoint across all 2 revisions of this API.