Negative search parameters? eg: products where type != sale

Solved
New Member
1 0 0

I'd like to exclude 1 category from my fetch of all products, however I can't seem to find any documentation on whether it's possible to have exclusive search through the Api. 

 

The product endpoint I'm looking at:

https://help.shopify.com/en/api/reference/products/product#index-2019-07

 

EG: Get all products where type != Sale 

 

 

0 Likes
Highlighted

Success.

Shopify Staff
Shopify Staff
293 53 40

Hey @sam12341 

 

Everything you are looking for can be found here: https://help.shopify.com/en/api/getting-started/search-syntax

 

In general, with our API search, you can use a "-" modifier to say not vs. using a bang. 

Vix | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 


0 Likes