Calls the DescribeRecordStatistics operation to obtain the real-time query volume of a specified subdomain 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 DescribeRecordStatistics

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

DomainName String Yes dns-example.com

The domain name.

Rr String Yes www.dns-exmaple.com

The DNS record.

The host record. For example, to resolve www.dns-exmaple.com, you must set Rr to www.

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 DNS records of the last 90 days.

EndDate String No 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.

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)://alidns.aliyuncs.com/?Action=DescribeRecordStatistics
&DomainName=dns-example.com
&Rr=www.dns-exmaple.com
&StartDate=2019-07-04
&<Common request parameters>

Sample success responses

XML format

<DescribeRecordStatisticsHistoryResponse>
    <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>
</DescribeRecordStatisticsHistoryResponse>

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.