Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Content Delivery API - Getting Assets From Content



We are trying to use the Content Delivery API and we are struggling to get the assets like Images from the Content. No images or event the references are being returned for the content that we are using.

I first thought that we were doing wrong on how we store the media files but I also cannot get it to work for QuickSilver demo app.

For Example:

Get api/episerver/v2.0/content/C66B75D3-1A34-4699-8378-D7E03D1AC36B?expand=*

The GUID: C66B75D3-1A34-4699-8378-D7E03D1AC36B is the guid of the Polo Knit Dress on the quicksilver app. Now I want to use the first asset for a thumbnail but I want to use the Content Delivery API to get that image url.

I tried to use the Service API and it does return the correct URL for the Product's Assets that I am looking for but the Service API does not allow me to get a collection of products where the Content Delivery API does allow me to fetch a collection of products.

Basically I want to make the following call.

Get api/episerver/v2.0/content/?guids=C66B75D3-1A34-4699-8378-D7E03D1AC36B,A2087836-C0E4-4C4B-88F3-81A2F1F0ED33,5393FDAD-1D68-407C-8B5D-22A55060E183&expand=*

Then I want to use that to show it in a grid with images.

Any help would be appreciated!

Jun 28, 2019 11:50

Hi Willem

I think you might need to use a property model converter (IPropertyModelConverter) which allows you to customise the output send to the content delivery API. An example of it can be seen here:


Jun 28, 2019 15:58

Well the problem is, the Assets/Media are part of EpiServer Commerce, it should work out of the box. I am just confused that I have to implement a IPropertyModelConverter to get something back that is part of the product that we use. hmmm

Jul 01, 2019 14:04
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.