# การเรียกดูข้อมูลวิดีโอผ่าน API
คุณสามารถเรียกดูข้อมูลของวิดีโอผ่าน API ได้ โดยระบุ video key
# Request Endpoint
GET https://stream.byteark.com/api/v1/videos/{videoKey}
1
# Path Parameters
| Parameter | Type | Required | Description | 
|---|---|---|---|
| videoKey | String | - | Key ของวิดีโอที่จะเรียกดูรายละเอียด | 
# Query String Parameters
| Parameter | Type | Required | Description | 
|---|---|---|---|
| includes | []String | - | ฟิลด์ข้อมูลที่ต้องการเพิ่มเติม (สามารถเลือกระบุได้ดังนี้: project,player,tags,creator,vod.source) | 
# Response Data
ข้อมูลของวิดีโอ โดยข้อมูลด้านล่างเป็นตัวอย่างฟิลด์บางส่วนที่สำคัญและใช้บ่อย เช่น ชื่อ ภาพปก ลิงก์วิดีโอ
รายละเอียดของ response data ทั้งหมดสามารถดูได้จาก API Reference (opens new window).
{
  "id": "5e817a8cecb9cf0228467837",
  "key": "RuguHtZPJYm4",
  "title": "test-video1",
  "subtitle": "awesome movie you'll never seen before",
  "coverImage": {
    sizes: {
      large: "https://stream-image.byteark.com/image/video-cover-1080p/7/t/7tYplH8ol.png",
      medium: "https://stream-image.byteark.com/image/video-cover-480p/7/t/7tYplH8ol.png",
      small: "https://stream-image.byteark.com/image/video-cover-144p/7/t/7tYplH8ol.png"
    }
  },
  "primaryPlaybackUrl": {
    name: "playback",
    hls: {
      name: "Adaptive Bitrate",
      url: "https://your-playback-domain/streams/VideoKey/playlist.m3u8"
    }
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
