Queries the unique visitor (UV) data of a specified accelerated domain or all the accelerated domains under your account. The data was collected at intervals of 1 hour. You can query data that was collected within the last 90 days.

Before you call this operation, pay attention to the following considerations:
  • If you do not specify the StartTime or EndTime parameter, the data collected within the last 24 hours is queried by default. If you specify the StartTime and EndTime parameters, the data collected within the specified time range is queried.
  • You can specify only one accelerated domain or all the accelerated domains under your account.

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 DescribeDcdnDomainUvData

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

DomainName String Yes example.com

The name of the accelerated domain. You can specify only one domain name.

By default, all the accelerated domains are queried.

StartTime String No 2015-11-29T00: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.

EndTime String No 2015-11-30T00:00: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 UTC.

The end time must be later than the start time.

Response parameters

Parameter Type Example Description
DataInterval String 3600

The data collection interval. Unit: second.

DomainName String example.com

The name of the accelerated domain for which the data was returned.

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

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

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

The ID of the request.

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

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

UvDataInterval Array

The number of UVs at each interval.

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

The timestamp of the data returned.

Value String 326

The number of UVs.

Examples

Sample requests

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

Sample success responses

XML format

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

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 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 parameter is invalid. The error message returned because the format of 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 format of 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 end time is earlier than the start time.
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.