Skip to main content
This guide walks you through making your first API request to bunny.net.
1

Get your API key

  1. Log in to the bunny.net dashboard
  2. Navigate to Account > API
  3. Copy your Account API Key
Keep your API key secure and never share it publicly.
2

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

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

Integrate with other APIs

Explore the full range of bunny.net APIs: