Querying Products That Contain 3D Models (MODEL_3D Media Type)

Hi Community,

We’re building a Shop Mini that surfaces only products which have 3D models attached in their media.

At the moment, our approach is:

  • Use useProductSearch to retrieve products based on user input

  • For each product, call useProductMedia to check whether it contains media of type MODEL_3D

However, this results in multiple useProductMedia calls, and we quickly hit rate-limit constraints, especially when the search returns many products, which cannot work in Production.

Questions:

  1. Is there a recommended way to query or filter products directly based on the presence of MODEL_3D media?

  2. Are there any search filters, query parameters, or GraphQL fields that allow detecting 3D-enabled products without resolving media per product?

  3. If not, what is the best-practice pattern for handling this use case at scale without running into rate limits?

Any guidance or recommended patterns would be greatly appreciated.

Thanks in advance!

I haven’t seen any. I think you’d be stuck until it’s officially supported?

Have you tried and central caching on your own server? Probably a big burden, but maybe storing seen 3D product IDs is a good way to get around the limit.

2 Likes

Yes unfortunately we do not currently have a way to search/filter to only products that have 3d models. I’ve created a ticket to track this as a feature request though (internal id #89581)

2 Likes

Hi @steve-t-shopify , thank you for the update. We will be waiting on when the feature is available

@Shane_Stratton I see, thank you for the suggestion and feedback. I can dig into this, but at the same time, we are looking at keeping the Mini completely independent (only dependent on Shop Mini APIs)