Skip to main content
Log inSign up

Filter products by category or taxonomy metafield

Starting with Storefront API version 2025-01, you can now filter products within collections and search results using CategoryFilter and TaxonomyMetafieldFilter.

  • CategoryFilter: Filter products by a category ID.
  • TaxonomyMetafieldFilter: Filter products based on a taxonomy metafield namespace, key, and value.

Learn more about filtering products in collections on Shopify.dev.

Was this section helpful?