Skip to main content
Question

How to know the childcount of a folder in Folder(fetching by folder id)

  • May 22, 2025
  • 5 replies
  • 10 views

Forum|alt.badge.img

Hi,

How to know the childcount of a folder in Result(fetching by folder id)  ?

 

Ex:

Main folder id is 123.

inside main folder i have 2 folders i.e ABC folder and XYZ folder.

Now my question is how to know the child count of ABC and XYZ folders.

By using one api call i want both information of ABC and XYZ  along with child count.

 

Thanks,

 

5 replies

Forum|alt.badge.img

,

 

You'll have better luck with this kind of question over at the Box Developer Forum. This one is mostly end users and admins.

 

Bob


Forum|alt.badge.img

Thanks , I agree!


Hi , thanks for posting!

 

For better exposure, I have moved this discussion to the Box Developer Forum. Hopefully this will help the community better find and assist you with this!

 


Forum|alt.badge.img

Hi,

let us say their is one main folder i.e "RootFolder" having two sub folders i.e ABC and XYZ.

Now i want to know the information of both of ABC and XYZ , along with child count by using one api call based on RootFolder id .(https://api.box.com/2.0/folders/RootFolderId/items)

please help me.

 

Thanks,

raghava


Forum|alt.badge.img

Thanks   can you reply if any update on that  done.


Forum|alt.badge.img

 Unfortunately, there's no easy way to get the child counts for multiple different folders in one API call.  You'll need to make one call per folder to get each folder's information.