# List Locations Bin Inventory

**URL:** https://community.shiphero.com/t/list-locations-bin-inventory/3212
**Category:** GraphQL API
**Created:** [February 21, 2025, 9:39am UTC](https://community.shiphero.com/t/list-locations-bin-inventory/3212 "2025-02-21T09:39:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rhaymison](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/rhaymison/32/936_2.png) [@rhaymison](https://community.shiphero.com/u/rhaymison)
#### Post date: [February 21, 2025, 9:39am UTC](https://community.shiphero.com/t/list-locations-bin-inventory/3212/1 "2025-02-21T09:39:58Z")

</div>

Hello, the query below returns all my locations with the type by their warehouse. However, I also need to bring the inventory/quantity of products allocated in this bin so that I can identify which ones are empty. Or if possible, a direct query that already does this.

How can I do this?

Below is the query that I have already created that works, it only needs the quantities now.

```graphql
query {
  locations(warehouse_id: "") {
    data {
      edges {
        node {
          id
          name
          type {
            name
          }
        }
      }
    }
  }
}

```

---

<div class="post-metadata">

### Author: ![tomasfd](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tomasfd](https://community.shiphero.com/u/tomasfd)
#### Post date: [February 27, 2025, 3:03pm UTC](https://community.shiphero.com/t/list-locations-bin-inventory/3212/2 "2025-02-27T15:03:53Z")

</div>

Hello Rhaymison,

Currently, there is no way to get the inventory straight from the location. You will need to query the warehouse products and check the locations inside it.

You can also link that query you sent to products and from there warehouse\_products, but that will turn into a very deep query.

Additionally, you can use the inventory snapshot to pull all products from a warehouse and their bins: [Inventory-Snapshot – Developer Resources | ShipHero](https://developer.shiphero.com/inventory-snapshot/)

Have a nice day!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/shiphero/original/2X/8/83f2a5ec5d7908b156cb6999baa4c753fadfa85d.svg) [@system](https://community.shiphero.com/u/system)
#### Post date: [May 28, 2025, 3:04pm UTC](https://community.shiphero.com/t/list-locations-bin-inventory/3212/3 "2025-05-28T15:04:09Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
