Search
The Fyendal’s Collection API exposes various endpoints that allow for searching
and filtering via a q query parameter. This page discusses how to construct
these search queries.
Basic Usage
Section titled “Basic Usage”The most straight-forward usage of the search query parameter is to search for specific key words in the name, variant or description of a product. For example, the search query
fyendalWill return all products that contain the word “fyendal” in their name or description.
Filters
Section titled “Filters”The real power of the search query parameter is its ability to filter. Filters are text-based and you can include multiple in your query. The following basic example will return all products in Welcome to Rathe or Arcane Rising that also have the text “again” in their name or description:
s=wtr,arc againOperators
Section titled “Operators”Properties that are numeric i.e. cost, defense value etc. support the following operators:
- Equal (
=) - Not equal (
!=), - Less than or equal (
<=), - Greater than or equal (
>=), - Less than (
<), - Greater than (
>)
Properties that are not numeric support only the following operators:
- Equal (
=) - Not equal (
!=)
However, for non-numeric properties, multiple operands can be included, so it
may be better to consider these as “one of” (=) or “not one of” (!=). For
example, the following includes products that are not in the Welcome to Rathe
or Arcane Rising set:
s!=wtr,arcProperties
Section titled “Properties”The following properties are supported for filtering. Any of the listed names can be used in your queries.
Card Type
- cardtype
- type
- ct
Card Sub-type
- cardsubtype
- subtype
- st
Class
- class
- c
Cost
- cost
Defense Value
- defensevalue
- defense
- def
- d
Foiling
- foiling
- finish
- f
Pitch value
- pitchvalue
- pitch
- resource
- p
Talent
- talent
- t
Power
- power
- pow
- attackvalue
- attack
- a
Rarity
- rarity
- r
Set
- set
- s
Life
- life
- l
Intellect
- i
- intellect
- int
Search Modal
Section titled “Search Modal”An easy way to construct filters is just by using the built-in search modal on the browse page.