Bunny.net Statistics API

The Statistics API from Bunny.net — 3 operation(s) for statistics.

GitHub OpenAPI

Operations 1

GET /statistics Get Statistics #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/bunny-net:bunny-net-statistics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

bunny-net-statistics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: bunny.net Statistics API
  description: 'Learn how to use the bunny.net API. Everything that can be done with the control panel can also be achieved with our API documented on this page. To learn how to use the storage API, have a look at our storage API documentation


    Third party API clients:


    We currently do not maintain an official API library, but you can use one of the third party ones provided here:


    https://github.com/codewithmark/bunnycdn (bunny.net PHP library, thanks to Code With Mark)


    Note that third party clients are not maintained or developed by bunny.net so we unfortunately cannot offer support for them.'
  termsOfService: https://bunny.net/tos
  contact:
    name: bunny.net
    url: https://docs.bunny.net
    email: support@bunny.net
  version: 1.0.0
servers:
- url: https://api.bunny.net
  description: bunny.net API Server
tags:
- name: Statistics
paths:
  /statistics:
    get:
      tags:
      - Statistics
      summary: Get Statistics
      operationId: StatisticsPublic_Index
      parameters:
      - name: dateFrom
        in: query
        description: (Optional) The start date of the statistics. If no value is passed, the last 30 days will be returned.
        x-nullable: true
        schema:
          type: string
          format: date-time
      - name: dateTo
        in: query
        description: (Optional) The end date of the statistics. If no value is passed, the last 30 days will be returned.
        x-nullable: true
        schema:
          type: string
          format: date-time
      - name: pullZone
        in: query
        description: (Optional) If set, the statistics will be only returned for the given Pull Zone
        schema:
          type: integer
          format: int64
          default: '-1'
      - name: serverZoneId
        in: query
        description: (Optional) If set, the statistics will be only returned for the given region ID
        schema:
          type: integer
          format: int64
          default: '-1'
      - name: loadErrors
        in: query
        description: (Optional) If set, the respose will contain the non-2xx response
        schema:
          type: boolean
          default: false
      - name: hourly
        in: query
        description: (Optional) If true, the statistics data will be returned in hourly groupping.
        schema:
          type: boolean
          default: false
      - name: loadOriginResponseTimes
        in: query
        description: Load Origin Response Times
        schema:
          type: boolean
          default: false
      - name: loadOriginTraffic
        in: query
        description: Load Origin Traffic
        schema:
          type: boolean
          default: false
      - name: loadRequestsServed
        in: query
        description: Load Requests Served
        schema:
          type: boolean
          default: false
      - name: loadBandwidthUsed
        in: query
        description: Load Bandwidth Used
        schema:
          type: boolean
          default: false
      - name: loadOriginShieldBandwidth
        in: query
        description: Load Origin Shield Bandwidth
        schema:
          type: boolean
          default: false
      - name: loadGeographicTrafficDistribution
        in: query
        description: Load Geographic Traffic Distribution
        schema:
          type: boolean
          default: false
      - name: loadUserBalanceHistory
        in: query
        description: Load User Balance History
        schema:
          type: boolean
          default: false
      responses:
        '200':
          description: The statistics data for the passed parameters.
          x-nullable: false
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatisticsModel'
            application/xml:
              schema:
                $ref: '#/components/schemas/StatisticsModel'
        '400':
          x-nullable: false
          description: Failed removing hostname
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorData'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiErrorData'
        '401':
          description: The request authorization failed
        '500':
          description: Internal Server Error
        '503':
          description: The service is currently unavailable
      security:
      - AccessKey:
        - SubuserAPIManage
        - SubuserAPIStatistics
        - SubuserManage
        - SubuserStatistics
        - User
        - UserApi
      description: The statistics data for the passed parameters.
components:
  schemas:
    StatisticsModel:
      type: object
      additionalProperties: false
      properties:
        TotalBandwidthUsed:
          type: integer
          format: int64
        TotalOriginTraffic:
          type: integer
          format: int64
          description: The total amount of traffic received from the origin
        AverageOriginResponseTime:
          type: integer
          format: int32
          description: The median response time origin
        OriginResponseTimeChart:
          type:
          - object
          - 'null'
          additionalProperties:
            type: number
            format: double
          description: The constructed origin response time chart data
        TotalRequestsServed:
          type: integer
          format: int64
          description: The total requests served by the response in the given time range
        CacheHitRate:
          type: number
          format: double
          description: The average cache hit rate in the response in the given time range
        BandwidthUsedChart:
          type:
          - object
          - 'null'
          additionalProperties:
            type: number
            format: double
          description: The constructed bandwdidth used chart data
        BandwidthCachedChart:
          type:
          - object
          - 'null'
          additionalProperties:
            type: number
            format: double
          description: The constructed cached bandwdidth used chart data
        CacheHitRateChart:
          type:
          - object
          - 'null'
          additionalProperties:
            type: number
            format: double
          description: The constructed cache hit rate chart data
        RequestsServedChart:
          type:
          - object
          - 'null'
          additionalProperties:
            type: number
            format: double
          description: The constructed requests served chart data
        PullRequestsPulledChart:
          type:
          - object
          - 'null'
          additionalProperties:
            type: number
            format: double
          description: The constructed uncached requests served chart data
        OriginShieldBandwidthUsedChart:
          type:
          - object
          - 'null'
          additionalProperties:
            type: number
            format: double
          description: The constructed origin shield bandwdidth used chart data
        OriginShieldInternalBandwidthUsedChart:
          type:
          - object
          - 'null'
          additionalProperties:
            type: number
            format: double
          description: The constructed origin shield internal bandwdidth used chart data
        OriginTrafficChart:
          type:
          - object
          - 'null'
          additionalProperties:
            type: number
            format: double
          description: The constructed origin traffic used chart data
        UserBalanceHistoryChart:
          type:
          - object
          - 'null'
          additionalProperties:
            type: number
            format: double
          description: The constructed user balance history chart data
        GeoTrafficDistribution:
          type:
          - object
          - 'null'
          additionalProperties:
            type: integer
            format: int64
          description: The geo traffic distribution data
        Error3xxChart:
          type:
          - object
          - 'null'
          additionalProperties:
            type: number
            format: double
          description: The constructed 3XX error responses chart data
        Error4xxChart:
          type:
          - object
          - 'null'
          additionalProperties:
            type: number
            format: double
          description: The constructed 4XX error responses chart data
        Error5xxChart:
          type:
          - object
          - 'null'
          additionalProperties:
            type: number
            format: double
          description: The constructed 5XX error responses chart data
      required:
      - TotalBandwidthUsed
      - TotalOriginTraffic
      - AverageOriginResponseTime
      - TotalRequestsServed
      - CacheHitRate
  securitySchemes:
    AccessKey:
      type: apiKey
      description: API Access Key authorization header
      name: AccessKey
      in: header
x-generator: Dynamic OpenAPI Generator v1.0.0
x-provenance:
  method: harvested
  publisher: Bunny.net
  source: https://bunny.net/docs/openapi/bunnynet-api-1.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)