Use filters¶
JSON responses on this page contributed by Tim Reynolds.
Some requests use GET parameters in the URL. These are as follows:
filter¶
Specifies the filters for returned data.
page¶
Specifies the page number which items will be returned.
order, dir¶
Specifies the sort order of returned items and the order direction: asc
- returns items in the ascending order; dsc
- returns items in the descending order.
Example
limit¶
Limits the number of returned items in the response. Note that by default, 10 items are returned in the response. The maximum number is 100 items.
neq¶
“not equal to” - returns items with the specified attribute that is not equal to the defined value.
in¶
“equals any of” - returns items that are equal to the item(s) with the specified attribute(s).
nin¶
“not equals any of” - returns items excluding the item with the specified attribute.
gt¶
“greater than” - returns items with the specified attribute that is greater than the defined value.
Example
lt¶
“less than” - returns items with the specified attribute that is less than the defined value.
from, to¶
Specifies the range of attributes according to which items will be returned.
Example
Whitespaces¶
If the attribute value consists of several words separated by a whitespace, the ‘%20’ sign is used:
Example
Example 1¶
For example, to filter products with the description equal to simple01:
Example
Example 2¶
To filter customers by email address: