How to get product meta-fields from Admin API

New Member
1 0 0


I need to get product meta-fields from the Admin /products.json API but it doesn't return the meta-fields but I'm able to get products meta-fields from /products/123/metafields.json for a single product it would be heavy to get meta fields data for a product by product so how to get products meta-fields on /products.json API?

And I'm using to set meta fields for products

Thank you

Shopify Expert
10275 144 1945

This is an accepted solution.

You can't make a query to /admin/products,json in rest to get metafields into the response. Why is pulling the data from each product not a viable option with the rest api?

I jump on these forums to help and share some insights. Not looking to be hired, and not looking for work.

Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that.

★ ★