Search
Get Started
CD
Cloudflare Developers
โข
3y ago
Isaachi
worker
Hello how can i get r2 endpoint url
.
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
83,043
Members
View on Discord
Was this page helpful?
Yes
No
A
Adi
โข
10/17/23, 7:05 AM
Hey
Your question is a bit vague
, so I
'll give two answers
.
If you
're trying to access R2 from a cloudflare worker
, then you want to bind the R2 bucket to your worker and access it that way
. You can read more about it here
-
https://developers.cloudflare.com/r2/api/workers/workers-api-usage/
If you are trying to access it externally via an S3 client
Remember to enable public access on the bucket
You can find the S3 API url under the settings
-
> bucket details
(see picture
)
. The S3 url also follows a pretty standard convention
-
Use R2 from Workers ยท Cloudflare R2 docs
C3
(create
-cloudflare
-cli
) is a command
-line tool designed to help you set up and deploy Workers
& Pages applications to Cloudflare as fast as
โฆ
https://<accountID>.r2.cloudflarestorage.com/<bucketName>
https://<accountID>.r2.cloudflarestorage.com/<bucketName>