I am using the Shopify Product.All REST API to retrieve all products from my store. I have observed that these specific fields are not included in the response of the REST API. However, when I manually export products from Shopify to a CSV file, these fields are present, and they contain data. But when I use the API to retrieve the data, these fields are not included in the response.
- Product Category
- SEO Title:
- SEO Description:
- Google Shopping / Google Product Category:
- Google Shopping / Gender:
- Google Shopping / Age Group:
- Google Shopping / MPN:
- Google Shopping / Condition:
- Google Shopping / Custom Product:
- Google Shopping / Custom Label 0:
- Google Shopping / Custom Label 1:
- Google Shopping / Custom Label 2:
- Google Shopping / Custom Label 3:
- Google Shopping / Custom Label 4:
- Variant Tax Code:
- Cost per item:
- Included / International
- Price / International:
- Compare At Price / International:
1 Like
Hi Muhammad,
These fields are available through the API but they’re not stored directly on the product object so you’ll need to make some additional API calls to get the data for the products:
- The SEO and Google Shopping fields are stored as product metafields so you’ll need to look at the metafields for each product to get those
- The Product Category is only available through the GraphQL API, in the standardizedProductType field
- The Cost and tax info are available on the InventoryItem object. You can find the inventory item’s ID by looking at each variant for the inventory_item_id field
- The international pricing is available through the GraphQL Markets API
If you want to download all the data for each products for a store another thing to checkout would be the GraphQL bulk operation API so you can get everything at once.
Best,
Daniel
1 Like
Daniel pretty much covered it all.
For the SEO title/description and Google Shopping metafields specifically, here’s a list of metafield namespaces and keys: https://www.highviewapps.com/kb/how-do-i-export-fields-from-shopifys-google-shopping-app/
Are you building a Google Shopping feed?