List tags #99
-
Hi, How can I, with the API, list all product tags? Is there a similar endpoint, like for attributes that doesn't require me to paginate all products? Kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
To fetch a list of all product tags, you can query the
The |
Beta Was this translation helpful? Give feedback.
-
When I try this answer, this is what I receive: |
Beta Was this translation helpful? Give feedback.
To fetch a list of all product tags, you can query the
/products/:group
endpoint with an aggregation like this:The
tags
field in our base Product model is a simple list of strings, which may not be the best fit if you want a more robust reference between tags or tags -> products - that may work better with categories and attributes.