curl --request GET \
--url https://api.bunny.net/compute/script/{id}/statistics \
--header 'AccessKey: <api-key>'{
"TotalRequestsServed": 123,
"TotalCpuUsed": 123,
"TotalMonthlyCost": 123,
"AverageCpuTimePerExecution": 123,
"RequestsServedChart": {},
"AverageCpuTimeChart": {},
"TotalCpuTimeChart": {}
}Returns the statistics for the Edge Script with the given ID
curl --request GET \
--url https://api.bunny.net/compute/script/{id}/statistics \
--header 'AccessKey: <api-key>'{
"TotalRequestsServed": 123,
"TotalCpuUsed": 123,
"TotalMonthlyCost": 123,
"AverageCpuTimePerExecution": 123,
"RequestsServedChart": {},
"AverageCpuTimeChart": {},
"TotalCpuTimeChart": {}
}API Access Key authorization header
The ID of the Edge Script for which the statistics will be returned
(Optional) The start date of the statistics. If no value is passed, the last 30 days will be returned
(Optional) The end date of the statistics. If no value is passed, the last 30 days will be returned
(Optional) Load most recent data as soon as it's available
(Optional) If true, the statistics data will be returned in hourly groupping.
Returns the statistics for the Edge Script with the given ID
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?