Get Origin Request Number
This API is used to retrieve the data of the number of request number returned by the origin server, aggregated in 5-minute intervals.
Request
Request-Line
POST /cdn/v1.0/analytics/originRequestNumber HTTP/1.1
Request Parameters
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceNames | String[] | Mandatory | Array of service names, the max array size is 50. |
| startTime | String | Mandatory | Start time. Using the time format:yyyy-MM-ddTHH:mm:ssZ. |
| endTime | String | Mandatory | End time. Using the time format:yyyy-MM-ddTHH:mm:ssZ. Note: The duration between the start time and end time cannot be longer than 24 hours. |
Response
Response Body
| Property name | Type | Description |
|---|---|---|
| Array | Array of Domain Origin Request Number. |
Object: Domain Origin Request Number
| Parameter | Type | Description |
|---|---|---|
| serviceName | String | Name of service. |
| originReqNumbers | Object | List of bandwidth data with 5 minutes interval. Array of Origin Request Number. |
Object: Origin Request Number
| Parameter | Type | Description |
|---|---|---|
| timestamp | String | Specify 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. |
| value | Long | Back to origin request number within 5 minutes. Format will be like 123134. |
Status Codes, Error Codes and Error Messages
| Status Code | Error Code | Error Message |
|---|---|---|
| 400 | Request.BadRequest | Bad request. |
| 400 | serviceNames.Invalid | serviceNames is empty or invalid. |
| 400 | Time.Invalid | StartTime or EndTime is required. |
| 400 | TimeRange.Exceeded | The difference between EndTime and StartTime cannot exceed 24 hours. |
| 400 | TimeRange.EndBeforeStart | End time must be later than start time. |
| 400 | GetOriginRequestNumber.OperationFailed | Get Origin Request Number failed. |
| 404 | Domain.NotFound | Domain is not found. |
Examples
Get Origin Request Number
Request
POST /cdn/v1.0/analytics/requestNumber HTTP/1.1
{
"serviceNames":[
"api53-1121-auto-test.activity04.com",
"api53-core-c-alisg.tiktokv.com"
],
"startTime": "2025-09-09T17:57:00Z",
"endTime": "2025-09-09T18:15:00Z"
}
Successful Response Body
[
{
"serviceName": "api53-core-c-alisg.tiktokv.com",
"originReqNumbers": [
{
"timestamp": "2025-09-09T18:00:00Z",
"value": 257
},
{
"timestamp": "2025-09-09T18:05:00Z",
"value": 5190
},
{
"timestamp": "2025-09-09T18:10:00Z",
"value": 1741
}
]
},
{
"serviceName": "api53-1121-auto-test.activity04.com",
"originReqNumbers": []
}
]