Skip to main content
Question

API Get all files and folder

  • May 21, 2025
  • 3 replies
  • 8 views

Forum|alt.badge.img

Hi,

 

Is it possible to retrieve the entire tree (all files and folders) whith just one API request ?

I tried with Get Folder's Info and Get Folder's Item with Folder_ID = 0 but it doesn't work..

 

Thanks for your help

 

Thomas

 

3 replies

Forum|alt.badge.img

No, this is not possible. The API only supports retrieving a single folder's direct children (and only up to 1000 items at once; paging is need to see all items of large folders). To get the entire tree, your app will need to expand each folder as needed.


Forum|alt.badge.img

Ok, thanks for your answer


Forum|alt.badge.img

I opened an ticket on the box pulse page. Please upvote it if you are still interested in this.

https://pulse.box.com/forums/909778-help-shape-the-future-of-box/suggestions/38295820-api-endpoint-to-return-all-objects-recursively-b

I am using the jstree library on my site which can create an entire file browser tree as long as each record has an id and parent_id. See 'Using the alternative JSON format' on this page:

https://www.jstree.com/docs/json/

It seems like BOX would be interested in reducing the number of API calls to their endpoints.