Assets API - Number of folders retrieved? | Community
Skip to main content
New Participant
Mar 29, 2023 8:51 PM UTC
Solved

Assets API - Number of folders retrieved?

Hi all,

I have a quick questions regarding this api https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html?lang=en#retrieve-a-folder-listing

 

What's the limit of folders sent by the API when making the call? Is there pagination?

I can't find this on the docs

 

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
lukasz-m
lukasz-mAccepted solution
New Participant
Mar 30, 2023 8:51 AM UTC

Hi @apollostears,

Pagination is supported, despite the fact it is not directly mentioned in the documentation. You can see that json response provides information about offset and limit.

You can simply use offset and/or limit in query parameters for pagination e.g.

http://localhost:4502/api/assets/we-retail/en.json?limit=5&offset=1

3 replies

lukasz-m
lukasz-mAccepted solution
New Participant
Mar 30, 2023 8:51 AM UTC

Hi @apollostears,

Pagination is supported, despite the fact it is not directly mentioned in the documentation. You can see that json response provides information about offset and limit.

You can simply use offset and/or limit in query parameters for pagination e.g.

http://localhost:4502/api/assets/we-retail/en.json?limit=5&offset=1

Translate
New Participant
Mar 31, 2023 2:40 PM UTC

Thank you! Do you know by default what's the limit of returned elements?

Translate
arunpatidar
New Participant
Mar 30, 2023 7:42 AM UTC