Paginated Query of Channel Live Stream Temporary Files
Updated: 2026-07-30 19:10:28
Interface Description
1、分页查询指定频道的直播暂存文件。
2、暂存文件的剩余可用天数以账号当前生效的暂存保留配置为准。
3、接口支持 HTTPS 协议。
Interface URL
https://api.polyv.net/live/v4/channel/record-file/list
Request Method
GET
Interface Constraints
The interface has a frequency limit. HTTPS is recommended. See Call Limits for details.
Generate the signature and call the interface on the server side. It is strictly prohibited to save or use
appSecretin clients such as Web, App, or Mini Programs.Only temporary files of channels that the current account has permission to access are returned; expired temporary files will no longer be returned.
Request Parameter Description
| Parameter | Required | Type | Description |
|---|---|---|---|
| appId | true | String | Account appId, see Get Secret Key |
| timestamp | true | Long | Current 13-digit millisecond timestamp, valid for 3 minutes |
| sign | true | String | 32-digit uppercase MD5 signature. See Signature Generation Rules |
| channelId | true | Integer | Channel ID |
| pageNumber | false | Integer | Page number, default 1 |
| pageSize | false | Integer | Items per page, default 10 |
Request Example
https://api.polyv.net/live/v4/channel/record-file/list?appId=yourAppId×tamp=1700000000000&sign=YOUR_SIGN&channelId=1234567&pageNumber=1&pageSize=10
Response Parameter Description
| Parameter | Type | Description |
|---|---|---|
| code | Integer | HTTP semantic status code, 200 indicates success |
| status | String | Response status, success is success, failure is error |
| success | Boolean | Whether the response is successful |
| requestId | String | Request ID; provide this when troubleshooting, should not be saved as a business field |
| error | Object | Error information when the request fails, see error parameter description |
| data | Object | Paginated data, see data parameter description |
error Parameter Description
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Error code |
| desc | String | Error description |
data Parameter Description
| Parameter | Type | Description |
|---|---|---|
| pageNumber | Integer | Current page number |
| pageSize | Integer | Items per page |
| totalPages | Long | Total pages |
| totalItems | Long | Total items |
| contents | Array | List of temporary files on the current page, see contents parameter description |
contents Parameter Description
| Parameter | Type | Description |
|---|---|---|
| fileId | String | Temporary file ID |
| channelId | Integer | Channel ID |
| name | String | Temporary file name |
| startTime | String | Recording start time, format: yyyyMMddHHmmss |
| endTime | String | Recording end time, format: yyyyMMddHHmmss |
| duration | Integer | Video duration, unit: seconds |
| filesize | Long | File size, unit: bytes |
| fileUrl | String | Original recording file URL |
| mp4 | String | MP4 playback URL; empty if not generated |
| m3u8 | String | M3U8 playback URL; empty if not generated |
| channelSessionId | String | Current live stream session ID |
| originSessionId | String | Original live stream session ID; may differ from the current session ID for trimmed or merged files |
| origin | String | File source: manual manual recording, complete automatic recording full replay, part automatic recording clip, merge merge, clip trim, smart-clip smart trim, material material library video |
| permanentStorage | String | Whether permanently saved: Y yes, N no |
| daysLeft | Long | Remaining available days. Temporary files are calculated based on the account's current temporary file retention period; use this field as the reference, do not calculate based on a fixed number of days |
| watchUrl | String | Corresponding watch page playback URL |
| firstImage | String | Video thumbnail URL, may be empty for some files |
Response Example
Success example:
{
"code": 200,
"status": "success",
"success": true,
"requestId": "示例请求ID",
"error": null,
"data": {
"pageNumber": 1,
"pageSize": 10,
"totalPages": 1,
"totalItems": 1,
"contents": [
{
"fileId": "示例暂存文件ID",
"channelId": 1234567,
"name": "直播录制文件",
"startTime": "20260724074050",
"endTime": "20260724142655",
"duration": 24465,
"filesize": 0,
"mp4": "",
"m3u8": "",
"channelSessionId": "示例场次ID",
"originSessionId": "示例场次ID",
"origin": "complete",
"permanentStorage": "N",
"daysLeft": 53,
"watchUrl": ""
}
]
}
}
Error example:
{
"code": 20000,
"status": "error",
"success": false,
"error": {
"code": 20000,
"desc": "appId is required."
}
}
