Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Retrieve asset folder metadata using Assets API

Avatar

Level 4

I have added metadata to a folder on DAM by using a custom folder metadata schema. However, I am unable to retrieve the information back using the assets API. Doesn't work even with /jcr_content/metadata in the API path. Is it possible to retrieve it using Assets API at all? and how?

Seek_AEM_4-1721395328887.png

Seek_AEM_0-1721395663508.png

 

 

Seek_AEM_0-1721395492357.png

 

 

 

 

 

2 Replies

Avatar

Community Advisor

Hi, 

Correct, the Assets API won't return custom metadata. If you are using AEMaaCS, I would recommend exploring the new sets of API for Assets, which it seems could work for your use case: https://developer.adobe.com/experience-cloud/experience-manager-apis/api/experimental/assets/author/ .

EstebanBustamante_2-1721398660888.png

 

If you are using AEM on-premise,  you could simply rely on the HTTP API, something like this would work:

Asset Path: http://localhost:4502/assetdetails.html/content/dam/wknd-shared/en/adventures/cycling-tuscany/adobes... 

EstebanBustamante_0-1721398412476.png

Metadata access: http://localhost:4502/content/dam/wknd-shared/en/adventures/cycling-tuscany/adobestock-59459597.jpeg... 

EstebanBustamante_1-1721398470476.png

Hope this helps

 

 



Esteban Bustamante

Avatar

Level 5

Hi @Seek_AEM ,

To be more precise just you need to append a selector e.g. 1 to your metadata which you were trying. It will work.

We can hit http://localhost:6502/content/dam/Seek_AEM_4-1721395328887.png/jcr:content/metadata.1.json

MukeshYadav__0-1721400454635.png

 

or 

We can get via servlet/model https://www.linkedin.com/pulse/get-asset-meta-data-from-node-aem-keshav-chaurasiya

Thanks