Skip to main content

Get Volume

Retrieves the data sample of volume, aggregated in 5-minute or 1-day intervals.

Request

Request-Line

POST /waap/v1.0/analytics/volume HTTP/1.1

Request Parameters

Body Parameters

ParameterTypeRequiredDescription
domainsString[]MandatoryArray of domain names, the max array size is 50.
startTimeStringMandatoryStart time. Specify in UTC using the format yyyy-MM-ddTHH:mm:ssZ.
endTimeStringMandatoryEnd time. Specify in UTC using the format yyyy-MM-ddTHH:mm:ssZ. If interval = minute, the time range between start and end cannot exceed 24 hours.If interval = day, the time range cannot exceed 90 days.
fillFixedTimeBooleanOptionalBoolean parameter that specifies whether to return zero for empty data points. Accepted values are true or false. The default is false.
intervalStringOptionalDefines the granularity of data points. Supported values are "minute" and "day". For "minute", each data point represents a 5-minute interval; for "day", each data point represents one day. The default is "minute".

Response

Response Body

Property nameTypeRequiredDescription
ArrayMandatoryArray of Domain Volume.

Object: Domain Volume

ParameterTypeRequiredDescription
domainStringMandatoryName of domain.
volumesObjectMandatoryArray of Volume metrics recorded at 5-minute intervals.
Object: Volume
ParameterTypeRequiredDescription
timestampStringMandatorySpecify in UTC using the format yyyy-MM-ddTHH:mm:ssZ. E.g., 2025-09-09T17:35:00Z will return data from 2025-09-09T17:35:00Z to 2025-09-09T17:39:59Z.
valueFloatMandatoryData volume within a 5-minute interval, expressed as an integer (e.g., 32342331).

Status Codes, Error Codes and Error Messages

Status CodeError CodeError Message
400Request.BadRequestBad request.
400Domains.InvalidDomains is empty or invalid.
400StartTime.InvalidStartTime is empty or invalid.
400EndTime.InvalidEndTime is empty or invalid.
400TimeRange.ExceededThe difference between EndTime and StartTime cannot exceed 90 days.
400TimeRange.ExceededThe difference between EndTime and StartTime cannot exceed 24 hours.
400TimeRange.EndBeforeStartEnd time must be later than start time.
400GetVolume.OperationFailedGet Volume failed.
404Domain.NotFoundDomain is not found.

Examples

Get Volume

Request

POST /waap/v1.0/analytics/volume HTTP/1.1

{
"domains": [
"www.example1.com",
"www.example2.com"
],
"startTime": "2025-09-09T17:35:00Z",
"endTime": "2025-09-09T17:45:00Z",
"fillFixedTime": "false",
"interval": "minute"
}

Successful Response Body

[
{
"domain": "www.example1.com",
"volumes": [
{
"timestamp": "2025-09-09T17:35:00Z",
"value": 32342331
}
]
},
{
"domain": "www.example2.com",
"volumes": [
{
"timestamp": "2025-09-09T17:35:00Z",
"value": 32342331
}
]
}
]