capabilities.work

Paginate Through Bucket Objects

A 2-step recipe with Amazon S3. We can help you get access.

Recipe · 2 steps

Paginate Through Bucket Objects

List a first page of objects then the next page via continuation token.

  1. List the first page of objects, capped to the requested page size.
  2. Fetch the next page of objects using the continuation token returned by the first page.
What you'll need to have ready
  • bucket: The bucket to list.
  • pageSize: The maximum number of keys to return per page (max-keys), 1 to 1000.
  • prefix: An optional key prefix to scope the listing.
For your developer

Arazzo workflow amazon-s3:paginate-list-objects, 2 operations: ListObjectsV2 → ListObjectsV2. Specs on APIs.io.