Classic/VPC環境で利用できます。
ライブチャンネルで録画したファイルの詳細情報を照会します。
リクエスト
リクエスト形式を説明します。リクエスト形式は次の通りです。
| メソッド | URI |
|---|---|
| GET | /api/v2/channels/{channelId}/records/{recordId} |
リクエストヘッダ
Live Station APIで共通して使用されるヘッダの詳細は、Live Stationのリクエストヘッダをご参照ください。
リクエストパスパラメータ
リクエストパスパラメータの説明は次の通りです。
| フィールド | タイプ | 必須の有無 | 説明 |
|---|---|---|---|
channelId |
String | Required | チャンネル ID
|
recordId |
Integer | Required | 録画ファイル ID
|
リクエスト例
リクエストのサンプルコードは次の通りです。
curl --location --request GET 'https://livestation.apigw.ntruss.com/api/v2/channels/{channelId}/records/{recordId}' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--header 'x-ncp-region_code: KR'
レスポンス
レスポンス形式を説明します。
レスポンスボディ
レスポンスボディの説明は次の通りです。
| フィールド | タイプ | 必須の有無 | 説明 |
|---|---|---|---|
content |
Object | - | レスポンス結果 |
content.{recordId} |
Object | - | 録画ファイル情報
|
content.{recordId}.recordType |
String | - | レコーディングファイルタイプ
|
content.{recordId}.channelId |
String | - | チャンネル ID |
content.{recordId}.status |
String | - | ファイルの状態
|
content.{recordId}.recordSeq |
Integer | - | 録画ファイルのシーケンス番号 |
content.{recordId}.streamSeq |
Integer | - | ストリームのシーケンス番号 |
content.{recordId}.recordBeginTime |
Integer | - | 録画開始日時(ミリ秒)
|
content.{recordId}.createdTime |
Integer | - | 録画ファイル作成日時(ミリ秒)
|
content.{recordId}.shouldDeleteTime |
Integer | - | 録画ファイル削除予定日時(ミリ秒)
|
content.{recordId}.resolution |
String | - | 解像度
|
content.{recordId}.fileName |
String | - | ファイル名 |
content.{recordId}.duration |
Integer | - | 再生時間(ミリ秒) |
content.{recordId}.videoBitrate |
Integer | - | ビデオストリームのビットレート(bps) |
content.{recordId}.audioBitrate |
Integer | - | オーディオストリームのビットレート(bps) |
content.{recordId}.videoFrameRate |
Float | - | 1秒当たりのフレーム数(fps) |
content.{recordId}.audioCodec |
String | - | オーディオコーデック |
content.{recordId}.uploadPath |
String | - | ディレクトリパス |
content.{recordId}.objectStorageUrl |
String | - | レコーディング URL
|
レスポンスステータスコード
Live Station APIで共通して使用されるレスポンスステータスコードの詳細は、Live Stationのレスポンスステータスコードをご参照ください。
レスポンス例
レスポンスのサンプルコードは次の通りです。
{
"content": {
"270****": {
"recordType": "MP4",
"channelId": "ls-20250814******-PZohi",
"status": "TRANSFER_FINISH",
"recordSeq": 1307117,
"streamSeq": 361545,
"recordBeginTime": 1755496369000,
"createdTime": 1755496381000,
"shouldDeleteTime": 1755755581000,
"resolution": "720x1280",
"fileName": "361545-1307117-20250818****.mp4",
"duration": 11634,
"videoBitrate": 2500000,
"audioBitrate": 128000,
"videoFrameRate": 30.0,
"audioCodec": "aac",
"uploadPath": "/databucket/361545-1307117-20250818****.mp4",
"objectStorageUrl": "https://kr.object.ncloudstorage.com/databucket/361545-1307117-20250818****.mp4"
}
}
}