How can I export products with REST API to get SEO and Google-related fields?

I’m currently using the await shopify.rest.Product.all API, but I’m encountering an issue where it doesn’t retrieve certain fields such as SEO title, product category, SEO description, Google-related fields, and metafields. Can you please advise on how to address this problem?

Hey there Muhammad,

These are stored in Product Metafields, so you would need to use the Metafields endpoint to retrieve them: https://shopify.dev/docs/api/admin-rest/2023-10/resources/metafield

Here’s a list of namespaces and keys of what we’ve seen in the past (though this might not be a complete list): https://www.highviewapps.com/kb/how-do-i-export-fields-from-shopifys-google-shopping-app/