Retrieve Product Gallery images

You can retrieve Product Gallery images from a CDN endpoint using any of the following URL formats:

  • Sample Product URL - https://<CDN endpoint domain>/api/Products/<Product Number>_000_<Sequence Number>.png?w=xxx&amp;h=xxx

  • Sample Product Variant URL - https://<CDN endpoint domain>/api/Products/<ProductNumber>^<Style>^<Size>^<Color>^_000_<Sequence Number>.png?w=xxx&amp;h=xxx

  • Sample Product Configuration URL - https://<CDN endpoint domain>/api/Products//Products/<ProductNumber>^<Configuration>_000_<Sequence Number>.png?h=xxx&amp;w=xxx

The Product Number must match the Product Number of a product in Sitecore Content Hub. The Sequence Number matches the image sort order position on the Product Gallery tab of a product.

The height and width querystring parameters must match the height and width of a transformation configured in Sitecore Content Hub. If there is no match, the system returns the original version of the Product Gallery rendition of the image.

For example,

https://func-endpoint.azureedge.net/api/Products/1111111111_000_001.png?w=762&h=471 returns the first image in the Product Gallery tab of the Product with Product Number = 1111111111

https://func-endpoint.azureedge.net/api/Products/1111111111_000_002.png?w=762&h=471 returns the second image in the Product Gallery tab of the Product with Product Number = 1111111111

Note

If there is no match to the Product Number or Sequence Number, an HTTP 404 error displays.

Do you have some feedback for us?

If you have suggestions for improving this article,