KicksDB relies on Meilisearch to search and filter products, our following endpoints uses Meilisearch under the hood:
StockX
GOAT
Shopify
Kream
These endpoints often have query parameter to search for products and filters parameter to filter products based on certain criteria. This recipe will show you how to use filters parameter.
You should consult the structure of the indexes below to understand the available filters.For example, if you want to filter products by brand, you can use the brand filter, like this:
Copy
brand = "Nike";
Due to special characters, you might have to encode the filters to avoid errors, it should give a result like this:
Copy
GET https://api.kicks.dev/v3/stockx/products?filters=brand%3D%22Nike%22
It’s possible to combine multiple filters, like this:
Copy
brand = "Nike" AND product_type = "sneakers";
Finally, some filters use nested objects, like this:
We recommend using sku_cleaned when filtering by SKU. Shopify forces shops to append the size or an unique identifier to each variant.
By using sku_cleaned you match the SKU 310805-012 instead of shop’s defined 310805-012-25.