Search Snapshot Information
- Print
- PDF
Search Snapshot Information
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
An API for searching snapshots of Live Station.
Requests
GET https://livestation.apigw.ntruss.com/api/v2/channels/{channelId}/snapshot/{snapshotId}
Request headers
Header name | Requirement status | Description |
---|---|---|
x-ncp-apigw-timestamp | YES | It indicates the time elapsed since January 1, 1970, 00:00:00 UTC in milliseconds and the request is considered invalid if the time difference with the API Gateway server is greater than 5 minutesx-ncp-apigw-timestamp:{Timestamp} |
x-ncp-iam-access-key | YES | Value of access key ID issued in the NAVER Cloud Platform portalx-ncp-iam-access-key:{Sub Account Access Key} |
x-ncp-apigw-signature-v2 | YES | Signature encrypted with the access key ID value and secret keyx-ncp-apigw-signature-v2:{API Gateway Signature} |
Content-Type | YES | Specify the request body content type as application/jsonContent-Type: application/json |
x-ncp-region_code | YES | Region code (KR) |
Responses
Field name | Type | Description | Remarks |
---|---|---|---|
channelId | String | ID of the channel in which the snapshots were created | |
channelStatus | String | Status of the channel in which the snapshots were created | CREATING, READY, PUBLISH, DELETED, BLOCK, FORCE_BLOCK, FORCE_DELETED |
snapshot | Object | Snapshot object | |
snapshot.snapshotId | Integer | Snapshot ID | |
snapshot.snapshotUrl | String | Snapshot playback URL | Snapshot URL is valid only for 1 hour from the time of creation. |
snapshot.createdTime | Integer | Snapshot creation time | |
snapshot.expireTime | Integer | Snapshot expiration time | |
snapshot.duration | Integer | Snapshot creation request time | Unit: minutes |
Examples
Response examples
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 26 Jun 2022 09:53:32 GMT
Content-Type: application/json;charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
x-ncp-trace-id: 36c9k60om4p3238cpmc9gm4cj4
{
"content": {
"channelId": "ls-20220623115623-fHnXy",
"channelStatus": "PUBLISHING",
"snapshot": {
"snapshotId": 1047,
"snapshotUrl": "https://myTestCdn.ntruss.com/dvr/snapshot/1655982268177/ls-nmssencg001/mtfpkgmjxmyecget2wjzthbeplp5vk9a7o6c/480p-16-9/1047-1655978668177.m3u8",
"createdTime": 1655978668177,
"expireTime": 1655982268177,
"duration": 1
}
}
}
Was this article helpful?