Search snapshot info
  • PDF

Search snapshot info

  • PDF

The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.

This is an API for querying Live Station's snapshots.

Request

GET https://livestation.apigw.ntruss.com/api/v2/channels/{channelId}/snapshot/{snapshotId}

Request header

Header Required Description
x-ncp-apigw-timestamp YES It is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC.
If the time difference with the API Gateway server is more than 5 minutes, the request is considered invalid.
x-ncp-apigw-timestamp:{Timestamp}
x-ncp-iam-access-key YES Access Key ID issued from the NAVER CLOUD PLATFORM portal.
x-ncp-iam-access-key:{Sub Account Access Key}
x-ncp-apigw-signature-v2 YES Signature encrypted with your Access Key ID and Secret Key.
x-ncp-apigw-signature-v2:{API Gateway Signature}
Content-Type YES Set the request body content type to application/json.
Content-Type: application/json
x-ncp-region_code YES Region code (KR)

Response

field name type Description Remarks
channelId String Channel ID that created the snapshot
channelStatus String Channel State for which the snapshot was taken
snapshot Object Snapshot Object
snapshot.snapshotId Integer Snapshot ID
snapshot.snapshotUrl String Snapshot Replay URL The snapshot URL is only valid for one 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 : Minute

Example

Example response

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?

What's Next