Supply: Filtering for in-stock parts

Modified on Thu, 18 Jan at 11:55 AM

When searching you can specify to only include parts which are in stock. For example:

supSearch(q: "LM339", limit: 1, inStockOnly: true) { ...

Setting this filter to true means that parts are excluded that have no stock at all. If a part has inventory from just one distributor it is considered in-stock and returned as part of the query.

This filtering does not consider distributor stock at all - it applies at the part level.


Here is an example you can try. This query searches for "AEC-Q100" with a pagination start page of 5, and inStockOnly set as true:

query in_stock_filter{
  supSearch(q: "AEC-Q100", start: 5, inStockOnly: true) { 
    results {
      
      part {
        mpn
        manufacturer {
          name
        }
        sellers(includeBrokers: false) {
          company {
            name
          }
        }
      }
    }
  }
}

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article