Queries the page view (PV) data of an accelerated domain name. The data is collected every hour.

Note
  • If you do not set the StartTime or EndTime parameter, data collected within the last 24 hours is queried. If you set both the StartTime and EndTime parameters, data collected within the specified time range is queried.
  • You can specify only one accelerated domain or all the accelerated domains that belong to your Alibaba Cloud account.
  • You can query data collected within the last 90 days.

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 DescribeDomainPvData

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

DomainName String No example.com

The accelerated domain name for which you want to query data. You can specify only one domain name. If you do not specify this parameter, the data for all the accelerated domains of your account is returned.

StartTime String No 2015-11-28

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.
  • Data is collected every hour.
  • If you do not set this parameter, data within the last 24 hours is returned.
EndTime String No 2015-11-29

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.

Response parameters

Parameter Type Example Description 
DataInterval String 3600

The time interval between the data entries.

DomainName String example.com

The accelerated domain name.

EndTime String 2015-11-29

The end of the time range that was queried.

PvDataInterval Array of UsageData

The PV data.

UsageData
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-28

The beginning of the time range that was queried.

Examples

Sample requests

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

Sample success responses

XML format

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

JSON format

{
    "DataInterval": "3600",
    "RequestId": "BCD7D917-76F1-442F-BB75-C810DE34C761",
    "DomainName": "example.com",
    "EndTime": "2015-11-29T00:00:00Z",
    "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"
            }
        ]
    },
    "StartTime": "2015-11-28T00:00:00Z"
}

Error codes

HttpCode Error code Error message Description
400 MissingParameter StartTime and EndTime can not be single. The error message returned because both the StartTime and EndTime parameters must be set.
400 InvalidStartTime.Malformed Specified StartTime is malformed. The error message returned because the format of the specified start time is invalid. For more information about the time format, see the Request parameters section.
400 InvalidEndTime.Malformed Specified EndTime is malformed. The error message returned because the format of the specified end time is invalid. For more information about the time format, see the Request parameters section.
400 InvalidEndTime.Mismatch Specified end time does not math the specified start time. The error message returned because the end time must be later than the start time.
400 InvalidStartTime.ValueNotSupported The specified value of parameter StartTime is not supported. The error message returned because the specified start time is invalid. Rectify the start time and try again.
400 InvalidDomainName.ValueNotSupported The specified value of parameter DomainName only support one or empty value. The error message returned because you can specify at most one accelerated domain name for the DomainName parameter.

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