Get Object
GET/accounts/{account_id}/r2/buckets/{bucket_name}/objects/{object_key}
Retrieves an object from an R2 bucket. Returns the object body along with metadata headers.
For most workloads, we recommend using R2’s S3-compatible API or a Worker with an R2 binding instead.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Path Parameters
Header Parameters
Get Object
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/r2/buckets/$BUCKET_NAME/objects/$OBJECT_KEY \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"