Skip to main content
GET
/
dnszone
List DNS Zones
curl --request GET \
  --url https://api.bunny.net/dnszone \
  --header 'AccessKey: <api-key>'
{
  "Items": [
    {
      "Id": 123,
      "Domain": "<string>",
      "Records": [
        {
          "Id": 123,
          "Type": 0,
          "Ttl": 123,
          "Value": "<string>",
          "Name": "<string>",
          "Weight": 123,
          "Priority": 123,
          "Port": 123,
          "Flags": 123,
          "Tag": "<string>",
          "Accelerated": true,
          "AcceleratedPullZoneId": 123,
          "LinkName": "<string>",
          "IPGeoLocationInfo": {
            "CountryCode": "<string>",
            "Country": "<string>",
            "ASN": 123,
            "OrganizationName": "<string>",
            "City": "<string>"
          },
          "GeolocationInfo": {
            "Country": "<string>",
            "City": "<string>",
            "Latitude": 123,
            "Longitude": 123
          },
          "MonitorStatus": 0,
          "MonitorType": 0,
          "GeolocationLatitude": 123,
          "GeolocationLongitude": 123,
          "EnviromentalVariables": [
            {
              "Name": "<string>",
              "Value": "<string>"
            }
          ],
          "LatencyZone": "<string>",
          "SmartRoutingType": 0,
          "Disabled": true,
          "Comment": "<string>",
          "AutoSslIssuance": true,
          "AccelerationStatus": 0
        }
      ],
      "DateModified": "2023-11-07T05:31:56Z",
      "DateCreated": "2023-11-07T05:31:56Z",
      "NameserversDetected": true,
      "CustomNameserversEnabled": true,
      "Nameserver1": "<string>",
      "Nameserver2": "<string>",
      "SoaEmail": "<string>",
      "NameserversNextCheck": "2023-11-07T05:31:56Z",
      "LoggingEnabled": true,
      "LoggingIPAnonymizationEnabled": true,
      "LogAnonymizationType": 0,
      "DnsSecEnabled": true,
      "CertificateKeyType": 0
    }
  ],
  "CurrentPage": 123,
  "TotalItems": 123,
  "HasMoreItems": true
}

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Query Parameters

page
integer<int32>
default:1
Required range: 1 <= x <= 2147483647
perPage
integer<int32>
default:1000
Required range: 5 <= x <= 1000
search
string | null

The search term that will be used to filter the results

Response

The list of DNS Zones on the account.

Items
object[] | null
CurrentPage
integer<int32>
TotalItems
integer<int32>
HasMoreItems
boolean