Get shopify Metafields for products in one call

php, shopify

Solution

It would be nice if it was mentioned in the API doc though. Nothing about

Receive a list of all Metafields GET /admin/metafields.json?since_id=721389482

indicates it will only return shop metafields.

Problem

I have been trying to get metafields for over 100 products and that means I have to make separate 100 api calls for each product. If there is a way to grab all metafields for all products just in one xml file like the way variants are attached to products. So that with one api call, i grab all 100 products instead of making 100 separate api call for each product. Any help is appreciated.

Original source