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

Before you call this operation, take note of the following rules:
  • If you do not set StartTime or EndTime, data collected within the last 24 hours is queried. If you set both StartTime and EndTime, data collected within the specified time range is queried.
  • You can specify only one accelerated domain or all the accelerated domain names that belong to your Alibaba Cloud account.
  • You can query data 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 DescribeDomainUvData

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

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 set this parameter, the data for all the accelerated domains that belong to your Alibaba Cloud account is returned.

StartTime String No 2015-11-29

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, the data generated within the last 24 hours is queried.
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-30

The end of the time range that was queried.

RequestId String E9D3257A-1B7C-414C-90C1-8D07AC47BCAC

The ID of the request.

StartTime String 2015-11-30

The beginning of the time range that was queried.

UvDataInterval Array

The data returned.

UsageData
TimeStamp String 2015-11-29T20:00:00Z

The timestamp of the data returned.

Value String 318

The number of unique visitors (UVs).

Examples

Sample requests

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

Sample success responses

XML format

<DescribeDomainUvDataResponse>
      <DataInterval>3600</DataInterval>
      <RequestId>E9D3257A-1B7C-414C-90C1-8D07AC47BCAC</RequestId>
      <DomainName>example.com</DomainName>
      <EndTime>2015-11-30T00:00:00Z</EndTime>
      <StartTime>2015-11-29T00:00:00Z</StartTime>
      <UvDataInterval>
            <UsageData>
                  <TimeStamp>2015-11-29T20:00:00Z</TimeStamp>
                  <Value>318</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T18:00:00Z</TimeStamp>
                  <Value>318</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T03:00:00Z</TimeStamp>
                  <Value>329</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T21:00:00Z</TimeStamp>
                  <Value>316</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T07:00:00Z</TimeStamp>
                  <Value>319</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T00:00:00Z</TimeStamp>
                  <Value>326</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T11:00:00Z</TimeStamp>
                  <Value>321</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T10:00:00Z</TimeStamp>
                  <Value>313</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T08:00:00Z</TimeStamp>
                  <Value>331</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T01:00:00Z</TimeStamp>
                  <Value>324</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T04:00:00Z</TimeStamp>
                  <Value>330</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T14:00:00Z</TimeStamp>
                  <Value>335</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T12:00:00Z</TimeStamp>
                  <Value>318</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T23:00:00Z</TimeStamp>
                  <Value>310</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T17:00:00Z</TimeStamp>
                  <Value>309</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T22:00:00Z</TimeStamp>
                  <Value>320</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T16:00:00Z</TimeStamp>
                  <Value>309</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T02:00:00Z</TimeStamp>
                  <Value>317</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T06:00:00Z</TimeStamp>
                  <Value>309</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T19:00:00Z</TimeStamp>
                  <Value>308</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T13:00:00Z</TimeStamp>
                  <Value>347</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T15:00:00Z</TimeStamp>
                  <Value>341</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T05:00:00Z</TimeStamp>
                  <Value>347</Value>
            </UsageData>
            <UsageData>
                  <TimeStamp>2015-11-29T09:00:00Z</TimeStamp>
                  <Value>312</Value>
            </UsageData>
      </UvDataInterval>
</DescribeDomainUvDataResponse>

JSON format

{
    "DataInterval": "3600",
    "RequestId": "E9D3257A-1B7C-414C-90C1-8D07AC47BCAC",
    "DomainName": "example.com",
    "EndTime": "2015-11-30T00:00:00Z",
    "StartTime": "2015-11-29T00:00:00Z",
    "UvDataInterval": {
        "UsageData": [
            {
                "TimeStamp": "2015-11-29T20:00:00Z",
                "Value": "318"
            },
            {
                "TimeStamp": "2015-11-29T18:00:00Z",
                "Value": "318"
            },
            {
                "TimeStamp": "2015-11-29T03:00:00Z",
                "Value": "329"
            },
            {
                "TimeStamp": "2015-11-29T21:00:00Z",
                "Value": "316"
            },
            {
                "TimeStamp": "2015-11-29T07:00:00Z",
                "Value": "319"
            },
            {
                "TimeStamp": "2015-11-29T00:00:00Z",
                "Value": "326"
            },
            {
                "TimeStamp": "2015-11-29T11:00:00Z",
                "Value": "321"
            },
            {
                "TimeStamp": "2015-11-29T10:00:00Z",
                "Value": "313"
            },
            {
                "TimeStamp": "2015-11-29T08:00:00Z",
                "Value": "331"
            },
            {
                "TimeStamp": "2015-11-29T01:00:00Z",
                "Value": "324"
            },
            {
                "TimeStamp": "2015-11-29T04:00:00Z",
                "Value": "330"
            },
            {
                "TimeStamp": "2015-11-29T14:00:00Z",
                "Value": "335"
            },
            {
                "TimeStamp": "2015-11-29T12:00:00Z",
                "Value": "318"
            },
            {
                "TimeStamp": "2015-11-29T23:00:00Z",
                "Value": "310"
            },
            {
                "TimeStamp": "2015-11-29T17:00:00Z",
                "Value": "309"
            },
            {
                "TimeStamp": "2015-11-29T22:00:00Z",
                "Value": "320"
            },
            {
                "TimeStamp": "2015-11-29T16:00:00Z",
                "Value": "309"
            },
            {
                "TimeStamp": "2015-11-29T02:00:00Z",
                "Value": "317"
            },
            {
                "TimeStamp": "2015-11-29T06:00:00Z",
                "Value": "309"
            },
            {
                "TimeStamp": "2015-11-29T19:00:00Z",
                "Value": "308"
            },
            {
                "TimeStamp": "2015-11-29T13:00:00Z",
                "Value": "347"
            },
            {
                "TimeStamp": "2015-11-29T15:00:00Z",
                "Value": "341"
            },
            {
                "TimeStamp": "2015-11-29T05:00:00Z",
                "Value": "347"
            },
            {
                "TimeStamp": "2015-11-29T09:00:00Z",
                "Value": "312"
            }
        ]
    }
}

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 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.
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.

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