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.

Retrieve tag id with REST API

Retrieve tag id with REST API

albertogiantin
Visitor
2 0 0

Hi, in my client shop we are using the langshop app for multilanguage translation. My client need to generate automatically the translation file starting from data in his SAP system. To do this he needs ids of several Shopify items (Product, metafields, Variant etc.) I can retrieve all of them using REST Api except for tags ids... Is there a way to retrieve the id of a tag related to a product with REST Api or Graphql?

Here an example of what i need to achieve: products[5470876827809][tags][07eadbea3700b64f60e855ef80a660]

where 07eadbea3700b64f60e855ef80a660 is the id of a tag related to a product.

Thank you for your help.

Reply 1 (1)

Jayvin
Shopify Partner
284 42 89

Hi,

Tags do not have ids, tags is a string property of an entity. When you retrieve a product using this endpoint /admin/product/xxxxx.json, you will get the tags as a comma separated string in the product entity itself.

banned