Skip to main content
Question

Get Folder or File details in Box Android SDK

  • May 22, 2025
  • 1 reply
  • 11 views

Forum|alt.badge.img

I want to get details of folder or file like size or date created etc. But the API 

https://api.box.com/2.0/folders/FOLDER_ID/items

doesnot return anything like that. How can I get the information of folders or files while getting folder items

 

I know there are individual API to get folder or file info but I want to get it in one go.  

1 reply

Forum|alt.badge.img

 You can get this information in the same API call to the Get Folder Items endpoint by using the optional fields parameter. 

 

For example:

 

curl "https://api.box.com/2.0/folders/0/items?fields=size,created_at" \
-H "Authorization: Bearer ACCESS_TOKEN”