Skip to main content
POST
/
search
/
hierarchy
/
{game}
/
{set}
Hierarchy by set
curl --request POST \
  --url https://api.managem.co.uk/search/hierarchy/{game}/{set} \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "<string>",
  "filters": [
    {}
  ],
  "facets": {
    "Game": [
      "<string>"
    ],
    "Product Type": [
      "<string>"
    ],
    "Rarity": [
      "<string>"
    ],
    "Series": [
      "<string>"
    ],
    "Set": [
      "<string>"
    ],
    "Illustrator": [
      "<string>"
    ],
    "Condition": [
      "<string>"
    ],
    "Grading": [
      "Graded"
    ],
    "Price": [
      "Under £1"
    ],
    "Quantity": [
      "1"
    ],
    "Valid": [
      "Valid"
    ],
    "Hidden": [
      "Hidden"
    ],
    "Availability": [
      "In Stock"
    ],
    "Category": [
      "<string>"
    ]
  },
  "from": 0,
  "size": 25,
  "sorting": {
    "field": "name",
    "order": "asc"
  }
}
'
{
  "total": 123,
  "hits": [
    {
      "urn": "<string>",
      "type": "card",
      "game": "Pokemon",
      "title": "<string>",
      "name": "<string>",
      "rarity": "<string>",
      "set": {
        "name": "<string>",
        "urn": "<string>",
        "counts": {
          "printed": 123,
          "total": 123
        },
        "references": [
          "<string>"
        ],
        "size": 123,
        "symbol": {
          "url": "<string>"
        },
        "released": "<string>"
      },
      "series": {
        "name": "<string>",
        "urn": "<string>"
      },
      "images": [
        {
          "urn": "<string>",
          "orientation": "portrait",
          "url": "<string>",
          "illustrator": "<string>"
        }
      ],
      "number": "<string>",
      "description": "<string>",
      "price": 123,
      "available": 0,
      "quantity": 0,
      "min": {
        "price": 123
      },
      "max": {
        "price": 123
      }
    }
  ],
  "facets": {}
}

Path Parameters

game
string
required

The slug of the game to retrieve results for

Example:

"pokemon"

set
string
required

The slug of the set to retrieve results for

Example:

"base-set"

Body

application/json

A search query includes a free text query property, refinements in the form of facets, pagination controls and optional sorting.

query
string

One or more free text search terms

filters
object[]
facets
object

Facets to refine the search results. Values are case-sensitive unless noted otherwise.

from
number | null
default:0

Offset for pagination

size
number
default:25

Number of results to return

Required range: 1 <= x <= 50
sorting
object

Sort results by field and order

Response

200 - application/json

Results for the matching set

total
number
required
hits
object[]
required
facets
object
required