capabilities.work

List objects in an R2 bucket

One step with Cloudflare. We can help you get access.

Look something up

List objects in an R2 bucket

Use Cloudflare: its Cloudflare Objects API lets you list objects in an R2 bucket in a single step (GET /accounts/{account_id}/r2/buckets/{bucket_name}/objects). capabilities.work can help you get signed up and connected.

  • What files are stored in my R2 bucket?
  • Can I list only the R2 objects whose keys start with a certain prefix?
  • Is there a way to group R2 object keys like folders using a delimiter?
Say it to your AI assistant
  • List the objects in R2 bucket {bucket_name} in account {account}.
  • Show objects in bucket {bucket_name} under prefix {prefix}.
For your developer

GET /accounts/{account_id}/r2/buckets/{bucket_name}/objects in Cloudflare Objects API. Full spec on APIs.io.