Assets API - Number of folders retrieved? | Community
Skip to main content
March 29, 2023
Solved

Assets API - Number of folders retrieved?

  • March 29, 2023
  • 2 replies
  • 776 views

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.
Best answer by lukasz-m

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

2 replies

arunpatidar
Community Advisor
Community Advisor
March 30, 2023
lukasz-m
Community Advisor
lukasz-mCommunity AdvisorAccepted solution
Community Advisor
March 30, 2023

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

March 31, 2023

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