Skip to main content

Get Customer Volume

This API is used to retrieve customer volume data, aggregated 1-day intervals.

Request

Request-Line

POST /cdn/v1.0/analytics/getVolumeByCustomerId HTTP/1.1

Request Parameters

Body Parameters

ParameterTypeRequiredDescription
startTimeStringMandatoryStart time. Using the time format: yyyy-MM-ddT00:00:00Z.
endTimeStringMandatoryEnd time. Using the time format: yyyy-MM-ddT00:00:00Z. Note: The duration between the start time and end time cannot be longer than 90 days.

Response

Response Body

ParameterTypeDescription
ArrayArray of serviceName Volume.
Object: Service Volume
ParameterTypeDescription
timestampStringSpecify in UTC using the format yyyy-MM-ddTHH:mm:ssZ. Example: 2025-09-09T17:35:00Z.
valueFloatDisplays the volume value in bps. Example: 94.33.

Status Codes, Error Codes and Error Messages

Status CodeError CodeError Message
400Request.BadRequestBad request.
400CustomerId.InvalidCustomer id is empty or invalid.
400Time.InvalidStartTime or EndTime is required.
400DayIntervalTimeFormat.InvalidStartTime or EndTime format in 'yyyy-MM-dd'T'00:00:00'Z''.
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.

Examples

Get Customer Volume

Request

POST /cdn/v1.0/analytics/getVolumeByCustomerId HTTP/1.1

{
"startTime": "2025-11-06T00:00:00Z",
"endTime": "2025-11-09T00:00:00Z"
}

Successful Response Body

[
{
"timestamp": "2025-11-06T00:00:00Z",
"value": 8984842662053294
},
{
"timestamp": "2025-11-07T00:00:00Z",
"value": 9358693958303120
},
{
"timestamp": "2025-11-08T00:00:00Z",
"value": 10013127294236162
}
]