Hi, is it possible to search products by tags using Rest API?
Thanks in advance!
Hi, is it possible to search products by tags using Rest API?
Thanks in advance!
Hey @tk_w , at this time “tags” isn’t one of the available parameters that can be use to filter a GET request to the Products API. All of the available filter parameters can be found listed in this doc here - Cheers!
I could really use this feature as well, and just learned that it’s not possible. I did find a workaround though.
You can filter records via the REST API using the parameter query=‘string’, which searches most (all?) fields at once, including tags. I was able to filter Orders by tag using this method. Just make sure your tags are not a common phrase that could occur elsewhere in the Order/Product.
@awwdam @GreenFlux_LLC Thanks for the Answer. I have same issue. here my Query I hope you are doing well. I can see the rest APi document mention the tags parameter https://shopify.dev/docs/api/admin-rest/2024-07/resources/product#post-products#tags
here my sample postman
Correct access token and Shop info.
myshopify.com/admin/api/2024-07/products.json?Tags=Roxy
myshopify.com/admin/api/2024-07/products.json?Tags="Roxy"
myshopify.com/admin/api/2024-07/products.json?Tags="Roxy,Woman"
Result : all product from the store.
Expected result - product filter by the tags “Roxy” or the relevant tag product data.