PandaScore allows to filter and sort the results of requests by adding query parameters to the request URL.
filter query parameter is used to check for strict equality. Using the
filter[field]=value syntax, you can filter out results where
field is not strictly equal to
To get only LoL champions whose name is
Brand, use the following URL:
filter parameter also accepts a list of comma-separated values. To get only LoL champions whose name is either
Twitch, use the following URL:
filterwith dates, dates should be given in UTC time.
filterparameter only allows to filter dates on their date (day, month, year). The time (hours, minutes, seconds) is ignored.
search query parameter is used to check for string values that contains a given sub-string. Using the
search[field]=value, you can filter out results where
field does not contain
To get only LoL champions whose name contains "twi", use the following URL:
searchquery parameter only works with string values.
range query parameter is used to check for numeric values that are between a given interval. Using the
range[field]=0,100, you can filter out results where
field is not between
To get only LoL champions whose HP are between 500 and 100, use the following URL:
rangequery parameter only works with numeric values.
sort query parameter is used to sort results based on fields values. Using the
sort=field syntax, you can sort results by
The sorting is always done in ascending order unless the field name is prefixed with a minus, in which case the order is descending.
It is possible to sort by multiple fields by providing a comma-separated list of values. In that case, the sorting is done by the first field, then the second, and so on.
The following URL allows you to:
- get all LoL champions
- sort champions by attack damage
- sort champions with the same attack damage by their name (descending alphabetical order).
When sorting in ascending order,
nullvalues appear first. In descending order,
nullvalues come last.
Updated about 2 months ago