You can call this operation to query the Internet service provider (ISP)-specific traffic and the number of visits for one or more CDN domains in one or all regions. The time granularity is one minute.

You can only query the data within the last seven days in each call. The time range specified by the StartTime and EndTime parameters cannot exceed 10 minutes for a query.

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 DescribeDomainRealTimeDetailData

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

DomainName String Yes example.com

The name of the CDN domain that you want to query data for. You can specify multiple CDN domains and separate them with commas (,).

EndTime String Yes 2018-06-05T20:03:00Z

The end of the time range to query. Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time must be in Coordinated Universal Time (UTC).

Field String Yes qps

The field that you want to query. You can specify multiple fields and separate them with commas (,).

Valid values: qps, bps, and http_code.

StartTime String Yes 2018-06-05T20:00:00Z

The beginning of the time range to query. Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC.

IspNameEn String No unicom

The English name of the ISP for your CDN service. To query ISPs, call the DescribeCdnRegionAndIsp operation. If you do not set this parameter, the data of the CDN domains for all ISPs is queried.

LocationNameEn String No beijing

The English name of the region. To query region names, call the DescribeCdnRegionAndIsp operation. If you do not set this parameter, the data of the CDN domains in all regions is queried.

Merge String No false

Specifies whether to output a summary value. Valid values: true and false. Default value: false.

Response parameters

Parameter Type Example Description
Data String "Data":{ "2018-06-05T20:00:00Z": { "example.com": { "Guangdong": { "telecom": 10.0 }, "Jiangsu": { "unicom": 11.1 } } } }

The details returned for the ISPs and regions queried.

RequestId String B49E6DDA-F413-422B-B58E-2FA23F286726

The ID of the request.

Examples

Sample requests

http://cdn.aliyuncs.com?Action=DescribeDomainTopReferVisit
&DomainName=example.com
&field=qps
&StartTime=2018-06-05T20:00:00Z
&EndTime=2018-06-05T20:03:00Z
&<Common request parameters>

Sample success responses

XML format

<DescribeDomainRealTimeDetailDataResponse>
  <Data>
            <example.com>
                  <Guangdong>
                        <telecom>10</telecom>
                  </Guangdong>
                  <Jiangsu>
                        <unicom>11.1</unicom>
                  </Jiangsu>
            </example.com>
  </Data>
  <RequestId>B49E6DDA-F413-422B-B58E-2FA23F286726</RequestId>
</DescribeDomainRealTimeDetailDataResponse>

JSON format

{
	"Data":{
		"2018-06-05T20:00:00Z":{
			"example.com":{
				"Guangdong":{
					"telecom":10.0
				},
				"Jiangsu":{
					"unicom":11.1
				}
			}
		}
	},
	"RequestId":"B49E6DDA-F413-422B-B58E-2FA23F286726"
}

Error codes

HTTP status code Error code Error message Description
400 InvalidTime.Malformed Specified StartTime or EndTime is malformed. The error message returned because the specified start time or end time is incorrectly formatted.

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