Hi there ![]()
If you are using the Admin API or Storefront API you can specify the tag in the query param. It would look something like this.
{
products(first: 10, query:"tag:Premium") {
nodes {
id
handle
}
}
}
If you are trying to build a filtering experience with the storefront API, and not just retrieve products with a certain tag, I would recommend reviewing this in depth tutorial on filtering products.