---
title: "Get Edge Script Statistics"
method: GET
path: "/compute/script/{id}/statistics"
tags: ["Edge Script"]
---

# Get Edge Script Statistics

`GET /compute/script/{id}/statistics`

## Path parameters

- `id` integer, required

## Query parameters

- `dateFrom` string, date-time, nullable
- `dateTo` string, date-time, nullable
- `loadLatest` boolean
- `hourly` boolean

## Response `200`

Returns the statistics for the Edge Script with the given ID

- EdgeScriptStatisticsModel
  - `TotalRequestsServed` integer
  - `TotalCpuUsed` number, double
  - `TotalMonthlyCost` number
  - `AverageCpuTimePerExecution` number, double
  - `RequestsServedChart` object, nullable
  - `AverageCpuTimeChart` object, nullable
  - `TotalCpuTimeChart` object, nullable

## Other responses

- `401` — The request authorization failed
- `404` — The Edge Script with the requested ID does not exist
- `500` — Internal Server Error

---

[API](https://skmtc.net/bunny/apis/bunny-net-cdn-logging.md) · [All operations](https://skmtc.net/bunny/apis/bunny-net-cdn-logging/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bunny/bunny-net-cdn-logging/versions/9e622620664b/schema)
