DNS StatisticsGet Zone Statistics (Last 30 Days)

Get Zone Statistics (Last 30 Days)

curl -X GET "https://api.5centscdn.com/v2/dns/example_string/statistics/last30" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
{
  "data": {
    "2026-01-01": 12500,
    "2026-01-02": 9800
  },
  "options": {
    "months": {
      "01": "Jan",
      "02": "Feb"
    },
    "years": [
      "2026",
      "2025"
    ]
  },
  "message": "example_string"
}
GET
/dns/{dnsId}/statistics/last30
GET
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key (sent in header)

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. Provide your API key in the header.

Path Parameters

Responses

dataobject

Map of date keys (YYYY-MM-DD) to DNS query counts for the last 30 days.

optionsobject

Navigation and filter options for the statistics view.

messagestring

Optional informational message accompanying the response.