Skip to main content
GET
/
pullzone
/
{pullZoneId}
/
safehop
/
statistics
Get SafeHop Statistics
curl --request GET \
  --url https://api.bunny.net/pullzone/{pullZoneId}/safehop/statistics \
  --header 'AccessKey: <api-key>'
{
  "RequestsRetriedChart": {},
  "RequestsSavedChart": {},
  "TotalRequestsRetried": 123,
  "TotalRequestsSaved": 123
}

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Path Parameters

pullZoneId
integer<int64>
required

(Optional) If set, the statistics will be only returned for the given Pull Zone

Query Parameters

dateFrom
string<date-time> | null

(Optional) The start date of the statistics. If no value is passed, the last 30 days will be returned.

dateTo
string<date-time> | null

(Optional) The end date of the statistics. If no value is passed, the last 30 days will be returned.

hourly
boolean
default:false

(Optional) If true, the statistics data will be returned in hourly groupping.

Response

The statistics data for the passed parameters.

RequestsRetriedChart
object

The constructed chart of requests retried

RequestsSavedChart
object

The constructed chart of requests saved

TotalRequestsRetried
number<double>

The total number of retried requests

TotalRequestsSaved
number<double>

The total number of saved requests