Better way to fetch only products with videos?

We are looking for a better way to fetch products with videos attached.

Our current flow is:

  1. Fetch products using SDK hooks like usePopularProducts, useRecommendedProducts, useRecentProducts, or useProductSearch

  2. For each product, call useProductMedia to get its media

  3. Filter out products without video on the client

This means we’re doing 1 batch request + N media requests for each page of results. It’s slow since most products don’t have video.

Looking for a way to:

  • Filter for “products with video” directly in the hook

  • Get media type info included in the product list response so we can skip the per-product useProductMedia calls?

Hey!

There’s no way to do that right now but it’s an interesting idea and I’ve added it to our backlog (internal ticket id #88915).

Thanks!