This guide walks you through making your first API request to bunny.net.
Get your API key
- Log in to the bunny.net dashboard
- Navigate to Account > API
- Copy your Account API Key
Keep your API key secure and never share it publicly.
Make your first request
Use the following curl command to list your pull zones:curl --request GET \
--url https://api.bunny.net/pullzone \
--header 'AccessKey: YOUR_API_KEY' \
--header 'Content-Type: application/json'
Replace YOUR_API_KEY with the API key you copied from the dashboard. View the response
A successful response returns a list of your pull zones:{
"Items": [
{
"Id": 1234,
"Name": "my-pull-zone",
"OriginUrl": "https://example.com",
"Enabled": true,
"Hostnames": [
{
"Id": 5678,
"Value": "my-pull-zone.b-cdn.net"
}
]
}
],
"CurrentPage": 0,
"TotalItems": 1,
"HasMoreItems": false
}
If you don’t have any pull zones yet, the Items array will be empty. Integrate with other APIs
Explore the full range of bunny.net APIs: Last modified on January 14, 2026