Calls the DescribeDomainStatistics operation to obtain the real-time query volume of a specified primary domain name.

Real-time data is collected per hour.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeDomainStatistics

The operation that you want to perform. Set the value to DescribeDomainStatistics.

DomainName String Yes dns-example.com

The domain name.

EndDate String Yes 2019-07-04

The end of the time range to query. Specify the time in the YYYY-MM-DD format.

The default value is the day when you perform the operation.

StartDate String Yes 2019-07-04

The beginning of the time range to query. Specify the time in the YYYY-MM-DD format.

You can only query the DNS records of the last 90 days.

Lang String No en

The language type.

Response parameters

Parameter Type Example Description
RequestId String 6AEC7A64-3CB1-4C49-8B35-0B901F1E26BF

The ID of the request.

Statistics Array

The list of query volume records.

Statistic

Details about a query volume record.

Count Long 15292887

The number of queries.

Timestamp Long 1556640000000

The UNIX timestamp representing the collection time.

Examples

Sample requests


http(s)://[Endpoint]/?Action=DescribeDomainStatistics
&DomainName=dns-example.com
&EndDate=2019-07-04
&StartDate=2019-07-04
&<Common request parameters>

Sample success responses

XML format

<DescribeDomainDnsStatisticsResponse>
  <Statistics>
      <Statistic>
          <Count>15292887</Count>
          <Timestamp>1556640000000</Timestamp>
      </Statistic>
      <Statistic>
          <Count>15278215</Count>
          <Timestamp>1556726400000</Timestamp>
      </Statistic>
  </Statistics>
  <RequestId>6AEC7A64-3CB1-4C49-8B35-0B901F1E26BF</RequestId>
</DescribeDomainDnsStatisticsResponse>

JSON format

{
	"Statistics":{
		"Statistic":[
			{
				"Count":15292887,
				"Timestamp":1556640000000
			},
			{
				"Count":15278215,
				"Timestamp":1556726400000
			}
		]
	},
	"RequestId":"6AEC7A64-3CB1-4C49-8B35-0B901F1E26BF"
}

Error codes

For a list of error codes, visit the API Error Center.