Classic/VPC環境で利用できます。
ライブチャンネルリストを照会します。
リクエスト
リクエスト形式を説明します。リクエスト形式は次の通りです。
| メソッド | URI |
|---|---|
| GET | /api/v2/channels |
リクエストクエリパラメータ
リクエストクエリパラメータの説明は次の通りです。
| フィールド | タイプ | 必須の有無 | 説明 |
|---|---|---|---|
pageNo |
Integer | Optional | ページ番号
|
pageSizeNo |
Integer | Optional | ページごとの項目数
|
channelStatus |
String | Optional | チャンネルの状態で絞り込み
|
id |
String | Optional | チャンネル IDで絞り込み
|
channelName |
String | Optional | チャンネル名で絞り込み
|
リクエストヘッダ
Live Station APIで共通して使用されるヘッダの詳細は、Live Stationのリクエストヘッダをご参照ください。
リクエスト例
リクエストのサンプルコードは次の通りです。
curl --location --request GET 'https://livestation.apigw.ntruss.com/api/v2/channels?pageNo=1&pageSizeNo=1&channelName=chan' \
--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 |
Array | - | チャンネルリスト: content |
total |
Integer | - | レスポンス総数 |
content
contentの説明は次の通りです。
| フィールド | タイプ | 必須の有無 | 説明 |
|---|---|---|---|
channelId |
String | - | チャンネル ID |
channelName |
String | - | チャンネル名 |
instanceNo |
Integer | - | チャンネルインスタンス番号 |
qualitySetId |
Integer | - | 画質設定 ID |
qualitySetName |
String | - | 画質設定名 |
outputProtocol |
String | - | Output Protocol |
channelStatus |
String | - | チャンネルの状態
|
isRecording |
Boolean | - | 録画中か
|
useDVR |
Boolean | - | タイムシフトを設定するか
|
immediateOnAir |
Boolean | - | 配信と同時に自動録画を設定するか
|
timemachineMin |
Integer | - | タイムシフトの有効時間(分) |
cdn |
Object | - | CDNの設定 |
cdn.instanceNo |
String | - | CDNインスタンス ID |
cdn.serviceName |
String | - | CDNサービス名 |
cdn.statusName |
String | - | CDNの状態
|
cdn.cdnType |
String | - | CDNタイプ
|
cdn.cdnDomain |
String | - | CDNサービスドメイン |
cdn.profileId |
Integer | - | Global Edgeのプロファイル ID |
cdn.regionType |
String | - | Global Edgeのサービス地域 |
streamKey |
String | - | メインストリームキー |
publishUrl |
String | - | 基本配信 URL |
globalPublishUrl |
String | - | 海外配信 URL |
totalPublishSeconds |
Integer | - | チャンネルの使用時間(秒) |
createdTime |
Integer | - | チャンネル作成日時(ミリ秒)
|
alertOn |
Boolean | - | イベントアラームを設定するか
|
recentPublishStartTime |
Integer | - | 直近の配信開始日時(ミリ秒)
|
alertOptions |
Object | - | イベントアラームを設定 |
alertOptions.alertChangeStatus |
Boolean | - | チャンネル状態変更アラームを適用するか
|
alertOptions.alertVodUploadFail |
Boolean | - | 録画ファイルアップロード失敗アラームを適用するか
|
alertOptions.alertReStreamFail |
Boolean | - | 同時配信リレー失敗アラームを適用するか
|
alertOptions.reStreamFailThreshold |
Integer | - | アラーム発生条件(基準回数) |
alertOptions.alertStreamFailOver |
Boolean | - | メインストリーム切り替えアラームを適用するか
|
callbackEndpoint |
String | - | コールバックエンドポイント URL
|
envType |
String | - | チャンネルタイプ
|
uploadPath |
String | - | 録画ファイルアップロードパス
|
record |
Object | - | 録画保存情報 |
record.type |
String | - | 録画保存設定
|
record.bucketName |
String | - | 録画ファイル保存場所のバケット名
|
record.filePath |
String | - | 保存場所の詳細パス
|
record.format |
String | - | 自動保存録画タイプ
|
record.accessControl |
String | - | 録画ファイル保存場所バケットの公開範囲
|
snapshot |
Object | - | スナップショット情報
|
snapshot.snapshotId |
Integer | - | スナップショット ID |
origin |
Object | - | オリジン情報 |
origin.originDomain |
String | - | オリジンのドメイン |
origin.originPath |
String | - | オリジンのパス |
backupStreamKey |
String | - | バックアップストリームキー
|
isStreamFailOver |
Boolean | - | 配信冗長化設定
|
drmEnabledYn |
Boolean | - | Multi DRMの使用
|
drm |
Object | - | Multi DRM設定
|
drm.siteId |
String | - | サイト ID |
drm.contentId |
String | - | コンテンツ ID |
レスポンスステータスコード
Live Station APIで共通して使用されるレスポンスステータスコードの詳細は、Live Stationのレスポンスステータスコードをご参照ください。
レスポンス例
レスポンスのサンプルコードは次の通りです。
{
"content": [
{
"channelId": "ls-20250813******-SkhxV",
"channelName": "mychannel",
"instanceNo": 10*****39,
"qualitySetId": 2584,
"qualitySetName": "ll-audio-only",
"outputProtocol": "LL_HLS",
"channelStatus": "READY",
"isRecording": false,
"useDVR": true,
"immediateOnAir": true,
"timemachineMin": 360,
"cdn": {
"instanceNo": "11565",
"serviceName": "edge-ls-20250813******-SkhxV",
"statusName": "RUNNING",
"cdnType": "GLOBAL_EDGE",
"cdnDomain": "cj***********.edge.naverncp.com",
"profileId": 4207,
"regionType": "KOREA"
},
"streamKey": "y******************************n",
"publishUrl": "rtmp://***********.video.media.ntruss.com:8080/relay",
"globalPublishUrl": "rtmp://***************.video.media.ntruss.com:8080/relay",
"totalPublishSeconds": 237,
"createdTime": 1755070375000,
"alertOn": true,
"recentPublishStartTime": 1755128792000,
"alertOptions": {
"alertChangeStatus": true,
"alertVodUploadFail": true,
"alertReStreamFail": false,
"reStreamFailThreshold": 2,
"alertStreamFailOver": true
},
"callbackEndpoint": "https://www.example.com",
"envType": "DEV",
"uploadPath": "/mybucket/",
"record": {
"type": "AUTO_UPLOAD",
"bucketName": "mybucket",
"filePath": "/",
"format": "MP4",
"accessControl": "PRIVATE"
},
"origin": {
"originDomain": "*****.video.media.ntruss.com",
"originPath": "2*****5"
},
"backupStreamKey": "y******************************************e",
"isStreamFailOver": true,
"drmEnabledYn": false
}
],
"total": 2
}