When setting up a page you can add tag filters which each contain a collection of tags as per this image.
How do I find these collections via the API? They seem to be associated with themes in the admin area, yet there seems to be nothing in the themes.json result to give me any clue and I have also looked at collections. Any help out there on this? Thanks as ever.
Pages do not have tags so what resource are we talking about then? Collections do have tags but so do blog articles, blogs, products etc.
Also, are you looking for the API to fetch the tags or a way to retrieve those tags in the template schema when editing a theme?
If API, then you can do following to get blog tags i.e. list of all tags used in articles of blogs. Of course, you could also perform similar for a specific blog (see API docs)
So it depends which resource you meant really (or maybe I am just missing something obvious which wouldn't be the first time ;-)
Thanks so much for giving me your time. I don't think the tag collection for a tag filter is a blog - nor can I find it defined in any of the collections I have managed to find, but it seems logical that this tag filter collection, which I assume would have the title 'Filter By' should exist somewhere in the system, though I am fast coming to the conclusion that the API does not expose everything by any means. Maybe this is another thing that I can't actually get to via the API? I have tried collects.json, custom_collections.json and smart_collections.json. I did wonder if it might be within themes/<id>/assets.json but nothing there either. I want to be able to read the tag list for each 'tag filter' (like my screenshot) dynamically so that if it is changed I can reflect those changes elsewhere.
Did you get any solution?