# Querying kits, components and quantities

**URL:** <https://community.shiphero.com/t/querying-kits-components-and-quantities/252>\
**Category:** GraphQL API\
**Created:** [December 3, 2019, 6:53pm UTC](https://community.shiphero.com/t/querying-kits-components-and-quantities/252 "2019-12-03T18:53:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremyw](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jeremyw](https://community.shiphero.com/u/jeremyw)\
**Post date:** [December 3, 2019, 6:53pm UTC](https://community.shiphero.com/t/querying-kits-components-and-quantities/252/1 "2019-12-03T18:53:50Z")

</div>

Hello!

I am trying to find a way to query out the quantity of components needed for a kit via the API. I can supply a kit to the following query to get the component SKUs, but I can’t find any fields that would tell me how many of each SKU is required for the kit. If I look at the product details screen in the app, I can see the quantity there, but I just can’t find it in the API.

```
query ($sku: String) {
    product (sku: $sku) {
        request_id
        complexity
        data {
          sku
          name
          kit
          kit_build
          components {
            sku
          }
        }
    }
}

```

In the event that it’s not available in the API, could I put in a request to add it, please?

Thanks,  
Jeremy

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [December 4, 2019, 3:10pm UTC](https://community.shiphero.com/t/querying-kits-components-and-quantities/252/2 "2019-12-04T15:10:51Z")

</div>

Hi @jeremyw!  
You are right, this isn’t currently available on the query.  
I just submitted a Feature Request for this and will let you know as soon as I get an update.  
Thanks!  
Tom

---

<div class="post-metadata">

**Author:** ![jeremyw](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jeremyw](https://community.shiphero.com/u/jeremyw)\
**Post date:** [December 18, 2019, 12:55pm UTC](https://community.shiphero.com/t/querying-kits-components-and-quantities/252/3 "2019-12-18T12:55:39Z")

</div>

Hi @tomasw,

I just wanted to throw out there that if it’s easier to have a separate query specifically for the kits, components and quantities (like the picks\_per\_day query) that would be fine, too. For my purposes it doesn’t have to be worked into the product query.

Thanks,  
Jeremy

---

<div class="post-metadata">

**Author:** ![jeremyw](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jeremyw](https://community.shiphero.com/u/jeremyw)\
**Post date:** [January 14, 2020, 11:58am UTC](https://community.shiphero.com/t/querying-kits-components-and-quantities/252/4 "2020-01-14T11:58:23Z")

</div>

Hi @tomasw,

I was just curious on the progress of this request. Do you know if there’s any sort of timeline?

Thanks,  
Jeremy

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [July 16, 2020, 6:47pm UTC](https://community.shiphero.com/t/querying-kits-components-and-quantities/252/5 "2020-07-16T18:47:10Z")

</div>

Hi @jeremyw  
I apologize for the delay with this, but it should be available now  
The field is available under components, something like this:

```
query {
  product(sku: "1001120989208") {
    request_id
    complexity
    data {
      id
      legacy_id
      kit_components {
        sku
        quantity
      }
    }
  }
} 

```

Again, thank you for the patience and let me know if there is anything else I could help you with about this.  
Thanks!  
Tom

---

<div class="post-metadata">

**Author:** ![jeremyw](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jeremyw](https://community.shiphero.com/u/jeremyw)\
**Post date:** [July 16, 2020, 7:02pm UTC](https://community.shiphero.com/t/querying-kits-components-and-quantities/252/6 "2020-07-16T19:02:25Z")

</div>

THANK YOU!! This is awesome! 🏆 😃
