You can call this operation to query unique visitor (UV) statistics. The minimum data sampling interval is one hour.

When you call this operation, follow these rules:
  • If you do not specify the StartTime and EndTime parameters, the data within the last 24 hours is queried. If you specify the StartTime and EndTime parameters, the data within the specified time range is queried.
  • You can specify only one accelerated domain or all the accelerated domains under your account.
  • The maximum time range that can be specified is 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 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. If you do not specify this parameter, all the accelerated domains under your account are queried.

EndTime String No 2015-11-30T00: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-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.
  • The minimum time 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 visit data. Unit: seconds. The interval is fixed at one hour.

DomainName String example.com

The name of the accelerated domain returned.

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

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

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

UvDataInterval

The number of UVs for each interval.

UsageData

The number of UVs for each interval.

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

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.