You can call this operation to query page view (PV) statistics. The minimum data granularity is one 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 DescribeDcdnDomainPvData

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

DomainName String Yes example.com

The name of the accelerated domain. You can specify only one domain name. If you do not specify this parameter, all the accelerated domains under your account are queried.

EndTime String No 2015-11-29T00:00:00Z

The end of the time range to query.

  • The end time must be later than the start time.
  • Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
StartTime String No 2015-11-28T00: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.
  • The minimum data granularity is one hour.
  • If you do not specify this parameter, the data within the last 24 hours is queried.

Response parameters

Parameter Type Example Description
DataInterval String 3600

The sampling interval of the data. The interval can be one hour or one day.

DomainName String example.com

The name of the accelerated domain returned.

EndTime String 2015-11-29T00:00:00Z

The end of the time range during which the data was queried.

PvDataInterval

The number of PVs for each interval.

TimeStamp String 2015-11-28T03:00:00Z

The timestamp of the data returned.

Value String 9292

The number of PVs.

RequestId String BCD7D917-76F1-442F-BB75-C810DE34C761

The ID of the request.

StartTime String 2015-11-28T00:00:00Z

The beginning of the time range during which the data was queried.

Examples

Sample requests

http://dcdn.aliyuncs.com?Action=DescribeDcdnDomainPvData
&DomainName=example.com
&StartTime=2015-11-28T00:00:00Z
&EndTime=2015-11-29T00:00:00Z
&<Common request parameters>

Sample success responses

XML format

<DescribeDcdnDomainPvDataResponse>
	  <DataInterval>3600</DataInterval>
	  <RequestId>BCD7D917-76F1-442F-BB75-C810DE34C761</RequestId>
	  <DomainName>example.com</DomainName>
	  <EndTime>2015-11-29T00:00:00Z</EndTime>
	  <PvDataInterval>
		    <UsageData>
			      <TimeStamp>2015-11-28T03:00:00Z</TimeStamp>
			      <Value>9292</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T23:00:00Z</TimeStamp>
			      <Value>9239</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T07:00:00Z</TimeStamp>
			      <Value>9464</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T12:00:00Z</TimeStamp>
			      <Value>9379</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T22:00:00Z</TimeStamp>
			      <Value>9243</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T10:00:00Z</TimeStamp>
			      <Value>10063</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T15:00:00Z</TimeStamp>
			      <Value>9068</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T14:00:00Z</TimeStamp>
			      <Value>9353</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T04:00:00Z</TimeStamp>
			      <Value>9513</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T02:00:00Z</TimeStamp>
			      <Value>9377</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T08:00:00Z</TimeStamp>
			      <Value>9579</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T20:00:00Z</TimeStamp>
			      <Value>9109</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T09:00:00Z</TimeStamp>
			      <Value>10631</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T06:00:00Z</TimeStamp>
			      <Value>9587</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T01:00:00Z</TimeStamp>
			      <Value>9108</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T16:00:00Z</TimeStamp>
			      <Value>9454</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T21:00:00Z</TimeStamp>
			      <Value>9285</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T19:00:00Z</TimeStamp>
			      <Value>9059</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T00:00:00Z</TimeStamp>
			      <Value>9470</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T05:00:00Z</TimeStamp>
			      <Value>11830</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T13:00:00Z</TimeStamp>
			      <Value>9992</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T17:00:00Z</TimeStamp>
			      <Value>9529</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T18:00:00Z</TimeStamp>
			      <Value>9203</Value>
		    </UsageData>
		    <UsageData>
			      <TimeStamp>2015-11-28T11:00:00Z</TimeStamp>
			      <Value>9604</Value>
		    </UsageData>
	  </PvDataInterval>
	  <StartTime>2015-11-28T00:00:00Z</StartTime>
</DescribeDcdnDomainPvDataResponse>

JSON format

{
	"DataInterval":"3600",
	"RequestId":"BCD7D917-76F1-442F-BB75-C810DE34C761",
	"DomainName":"example.com",
	"PvDataInterval":{
		"UsageData":[
			{
				"TimeStamp":"2015-11-28T03:00:00Z",
				"Value":"9292"
			},
			{
				"TimeStamp":"2015-11-28T23:00:00Z",
				"Value":"9239"
			},
			{
				"TimeStamp":"2015-11-28T07:00:00Z",
				"Value":"9464"
			},
			{
				"TimeStamp":"2015-11-28T12:00:00Z",
				"Value":"9379"
			},
			{
				"TimeStamp":"2015-11-28T22:00:00Z",
				"Value":"9243"
			},
			{
				"TimeStamp":"2015-11-28T10:00:00Z",
				"Value":"10063"
			},
			{
				"TimeStamp":"2015-11-28T15:00:00Z",
				"Value":"9068"
			},
			{
				"TimeStamp":"2015-11-28T14:00:00Z",
				"Value":"9353"
			},
			{
				"TimeStamp":"2015-11-28T04:00:00Z",
				"Value":"9513"
			},
			{
				"TimeStamp":"2015-11-28T02:00:00Z",
				"Value":"9377"
			},
			{
				"TimeStamp":"2015-11-28T08:00:00Z",
				"Value":"9579"
			},
			{
				"TimeStamp":"2015-11-28T20:00:00Z",
				"Value":"9109"
			},
			{
				"TimeStamp":"2015-11-28T09:00:00Z",
				"Value":"10631"
			},
			{
				"TimeStamp":"2015-11-28T06:00:00Z",
				"Value":"9587"
			},
			{
				"TimeStamp":"2015-11-28T01:00:00Z",
				"Value":"9108"
			},
			{
				"TimeStamp":"2015-11-28T16:00:00Z",
				"Value":"9454"
			},
			{
				"TimeStamp":"2015-11-28T21:00:00Z",
				"Value":"9285"
			},
			{
				"TimeStamp":"2015-11-28T19:00:00Z",
				"Value":"9059"
			},
			{
				"TimeStamp":"2015-11-28T00:00:00Z",
				"Value":"9470"
			},
			{
				"TimeStamp":"2015-11-28T05:00:00Z",
				"Value":"11830"
			},
			{
				"TimeStamp":"2015-11-28T13:00:00Z",
				"Value":"9992"
			},
			{
				"TimeStamp":"2015-11-28T17:00:00Z",
				"Value":"9529"
			},
			{
				"TimeStamp":"2015-11-28T18:00:00Z",
				"Value":"9203"
			},
			{
				"TimeStamp":"2015-11-28T11:00:00Z",
				"Value":"9604"
			}
		]
	},
	"EndTime":"2015-11-29T00:00:00Z",
	"StartTime":"2015-11-28T00:00:00Z"
}

Error codes

HTTP status code Error code Error message Description
400 MissingTimeParameter The StartTime and EndTime must be both specified. The error message returned because the StartTime and EndTime parameters must be specified together.
400 InvalidStartTime.Malformed The specified StartTime is invalid. The error message returned because the specified StartTime parameter is invalid. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
400 InvalidEndTime.Malformed The specified EndTime is invalid. The error message returned because the specified EndTime parameter is invalid. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
400 InvalidEndTime.Mismatch The specified EndTime is earlier than the StartTime. The error message returned because the specified EndTime parameter is earlier than the specified StartTime parameter.
400 InvalidStartTime.ValueNotSupported The specified StartTime is invalid. The error message returned because the specified start time is invalid.

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