How can I retrieve all product tags using client APIs?

SiarheiKaravai
Shopify Partner
8 0 3

Own Shopify API used in admin allows to return all shop product tags. But how to do that using client APIs? 

Pagination for productTags does not work so it is not possible to list all tags from it if there are many: https://community.shopify.com/c/graphql-basics-and/get-all-product-tags/m-p/1016892#M4574

 

SiarheiKaravai_1-1690806504239.png

 

 

Replies 3 (3)

Ablestar_Sophie
Shopify Partner
38 2 4

Hi @SiarheiKaravai 

In order to find all product tags you would need to page through all products in the Shopify API and keep track of all the tags you see. We can help you with that!

We've built a tool that will scan your Shopify store and give you a report of all unique tags on your store. You can find it here: https://shopify.tagreport.io/ 

Once it has a list of all tags, it will determine if you use any tag prefixes and generate an Excel report for you.

The report will be emailed to you and contains a list of all your tags, the number of products using each tag, and links to the Shopify admin to view those products. If you use tag prefixes, those will will also be included as separate sheet in the report.

Hope this helps!

 

Sophie Mincke | Community Manager @ Ablestar
Bulk edit your products in-app or with a spreadsheet https://apps.shopify.com/bulk-product-editor

BetterReports-C
Shopify Partner
79 0 6

Hi @SiarheiKaravai 

 

Claudia here from Better Reports.

 

Have you been able to find a solution to this? If not, I would recommend our app Better Reports.

 

We can easily pull a report from the Product tags table showing all existing product tags. We could also show the number of products using each tag.

 

In addition to this, Better Reports has more than 60 built-in reports available out of the box that cover many common use cases for merchants. You can schedule reports to run at set frequencies to your email or Google Drive or export the reports in CSV, Excel or PDF format.

 

I encourage you to install Better Reports and start your free 14-day trial, and I'll be happy to set this up for you.

 

What do you think?

Habib_Rayan
Shopify Partner
6 0 3
You can try it

{%
for tag in collections.all.all_tags %}
<li>
{{ tag | link_to_tag: tag }}
</li>
{% endfor %}