Box Developer Documentation

A beta version of the new Box developer documentation site is launching soon! Updated Developer Guides, modern API Reference, and AI-powered search are on the way to help you build with Box faster. Stay tuned for more updates.

List Items in Collections

Guides Collections List Items in Collections
Edit this page

List Items in Collections

To list all files, folders and web links in a folder call the GET /collections/:id/items API.

cURL
curl -i -X GET "https://api.box.com/2.0/collections/926489/items" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Node/TypeScript v10
await client.collections.getCollectionItems(favouriteCollection.id!);
Python v10
client.collections.get_collection_items(favourite_collection.id)
.NET v10
await client.Collections.GetCollectionItemsAsync(collectionId: NullableUtils.Unwrap(favouriteCollection.Id));
Swift v10
try await client.collections.getCollectionItems(collectionId: favouriteCollection.id!)
.NET v6
await client.Collections.GetCollectionItemsAsync(collectionId: NullableUtils.Unwrap(favouriteCollection.Id));
Node v4
await client.collections.getCollectionItems(favouriteCollection.id!);

The only collection that is available via the API is the "Favorites" collection. The ID of this collection is different for every user.