Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Tag Api

Tag Api

devAA
Shopify Partner
9 0 1

how to Product tags api get all tags ?

 

Reply 1 (1)

Lainedev
Shopify Partner
8 2 2

You can get the first 250 from the shop resource:

{
  shop {
    productTags(first: 250) {
      edges {
        node
      }
    }
  }
}

 

If you need more than 250 I would suggest using bulk operations on product, but maybe there is another better way I don't know about

 

 

  mutation {
    bulkOperationRunQuery(
      query: """
      {
        products {
          edges {
            node {
              tags
            }
          }
        }
      }
      """
    ) {
      bulkOperation {
        id
        status
      }
      userErrors {
        field
        message
      }
    }
  }

 

Save time by creating and scheduling your sales effortlessly !
https://apps.shopify.com/laine-sales-manager