Classic/VPC 환경에서 이용 가능합니다.
스냅샷 정보를 조회합니다. 생성 후 1시간 이내의 스냅샷을 조회할 수 있습니다.
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
메서드 | URI |
---|---|
GET | /api/v2/channels/{channelId}/snapshot/{snapshotId} |
요청 헤더
Live Station API에서 공통으로 사용하는 헤더에 대한 정보는 Live Station 요청 헤더를 참조해 주십시오.
요청 경로 파라미터
요청 경로 파라미터에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
channelId |
String | Required | 채널 아이디
|
snapshotId |
String | Required | 스냅샷 아이디 |
요청 예시
요청 예시는 다음과 같습니다.
curl --location --request GET 'https://livestation.apigw.ntruss.com/api/v2/channels/ls-20250814******-zTwK2/snapshot/7526' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'x-ncp-region_code: KR' \
--header 'Content-Type: application/json'
응답
응답 형식을 설명합니다.
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
content |
Object | - | 스냅샷 정보 |
content.channelId |
String | - | 채널 아이디 |
content.channelStatus |
String | - | 채널 상태
|
content.snapshot |
Object | - | 스냅샷 정보 |
content.snapshot.snapshotId |
Integer | - | 스냅샷 아이디
|
content.snapshot.snapshotUrl |
String | - | 스냅샷 재생 URL
|
content.snapshot.createdTime |
Integer | - | 스냅샷 생성 일시(밀리초)
|
content.snapshot.expireTime |
Integer | - | 스냅샷 만료 일시(밀리초)
|
content.snapshot.duration |
Integer | - | 스냅샷 요청 시간(분) |
응답 상태 코드
Live Station API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Live Station 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
{
"content": {
"channelId": "ls-20250814******-zTwK2",
"channelStatus": "PUBLISHING",
"snapshot": {
"snapshotId": 7526,
"snapshotUrl": "https://*************.edge.naverncp.com/dvr/snapshot/1755508932161/als-nmssenc02/l6f07uzuaex2hriziguozw291avx4xqfrf6k/480p-16-9/7526-1755505332161.m3u8",
"createdTime": 1755505332161,
"expireTime": 1755508932161,
"duration": 8
}
}
}