Skip to content

CloudFlare R2 bucket total downloads #11681

Open

Description

@mcandre

📋 Description

Hi!

I would love a badge to show off the number of CloudFlare R2 downloads when users download files from my buckets.

🔗 Data

https://developers.cloudflare.com/analytics/graphql-api/

🎤 Motivation

Engineers unfortunately have to choose between CDN's like R2 exclusive-or badges.

Activity

  1. jNullj commented on Feb 15, 2026

    @jNullj
    Member

    Hey, thank you for the suggest.
    It seems we don't have a badge implementing the CloudFlare API yet.

    Going briefly over the API here are some things to consider

    1. The current rate limit) is about 300 requests / 5 min. We may need to reach out for higher limits or cache for longer if the badge gets popular.
    2. Authentication seems to be required, we may need to open an account.
    3. Can a user we open query other user's analytics?
    4. If the answer to 3 is no, can a user safely share an API token publicly, will that expose more info, can it be scoped?

    If anyone have some experience with the API or could figure some of it out, please share the info with us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    service-badgeNew or updated service badge

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions