Retrieve a product by Metafield

helidona
Excursionist
19 0 4

Hi guys,

I'm looking for the best way how to retrieve a product if I don't know the Product ID but have some info like metafields that I have saved previously when I have created that product.
Therefore, is any way how to retrieve details of a product using any specific metafield?

Looking forward to your help/advice?

Regards!

Replies 2 (2)
Greg_Kujawa
Shopify Partner
1020 83 262

I don't believe you can query products based on metafield values via the API. https://community.shopify.com/c/Shopify-Discussion/Query-all-products-with-a-given-metafield-value/t...

helidona
Excursionist
19 0 4

Hi @Greg_Kujawa,

Thank you for the reference link and answer.