# Filter catalog items by in-stock

**URL:** <https://developer.squareup.com/forums/t/filter-catalog-items-by-in-stock/22293>\
**Category:** Questions\
**Tags:** inventory-api, catalog-api, graphql-api\
**Created:** [May 12, 2025, 9:27pm UTC](https://developer.squareup.com/forums/t/filter-catalog-items-by-in-stock/22293 "2025-05-12T21:27:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxretail](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@maxretail](https://developer.squareup.com/forums/u/maxretail)\
**Post date:** [May 12, 2025, 9:27pm UTC](https://developer.squareup.com/forums/t/filter-catalog-items-by-in-stock/22293/1 "2025-05-12T21:27:55Z")

</div>

Is there a way to filter catalog items by stock using the GraphQL API? I’ve noticed that there is a `stockLevel` filter available, but I can’t find a way to exclude items with `stockLevel: [OUT]`.

Additionally, using `stockLevel: [OUT]` doesn’t seem to return catalog items with 0 quantity as expected.

If this functionality isn’t possible with the GraphQL API, is there an alternative method using REST?

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [May 12, 2025, 9:28pm UTC](https://developer.squareup.com/forums/t/filter-catalog-items-by-in-stock/22293/2 "2025-05-12T21:28:11Z")

</div>

👋 I’m Square Dev AI, here to help answer your question!  
Based on the information you’ve provided, the following documentation will help answer your question:

> **[Monitor Sold-out Item Variations or Modifiers](https://developer.squareup.com/docs/inventory-api/monitor-sold-out-status-on-item-variation)**
>
> Learn how to use the Catalog API to set or inspect a sold-out item or to have it enabled to be set as sold out when its inventory count reaches zero.

> **[Retrieve Inventory Quantities](https://developer.squareup.com/docs/inventory-api/cookbook/retrieve-specific-instock-quantity)**
>
> Retrieve in-stock quantities for a specific item variation.

> **Additional Documentation**
>
> [Build and Manage a Simple Inventory](https://developer.squareup.com/docs/inventory-api/build-with-inventory)  
> [Enable Stock Conversion](https://developer.squareup.com/docs/inventory-api/enable-stock-conversion)  
> [Square GraphQL](https://developer.squareup.com/docs/devtools/graphql)

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.  
Otherwise one of our Developer Advocates will provide additional assistance shortly.
