Get specific fields from products

Solved
Highlighted
New Member
1 0 0

Hi,

Is there any way to get specific fields from variants objects which is under products basically, i am using below REST api to get fields but it is return all fields from variants but i want few.

https://key:key@sitename.myshopify.com/admin/api/2020-07/products.json?fields=id,title,vendor,produc...

Best Regards

0 Likes
Highlighted
Shopify Partner
1777 211 370

This is an accepted solution.

Unfortunately, there is no way to limit the list of fields returned for embedded objects, i.e. variants within products, using Rest API. You might want to have a look at GraphQL API - https://shopify.dev/docs/admin-api/graphql/reference

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes