The REST Admin API is a legacy API as of October 1, 2024. Starting April 1, 2025, all new public apps must be built exclusively with the GraphQL Admin API. For details and migration steps, visit our migration guide.
Product Image
products
access scope.Listing, creating, updating, and deleting product images is deprecated as of REST API 2025-01. For more information, refer to the guide to the new product model.
Products are easier to sell if customers can see pictures of them, which is why there are product images.

Any product may have up to 250 images, and images can be in .png, .gif or .jpg format.
Best practices for naming image files
To successfully upload or update images, follow these best practices when naming your image files:
- Don't use spaces in the file name. Example:
my file name.png
- Don't begin your file name with symbols, like "!". Example:
!my_file_name.png
- Avoid using periods before the file extension. Example:
my_file_name..png
- Avoid long, complicated file names that contain excess characters.
Example:
my_---_file_---_name_---.png
Endpoints
- post/admin/api/latest/products/{product_
id}/images. json Create a new Product Image - get/admin/api/latest/products/{product_
id}/images. json Receive a list of all Product Images - get/admin/api/latest/products/{product_
id}/images/{image_ id}. json Receive a single Product Image - get/admin/api/latest/products/{product_
id}/images/count. json Receive a count of all Product Images - put/admin/api/latest/products/{product_
id}/images/{image_ id}. json Modify an existing Product Image - del/admin/api/latest/products/{product_
id}/images/{image_ id}. json Remove an existing Product Image
The Product Image resource
Properties
The date and time when the product image was created. The API returns this value in ISO 8601 format.
A unique numeric identifier for the product image.
The order of the product image in the list. The first product image is at position 1 and is the "main" image for the product.
The id of the product associated with the image.
An array of variant ids associated with the image.
Specifies the location of the product image. This parameter supports Liquid filters that you can use to retrieve modified copies of the image.
Width dimension of the image which is determined on upload.
Height dimension of the image which is determined on upload.
The date and time when the product image was last modified. The API returns this value in ISO 8601 format.
The Product Image resource
Anchor to POST request, Create a new Product ImagepostCreate a new Product Image
Create a new product image
Create a new product image with a metafield
Create a new product image with a metafield
Create a new product image and attach it to product variants
Create a new product image and attach it to product variants
Create a new product image and make it the main image
Create a new product image and make it the main image
Create a new product image using a source URL that will be downloaded by Shopify
Create a new product image using a source URL that will be downloaded by Shopify
Create a new product image with included image data as attachment
Create a new product image with included image data as attachment
/admin/api/2025-07/products/632910392/images. json
Response
Anchor to GET request, Receive a list of all Product ImagesgetReceive a list of all Product Images
Get all product images
comma-separated list of fields to include in the response
Restrict results to after the specified ID
Get all product images for a product
Get all product images for a product
Get all product images for a product after a specified ID
Get all product images for a product after a specified ID
Restrict results to after the specified ID
/admin/api/2025-07/products/632910392/images. json
Response
Anchor to GET request, Receive a single Product ImagegetReceive a single Product Image
Get a single product image by id
comma-separated list of fields to include in the response
Show product image
Show product image
/admin/api/2025-07/products/632910392/images/850703190. json
Response
Anchor to GET request, Receive a count of all Product ImagesgetReceive a count of all Product Images
Get a count of all product images
Restrict results to after the specified ID
Get a count all product images
Get a count all product images
Get a count of all product images after a specified ID
Get a count of all product images after a specified ID
Restrict results to after the specified ID
/admin/api/2025-07/products/632910392/images/count. json
Response
Anchor to PUT request, Modify an existing Product ImageputModify an existing Product Image
Modify an existing product image
Modify an image and change its position and alt tag content
Modify an image and change its position and alt tag content
Modify an image; add a metafield
Modify an image; add a metafield
Modify an image; add it to product variants
Modify an image; add it to product variants
/admin/api/2025-07/products/632910392/images/850703190. json
Response
Anchor to DELETE request, Remove an existing Product ImagedelRemove an existing Product Image
Delete a product image
Delete a product image