Retrieve product pictures.

For each picture, Erply provides 4 URLs for 4 different image sizes. These URLs must not be hotlinked — you need to download the images to your application and serve them from there.

Access to images is currently limited and the images are not accessible by default. If you need to access the files, please contact Erply customer support.

The same information is also available through API call getProducts (field images), so if you need to query product information anyway, getProducts can also provide you the list of images for each product.

Input parameters

Parameter name Description Possible value Required
productPictureID Retrieve one specific image by ID. Integer
productID Retrieve all images associated with a product. Integer
changedSince Retrieve only items that have been added or modified since the specified timestamp. Use it to keep a local database in sync with Erply. Integer (Unix timestamp)
recordsOnPage Number of records API should return. By default 20, at most 100. Integer
pageNo API returns at most recordsOnPage items at a time. To retrieve the next recordsOnPage items, send a new request with pageNo incremented by one. By default, API returns "page 1". Integer


Field name Type Description
productPictureID Integer Image ID.
productID Integer Product ID.
name String (255) A descriptive name for the file. May be empty.
thumbURL String (255) URL of image thumbnail (by default 100 x 100 px).
smallURL String (255) URL of a small version of the image (by default 200 x 200 px).
largeURL String (255) URL of a large version of the image (by default 800 x 600 px).
fullURL String (255) URL of the full-size original image.
external Integer (0 or 1) A flag that indicates whether the image is stored as a local file in Erply, or as a URL to an external location, eg. a content delivery network.
hostingProvider String A codename for the hosting provider, if the file is stored in an external location. May be empty.

This is used only for Erply's internal purposes, eg. to know how to remove image files from a specific CDN when the picture is removed from Erply.
added Unix timestamp
lastModified Integer Last modification timestamp.
hash String/Null CDN Only field. Filename in the cdn.
tenant String/Null CDN Only field. Tenant in the cdn.