Cloudflare R2 Storage icon

Cloudflare R2 Storage

Interact with Cloudflare R2 object storage. Upload, download, manage files and buckets. Supports batch operations, multipart uploads, and can be used as a tool by AI Agents.

Batch Operations → Download Multiple

AI-generated

Summary

Download multiple objects from a Cloudflare R2 bucket.

Inputs

  • bucketName (required) — Name of the R2 bucket containing the objects.
  • objectKeys (required) — One object key per line (max 1000 keys).

Output shape

An object with two keys: 'downloads' (array of file metadata) and 'binary' (object mapping cleaned filenames to download details).

Maximum 100 objects per request; returns an array wrapped in a single result object.

Examples

Example 1: Download several files from a bucket.

bucketName: my-r2-bucket\tobj1.txt\nfolder/file2.jpg\nanother/file3.pdf

Discussion