Product Images Object - Partial Request Last updated: January 05 2022 11:19 PM
Fields Parameter Values Available For Products Images Object
A way to improve the performance of your API request is by requesting a partial response
receiving only the data that your application is interested in. This allows your application to perform more
efficiently. By default, the server sends back the full representation of a resource you requested. For improved
performance, you can request only the fields you need. To request a partial response, use
the fields query parameter and specify the fields you want returned.
If you want to return the url for a single or multiple images use the fields query
parameter. The parameter must contain at least one view (front,back,left,right),
one size (large,medium,small) and one format (webp,png,jpg).
Use a comma-separated list to select images.
E.g. /?fields=products(front,back,left,right,large,png)
or /?fields=products(front,medium,jpg)
The fields query parameter is used to retrieve single or multiple images in the response
for the product images object. A list of fields values for product images object are shown
below.
Parameter
Type
Values
Description and examples
fields optional
string
large, medium, small front, back, left, right png, jpg, webp