Searching an R2 bucket

I was wondering if there was an API available that would allow me to query the bucket? The Cloudflare dashboard seems to have an API that will do a lookup, I’m looking for an equivalent API I can leverage with basic filtering ability.

You should look at the S3 List API that will work with Cloudflare R2 as all it does it list by the prefix.
Can see R2 supported operations here: S3 API compatibility · Cloudflare R2 docs
AWS docs on list objects: ListObjectsV2 - Amazon Simple Storage Service

1 Like