# Query products that have dangerous goods, including type of DG

**URL:** <https://community.shiphero.com/t/query-products-that-have-dangerous-goods-including-type-of-dg/3727>\
**Category:** GraphQL API\
**Created:** [June 26, 2026, 1:24pm UTC](https://community.shiphero.com/t/query-products-that-have-dangerous-goods-including-type-of-dg/3727 "2026-06-26T13:24:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sashburn](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@sashburn](https://community.shiphero.com/u/sashburn)\
**Post date:** [June 26, 2026, 1:24pm UTC](https://community.shiphero.com/t/query-products-that-have-dangerous-goods-including-type-of-dg/3727/1 "2026-06-26T13:24:42Z")

</div>

I’m not finding information in the API documentation that allows me to query products that have been flagged Dangerous Goods and to provide which dangerous goods setting the product(s) have.

---

<div class="post-metadata">

**Author:** ![jjconti](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@jjconti](https://community.shiphero.com/u/jjconti)\
**Post date:** [June 29, 2026, 5:27pm UTC](https://community.shiphero.com/t/query-products-that-have-dangerous-goods-including-type-of-dg/3727/2 "2026-06-29T17:27:10Z")

</div>

Thanks for raising this.

This is not currently exposed through the Public API `products` query, but we’re looking at whether adding support for this would be useful.

Would something like this cover your use case?

```auto
query {
  products(has_dangerous_goods: true) {
    data(first: 50) {
      edges {
        node {
          sku
          name
          dangerous_goods_code
          dangerous_goods {
            id
            name
          }
        }
      }
    }
  }

```

A couple of questions:

- Do you need to filter only for products that have any Dangerous Goods setting?
- Would you also need to filter by a specific DG code/type?
- Is returning both the code and the display name enough for your workflow?

Also, if you can add your ShipHero Account ID to your Community profile, we can provide more precise answers for your setup.

---

<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:** [September 27, 2026, 5:27pm UTC](https://community.shiphero.com/t/query-products-that-have-dangerous-goods-including-type-of-dg/3727/3 "2026-09-27T17:27:38Z")

</div>

Closed on September 27, 2026, 5:27pm UTC

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