Collectibles Text Search

This page describes API of Collectibles Text Search service. With this service you can search through our extensive database of collectible items and their pricing information using text queries. The API provides two main endpoints: one for searching the collectibles catalog and another for searching pricing data.

Currently these endpoints are supported:

https://api.ximilar.com/collectibles/text/v2/tcg/list        (for searching TCG catalog data)
https://api.ximilar.com/collectibles/text/v2/tcg/pricing     (for searching TCG pricing data)

POST/text/v2/tcg/list

This endpoint allows you to search through our comprehensive catalog of collectible items using text queries. You can search by card names, set names, series, or any other textual information related to collectibles.

The service covers various collectible categories including Pokemon, Yu-Gi-Oh!, Magic The Gathering, One Piece, Lorcana, and many other trading card games (see our Taxonomy).

Required attributes

  • Name
    query_record
    Type
    dict
    Description

    A record containing the search query with _text_data field specifying the text to search for.

Optional attributes

  • Name
    page
    Type
    integer
    Default
    Default:1
    Description

    Page number for pagination (starts from 1).

  • Name
    size
    Type
    integer
    Default
    Default:10
    Max
    Maximum:20
    Description

    Number of results per page.

  • Name
    k
    Type
    integer
    Description

    Number of top results to consider for relevance ranking.

  • Name
    filter
    Type
    str
    Description

    String filter. Supported operators include: =, !=, >, >=, <, <=, EXISTS.

Returns

HTTP error code 2XX, if the method was OK and other HTTP error code, if the method failed. Body of the response is a JSON object with the following fields:

  • Name
    answer_records
    Type
    array
    Description

    Array of collectible items matching the search query, each containing detailed information about the item including name, set, series, rarity, and other attributes.

  • Name
    answer_count
    Type
    integer
    Description

    Total number of items matching the search query across all pages.

  • Name
    page
    Type
    integer
    Description

    Current page number.

  • Name
    totalPages
    Type
    integer
    Description

    Number of total pages.

Request

POST
/text/v2/tcg/list
curl --location 'https://api.ximilar.com/collectibles/text/v2/tcg/list' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token __API_TOKEN__' \
--data '{
  "query_record": {
    "_text_data": "Pikachu ex 247 Surging Sparks"
  },
  "page": 1,
  "size": 10,
  "filter": "lang = 'en'"
}'

Response

{
  "answer_count": 571,
  "answer_records": [
    {
      "Subcategory": "Pokemon",
      "_id": "eb863290-c435-4b48-9ea5-ae3dc73fec4e",
      "card_number": "247",
      "lang": "en",
      "name": "Pikachu ex",
      "rarity": "Hyper Rare",
      "series": "Scarlet & Violet",
      "set": "Surging Sparks",
      "set_code": "SSP",
      "year": 2024
    },
    {
      "Subcategory": "Pokemon",
      "_id": "bc8f12eb-894e-46bc-ae81-48f2aff424fa",
      "card_number": "057",
      "lang": "en",
      "name": "Pikachu ex",
      "rarity": "Double Rare",
      "series": "Scarlet & Violet",
      "set": "Surging Sparks",
      "set_code": "SSP",
      "year": 2024
    },
    {
      "Subcategory": "Pokemon",
      "_id": "2bc0df4a-3d2c-47fa-a3d7-688add47a4fa",
      "card_number": "179",
      "lang": "en",
      "name": "Pikachu ex",
      "rarity": "Hyper Rare",
      "series": "Scarlet & Violet Series",
      "set": "Prismatic Evolutions",
      "set_code": "PRE",
      "year": 2025
    },
    {
      "Subcategory": "Pokemon",
      "_id": "358b4d8c-4f7f-471a-b2b9-5ef2c942e5bb",
      "card_number": "219",
      "lang": "en",
      "name": "Pikachu ex",
      "rarity": "Ultra Rare",
      "series": "Scarlet & Violet",
      "set": "Surging Sparks",
      "set_code": "SSP",
      "year": 2024
    },
    ...
  ],
  "page": 1,
  "query_records": [
    "Pikachu ex 247 Surging Sparks"
  ],
  "size": 10,
  "statistics": {
    "OperationTime": 718
  },
  "totalPages": 58
}

Available Filter Fields

When using the filter parameter in the pricing endpoint, you can filter by the following fields:

  • Subcategory: Pokemon, Magic The Gathering, ...
  • lang: language (jp, en, zh_TW, zh_CN)
  • set_code: set code of the game (string)
  • year: numerical value (year of release)
  • card_number: string that represents card number

Filter Examples

"Subcategory = 'Magic The Gathering'"
"set_code = 'BW1'"
"lang = 'jp'"
"card_number = '247'"
"year < 2020"

The whole request with filter:

cURL

  curl --location 'https://api.ximilar.com/collectibles/text/v2/tcg/list' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Token __API_TOKEN__' \
  --data '{
    "query_record": {
      "_text_data": "Snow"
    },
    "filter": "Subcategory = 'Magic The Gathering'"
    "page": 1,
    "size": 10
  }'

POST/text/v2/tcg/pricing

This endpoint allows you to search through pricing data for TCG card items using text queries. You can find current market prices, historical sales data for TCGs.

The pricing data includes information from multiple sources including eBay, TCGPlayer, and other marketplaces, providing comprehensive market insights for collectors and traders.

Required attributes

  • Name
    query_record
    Type
    dict
    Description

    A record containing the search query with _text_data field specifying the text to search for.

Optional attributes

  • Name
    page
    Type
    integer
    Default
    Default:1
    Description

    Page number for pagination (starts from 1).

  • Name
    size
    Type
    integer
    Default
    Default:10
    Max
    Maximum:20
    Description

    Number of results per page.

  • Name
    k
    Type
    integer
    Description

    Number of top results to consider for relevance ranking.

  • Name
    filter
    Type
    str
    Description

    String filter. Supported operators include: =, !=, >, >=, <, <=, EXISTS.

Returns

HTTP error code 2XX, if the method was OK and other HTTP error code, if the method failed. Body of the response is a JSON object with the following fields:

  • Name
    answer_records
    Type
    array
    Description

    Array of collectible items matching the search query, each containing detailed information about the item including name, set, series, rarity, and other attributes.

  • Name
    answer_count
    Type
    integer
    Description

    Total number of items matching the search query across all pages.

  • Name
    page
    Type
    integer
    Description

    Current page number.

  • Name
    totalPages
    Type
    integer
    Description

    Number of total pages.

Request

POST
/text/v2/tcg/pricing
curl --location 'https://api.ximilar.com/collectibles/text/v2/tcg/pricing' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token __API_TOKEN__' \
--data '{
  "query_record": {
    "_text_data": "pikachu ex 57"
  },
  "page": 1,
  "size": 20,
  "k": 10,
  "filter": "source = 'eBay' AND country_code = 'US'"
}'

Response

{
  "answer_count": 23,
  "answer_records": [
    {
      "Subcategory": "Pokemon",
      "_id": "f8f5e9a3-58d8-4ab3-9301-7dfd6ee11cdf",
      "country_code": "US",
      "currency": "USD",
      "date_of_creation": "2025-03-18",
      "img_link": "https://i.ebayimg.com/images/g/FtMAAOSw-x5n2YIG/s-l1600.jpg",
      "item_id": "v1|226652678923|0",
      "name": "Pokémon TCG Pikachu EX Power Keepers 57/108 Reverse Holo Common",
      "price": 29.95,
      "product_id": "9cd99375-fc93-4e3f-8a44-09475a31570e",
      "source": "eBay"
    },
    {
      "Subcategory": "Pokemon",
      "_id": "cb1c30b8-4282-4bd3-b134-5789b0eaedf0",
      "country_code": "US",
      "currency": "USD",
      "date_of_creation": "2024-11-23",
      "img_link": "https://i.ebayimg.com/images/g/-uMAAOSw~hhnQXE3/s-l1600.jpg",
      "item_id": "v1|375811108331|0",
      "name": "Pikachu 57/108 EX Power Keepers Non Holo 2007 Pokémon TCG NM",
      "price": 10.39,
      "product_id": "9cd99375-fc93-4e3f-8a44-09475a31570e",
      "source": "eBay"
    },
    ...
  ],
  "page": 1,
  "query_records": [
    "pikachu ex 57"
  ],
  "size": 10,
  "statistics": {
    "OperationTime": 4
  },
  "totalPages": 3
}

Available Filter Fields

When using the filter parameter in the pricing endpoint, you can filter by the following fields:

  • Subcategory: Pokemon, Magic The Gathering, ...
  • country_code: Country code (e.g., 'US', 'JP', )
  • price: Price value (supports comparison operators)
  • source: Data source (e.g., 'eBay', 'TCGPlayer')
  • grade_company: Grading company (e.g., 'PSA', 'BGS', 'CGC')
  • grade: Grade value (e.g., '10', '9', '8')
  • date_of_sale: Sale date (YYYY-MM-DD format)
  • date_of_creation: Date of the submission of the item
  • product_id: ID from our product catalog

Filter Examples

"Subcategory = 'Pokemon'"
"source = 'eBay' AND country_code = 'US'"
"grade_company = 'PSA' AND grade >= '9'"
"price > 90 AND price < 100"
"date_of_sale >= '2024-01-01'"
"product_id = '9cd99375-fc93-4e3f-8a44-09475a31570e'"

Was this page helpful?