DNS StatisticsGet Zone Statistics (Yearly)

Get Zone Statistics (Yearly)

curl -X GET "https://api.5centscdn.com/v2/dns/example_string/statistics/yearly" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
{
  "data": {
    "2025": "487000",
    "2026": "520000"
  },
  "options": {
    "months": {
      "01": "Jan",
      "02": "Feb"
    },
    "years": [
      "2026",
      "2025"
    ]
  },
  "message": "example_string"
}
GET
/dns/{dnsId}/statistics/yearly
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 year string keys to total DNS query counts for that year.

optionsobject

Navigation and filter options for the statistics view.

messagestring

Optional informational message accompanying the response.