curl --request GET \
--url https://cdn-origin-logging.bunny.net/{pullZoneId}/{dateTime} \
--header 'AccessKey: <api-key>'{
"logs": [
{
"logId": "a6a6b755-b6a4-46be-b523-aa82a17d4bc5",
"timestamp": 1728952065848,
"log": "{\"RequestUrl\":\"/apikey\",\"PullZoneId\":308006,\"Message\":\"Origin DNS lookup failed...\",\"ErrorCode\":\"dns_lookup\",\"StatusCode\":502}",
"labels": {
"ErrorCode": "dns_lookup",
"StatusCode": "502",
"ServerZone": "CA"
}
}
]
}Retrieves origin error logs for the given Pull Zone and date.
curl --request GET \
--url https://cdn-origin-logging.bunny.net/{pullZoneId}/{dateTime} \
--header 'AccessKey: <api-key>'{
"logs": [
{
"logId": "a6a6b755-b6a4-46be-b523-aa82a17d4bc5",
"timestamp": 1728952065848,
"log": "{\"RequestUrl\":\"/apikey\",\"PullZoneId\":308006,\"Message\":\"Origin DNS lookup failed...\",\"ErrorCode\":\"dns_lookup\",\"StatusCode\":502}",
"labels": {
"ErrorCode": "dns_lookup",
"StatusCode": "502",
"ServerZone": "CA"
}
}
]
}Send your Access Key in the AccessKey header.
The ID of the Pull Zone.
The date for which to retrieve logs, formatted as MM-dd-yyyy.
"10-29-2025"
Successful response with log data
Show child attributes
Was this page helpful?