When I try this URL in my browser:
https://USERNAME:[email protected]/admin/products/tags.json
It gives me a nice list of all the tags in my shop.
I need this list, but when I try an API call with Python it says ‘Not found’. Since I can do it with my browser, there must be a way to do it programmatically.
Getting all the tags by looping over all products is too long (+- 5-10 seconds), whereas this gives me everything I need instantly.
How can I make this request?
Thanks
2
Answers
The tags aren’t exposed via the REST API, but they’re accessible via the GraphQL Admin API:
Check this for extra info
Currently, Shopify Rest API still doesn’t have an endpoint to get all tags, vendors, types. And GraphQL Admin API can only get at maximum first 250 results.
You can get all of them through Shopify liquid ( Not working with the passworded store ).