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>'
{
  "TotalRequestsRetried": 123,
  "TotalRequestsSaved": 123,
  "RequestsRetriedChart": {},
  "RequestsSavedChart": {}
}

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>

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

dateTo
string<date-time>

(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.

TotalRequestsRetried
number<double>
required

The total number of retried requests

TotalRequestsSaved
number<double>
required

The total number of saved requests

RequestsRetriedChart
object

The constructed chart of requests retried

RequestsSavedChart
object

The constructed chart of requests saved