Login

Get DNS request statistics for selected domain name

HTTP method

GET

URL

https://api.zilore.com/dns/v1/domains/{domain_name}/statistics

Request parameters

Parameter

Description

domain_name

Domain name. Must conform to the standard. Names of national domains must be passed in Punycode format.

Additional parameters

Parameter

Description

period

Period to obtain request details:

  • today — Today (by hour)
  • week — This week (by day)
  • month — This month (by day)
  • last_month — Last month (by day)

Response fields

Parameter

Description

presets.today

Requests today.

presets.week

Requests this week.

presets.month

Requests this month.

presets.last_month

Requests last month.

If the period parameter equals today, additionally returns request statistics by hour; if it equals week, then by day of the week; if it equals month or last_month, then by day of the month.

Request example

GET https://api.zilore.com/dns/v1/domains/example.com/statistics?period=month
X-Auth-Key: 6fac94db-691b-ec08-d22c-00000b7c06c0

Response example

{
"status": "ok",
"response": {
"presets": {
"today": "0",
"week": "0",
"month": "0",
"last_month": "0"
},
"month": {
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0,
"10": 0,
"11": 0,
"12": 0,
"13": 0,
"14": 0,
"15": 0,
"16": 0,
"17": 0,
"18": 0,
"19": 0,
"20": 0,
"21": 0,
"22": 0,
"23": 0,
"24": 0,
"25": 0,
"26": 0,
"27": 0,
"28": 0,
"29": 0,
"30": 0
}
}
}