Search cards by name, number and set

GET /api/v1/search finds products by name and card number in one query, across all twelve games or one. Pass what a person typed; interpreted in the answer says how Cardspine read it.

Request and response
curl -G "https://api.cardspine.com/api/v1/search" \
  -H "X-Api-Key: $CARDSPINE_KEY" \
  --data-urlencode "q=charizard 199/165" \
  --data-urlencode "game=pokemon"

# Response
{
  "items": [
    {
      "tcgplayerProductId": 517045,
      "game": "pokemon",
      "kind": "single",
      "name": "Charizard ex",
      "number": "199",
      "printedTotal": 165,
      "rarity": "Special Illustration Rare",
      "variantLabel": null,
      "language": "en",
      "set": {
        "tcgplayerGroupId": 23237,
        "code": "MEW",
        "name": "SV: Scarlet & Violet 151",
        "releaseDate": "2023-09-22",
        "releaseDateEstimated": false
      },
      "presale": {
        "isPresale": false,
        "releasedOn": null
      },
      "links": {
        "image": "https://images.cardspine.com/product/517045/1000.jpg",
        "tcgplayer": "https://www.tcgplayer.com/product/517045"
      },
      "removedAt": null,
      "printings": []
    }
  ],
  "page": 1,
  "pageSize": 24,
  "hasMore": false,
  "total": {
    "value": 1,
    "exact": true
  },
  "counts": {
    "single": 1,
    "sealed": 0
  },
  "facets": {
    "sets": [
      {
        "tcgplayerGroupId": 23237,
        "code": "MEW",
        "name": "SV: Scarlet & Violet 151",
        "releaseDate": "2023-09-22",
        "releaseDateEstimated": false,
        "count": 1
      }
    ]
  },
  "interpreted": {
    "raw": "charizard 199/165",
    "name": "charizard",
    "number": "199",
    "printedTotal": 165,
    "numberKind": "fraction"
  },
  "catalog": {
    "asOf": "2026-11-01T09:00:00Z",
    "syncedAt": "2026-11-01T10:14:33Z"
  },
  "nextCursor": null
}

What you can type

  • A name, a card number, or both. Numbers such as 199/165, 111/298 or OP05-119 are read as card numbers.
  • Every word must appear in the product name, the set name or the set code.
  • Sealed shorthand in a Pokémon search is read as its words: etb, pc etb, upc and spc.
  • A bare number may be the card number or a word of a set or product name. Card-number matches come first.
  • The game is optional when the query has a card number or a name of three or more characters.

To see how a query is read before you write any code, try search without a key.

Narrow and sort

  • kind keeps singles or sealed product, and language keeps English or Japanese. When a kind finds nothing, counts still reports how many singles and sealed products match, so you can offer the other kind.
  • sets takes up to 20 TCGplayer group ids, and number and rarity restrict results to one card number or rarity.
  • release=upcoming keeps sets that are not out yet and presale products.
  • group=card returns one item per card, with every printing of it in printings.
  • sort is relevance by default, or name, newest or oldest set, or number.

Paging and cost

A page holds 1 to 100 results, 24 by default, and a search is charged its page size in products. A query reaches its first 1,000 results. To read one whole set past that, leave out q, name the set in sets and follow nextCursor. Search has its own per-minute limit, separate from lookups; see limits and errors.

Box contents in results

A sealed result carries the same contents as a lookup by id when they are known: the packs in a box, the boxes in a case, with each item’s product id, quantity and name. Use kind=sealed to keep only sealed product. The shape, and pricing a box by the pack.

Search picks

POST /api/v1/search/selections tells Cardspine which product a user picked from your results. Among results whose match is otherwise equal, products clients pick often come first. A single pick made within 10 minutes of a search that showed the product is linked to that search when it can be. Search records are kept 30 days, and an account can ask for search text and card numbers not to be stored. Picks count toward no request, search or product allowance. Picks from a Free plan key are accepted but not used for ranking.

Endpoint reference

Generated from the published OpenAPI document, Cardspine API v1. Paths are on https://api.cardspine.com. Download openapi.json

Search picks

POST/api/v1/search/selections

Reports that a user picked a product from your search results. Among results whose match is otherwise equal, Cardspine ranks products that clients pick often above the rest. Send productId, or productIds (at most 100) to backfill. Ids that name no product do not affect ranking. A single pick is linked to the search it came from when it can be; no user data is stored. Free-plan keys are accepted but their picks are not used for ranking, and productIds needs a paid plan. For ranking, a client counts at most 5 picks of one product a day and about 1,000 different products a day. It counts toward no request, search or product allowance and is limited per minute at your plan's search rate.

Parameters

productIdbody · integer · nullable
The TCGplayer product id the user picked.
productIdsbody · integer[] · nullable
Several picked products in one call, at most 100, for a backfill. Used together with productId when both are sent.
Request
curl "https://api.cardspine.com/api/v1/search/selections" \
  -H "X-Api-Key: $CARDSPINE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"productId":517045}'

Other responses

202
The pick was accepted. The response has no body.
400
Neither productId nor productIds was sent, or productIds holds more than 100 ids.
403
productIds was sent on the Free plan, which accepts one productId per call.
429
A request, product or monthly limit was exceeded. Retry after the interval in the Retry-After header.
401
As on every call; see Limits and errors.