# Info Video YouTube Lanjutan Langsung

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/serp/youtube/video_info/live/advanced`

**Tags:** DataForSEO

Memulangkan metadata satu video YouTube, secara segerak. Memulangkan `keyword`, `type`, `se_domain`, `location_code`, `language_code`, `check_url`, `datetime`, `spell`, `refinement_chips`, `item_types`, `items_count` dan `items`. `advanced` ialah pilihan lalai; ambil `regular` apabila hanya senarai berkedudukan yang penting dan `html` hanya untuk memeriksa apa yang digugurkan penghurai. Dibungkus dalam sampul DataForSEO: data dalam `tasks[0].result`, hasil dalam `tasks[0].status_code` - permintaan yang ditolak tetap memulangkan HTTP 200.

### Rujukan harga

- Pemeteran: Kos respons yang dilaporkan.
- Anggaran rujukan setiap permintaan: USD 0.006.
- Pengganda pelanggan rujukan: 1.0. Jangan gunakan semula pada amaun pelanggan yang telah diselesaikan.

Metadata rujukan sahaja, bukan sebut harga akaun, harga terjamin atau had perbelanjaan. Kredit sumber bukan kredit Felo. Caj akhir mengikut rekod pengebilan Felo.

## Related links

- [kadar bit](<https://en.wikipedia.org/wiki/Bit_rate>)
- [jenis media](<https://en.wikipedia.org/wiki/Media_type>)
- [kadar bingkai](<https://en.wikipedia.org/wiki/Frame_rate>)

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Request body

Required: **no**

### application/json

Schema:

```json
{
  "type": "array",
  "items": {
    "type": [
      "object",
      "null"
    ],
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "video_id": {
            "type": "string",
            "description": "ID video\nmedan wajib\nanda boleh menemui ID video dalam URL atau item 'youtube_video' hasil YouTube Organic\ncontoh:\nvQXvyV0zIP4"
          },
          "location_code": {
            "type": [
              "integer",
              "null"
            ],
            "description": "kod lokasi enjin carian\nmedan wajib jika anda tidak menentukan location_name\njika anda menggunakan medan ini, anda tidak perlu menentukan location_name\nanda boleh mendapatkan senarai lokasi enjin carian yang tersedia bersama location_code dengan membuat permintaan berasingan ke https://api.dataforseo.com/v3/serp/youtube/locations\ncontoh:\n2840"
          },
          "language_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "kod bahasa enjin carian\nmedan wajib jika anda tidak menentukan language_name\njika anda menggunakan medan ini, anda tidak perlu menentukan language_name\nanda boleh mendapatkan senarai bahasa enjin carian yang tersedia bersama language_code dengan membuat permintaan berasingan ke https://api.dataforseo.com/v3/serp/youtube/languages\ncontoh:\nen"
          },
          "device": {
            "type": [
              "string",
              "null"
            ],
            "description": "jenis peranti\nmedan pilihan\nhanya nilai: desktop"
          },
          "location_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "nama penuh lokasi enjin carian\nmedan wajib jika anda tidak menentukan location_code\njika anda menggunakan medan ini, anda tidak perlu menentukan location_code\nanda boleh mendapatkan senarai lokasi enjin carian yang tersedia bersama location_name dengan membuat permintaan berasingan ke https://api.dataforseo.com/v3/serp/youtube/locations\ncontoh:\nUnited States"
          },
          "language_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "nama penuh bahasa enjin carian\nmedan wajib jika anda tidak menentukan language_code\njika anda menggunakan medan ini, anda tidak perlu menentukan language_code\nanda boleh mendapatkan senarai bahasa enjin carian yang tersedia bersama language_name dengan membuat permintaan berasingan ke https://api.dataforseo.com/v3/serp/youtube/languages\ncontoh:\nEnglish"
          },
          "os": {
            "type": [
              "string",
              "null"
            ],
            "description": "sistem pengendalian peranti\nmedan pilihan\npilih daripada nilai berikut: windows, macos\nnilai lalai: windows"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "pengecam tugas yang ditentukan pengguna\nmedan pilihan\nhad aksara ialah 255\nanda boleh menggunakan parameter ini untuk mengenal pasti tugas dan memadankannya dengan hasil\nanda akan menemui nilai tag yang ditentukan dalam objek data respons"
          }
        },
        "example": [
          {
            "language_code": "en",
            "location_code": 2840,
            "video_id": "vQXvyV0zIP4"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "language_code": "en",
      "location_code": 2840,
      "video_id": "vQXvyV0zIP4"
    }
  ]
}
```

## Responses

### 200 — Operasi berjaya

Headers:
- `X-Request-Id` (string) — Pengecam permintaan untuk disertakan semasa menghubungi sokongan Felo.

**application/json**

Schema: object | null

```json
{
  "type": [
    "object",
    "null"
  ],
  "oneOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResponseInfo"
    }
  ]
}
```

### 400 — Permintaan tidak dapat diproses. Semak parameter permintaan.

### 401 — Kunci API Felo yang sah diperlukan.

### 402 — Permintaan tidak dapat diteruskan kerana keperluan pengebilan tidak dipenuhi.

### 403 — Akaun tidak dibenarkan melakukan operasi ini.

### 429 — Had permintaan atau had perbelanjaan telah dicapai.

### 502 — Perkhidmatan tidak dapat menyelesaikan permintaan.

### 503 — API atau perkhidmatan pengebilan tidak tersedia buat sementara waktu.

### 504 — Perkhidmatan tamat masa semasa memproses permintaan.

### default — Respons ralat; respons passthrough huluan mungkin menggunakan format penyedia

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "versi semasa API"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "kod status umum; anda boleh menemui senarai penuh kod respons di sini"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "mesej maklumat umum; anda boleh menemui senarai penuh mesej maklumat umum di sini"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "jumlah masa pelaksanaan, saat"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "jumlah kos tugas, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "bilangan tugas dalam array tasks",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "bilangan tugas dalam array tasks yang dipulangkan dengan ralat",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "pengecam tugas; pengecam tugas unik dalam sistem kami dalam format UUID"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "kod status tugas yang dijana oleh DataForSEO; boleh berada dalam julat berikut: 10000-60000; anda boleh menemui senarai penuh kod respons di sini"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "mesej maklumat tugas; anda boleh menemui senarai penuh mesej maklumat umum di sini"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "masa pelaksanaan, saat"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "jumlah kos tugas, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "bilangan elemen dalam array hasil",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "Laluan URL"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "mengandungi parameter yang sama seperti yang anda tentukan dalam permintaan POST"
    }
  }
}
```

### Response36Afe1097B20_ChannelSubscribersCount

`#/components/schemas/Response36Afe1097B20_ChannelSubscribersCount`

```json
{
  "type": "object",
  "properties": {
    "displayed_count": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>bilangan pelanggan yang dipaparkan</em><br>            bilangan pelanggan seperti yang dipaparkan di YouTube"
    },
    "count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>bilangan pelanggan</em>",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResponseInfo

`#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResponseInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseInfo"
    },
    {
      "type": "object",
      "properties": {
        "tasks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedTaskInfo"
              }
            ]
          },
          "description": "array tugas"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResultInfo

`#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResultInfo`

```json
{
  "type": "object",
  "properties": {
    "video_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "ID video yang diterima dalam array POST"
    },
    "se_domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "domain enjin carian dalam array POST"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "kod lokasi dalam array POST"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "kod bahasa dalam array POST"
    },
    "check_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "URL langsung ke hasil enjin carian\nanda boleh menggunakannya untuk memastikan bahawa kami memberikan hasil yang tepat"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "tarikh dan masa apabila hasil diterima\ndalam format UTC: “yyyy-mm-dd hh-mm-ss +00:00”\ncontoh:\n2019-11-15 12:57:46 +00:00"
    },
    "spell": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_SpellInfo"
        }
      ],
      "description": "pembetulan automatik enjin carian\njika enjin carian memberikan hasil untuk kata kunci yang dibetulkan, kami akan menyatakan kata kunci yang dibetulkan oleh enjin carian dan jenis pembetulan automatik"
    },
    "item_types": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "jenis hasil carian dalam SERP\nmengandungi jenis hasil carian (items) yang ditemui dalam SERP.\nitem yang mungkin:\nyoutube_video_info"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "bilangan hasil yang dikembalikan dalam array items",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_YoutubeVideoInfo"
          }
        ]
      },
      "description": "elemen hasil carian yang ditemui dalam SERP"
    }
  }
}
```

### Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedTaskInfo

`#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_SerpYoutubeVideoInfoLiveAdvancedResultInfo"
              }
            ]
          },
          "description": "array hasil"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SpellInfo

`#/components/schemas/Response36Afe1097B20_SpellInfo`

```json
{
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "kata kunci yang diperoleh hasil daripada pembetulan automatik enjin carian\n keputusan akan diberikan untuk kata kunci yang dibetulkan"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "jenis pembetulan automatik\n nilai yang mungkin:\n did_you_mean, showing_results_for, no_results_found_for, including_results_for\n nota: Yahoo dan Yandex hanya menyokong jenis pembetulan automatik berikut:\n including_results_for"
    }
  }
}
```

### Response36Afe1097B20_StreamingQualityElement

`#/components/schemas/Response36Afe1097B20_StreamingQualityElement`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "jenis elemen"
    },
    "label": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>label elemen kualiti</em>"
    },
    "width": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>lebar video dalam piksel</em>",
      "format": "int64"
    },
    "height": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>tinggi video dalam piksel</em>"
    },
    "bitrate": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>kadar bit video</em>"
    },
    "mime_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>jenis media video</em>"
    },
    "fps": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>kadar bingkai video</em>"
    }
  }
}
```

### Response36Afe1097B20_Subtitles

`#/components/schemas/Response36Afe1097B20_Subtitles`

```json
{
  "type": "object",
  "properties": {
    "language": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>bahasa sari kata</em>"
    },
    "is_translatable": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>menentukan sama ada sari kata boleh diterjemah</em>"
    },
    "is_auto_generated": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>menentukan sama ada sari kata dijana secara automatik</em>"
    }
  }
}
```

### Response36Afe1097B20_YoutubeVideoInfo

`#/components/schemas/Response36Afe1097B20_YoutubeVideoInfo`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "jenis elemen"
    },
    "rank_group": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>kedudukan kumpulan dalam SERP</em><br>            kedudukan dalam kumpulan elemen dengan nilai <code>type</code> yang serupa<br>            kedudukan elemen dengan nilai <code>type</code> berbeza dikecualikan daripada <code>rank_group</code>"
    },
    "rank_absolute": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em> kedudukan mutlak dalam SERP untuk domain sasaran</em><br>            kedudukan mutlak antara semua elemen dalam SERP"
    },
    "video_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ID video yang diterima dalam array POST</em>"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tajuk video</em>"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL video</em>"
    },
    "thumbnail_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL halaman tempat imej kecil dihoskan</em>"
    },
    "channel_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ID saluran tempat video diterbitkan</em>"
    },
    "channel_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>nama saluran tempat video diterbitkan</em>"
    },
    "channel_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL saluran tempat video diterbitkan</em>"
    },
    "channel_logo": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL halaman tempat imej logo saluran dihoskan</em>"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>perihalan video</em>"
    },
    "views_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>bilangan tontonan video</em>",
      "format": "int64"
    },
    "likes_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>bilangan suka pada video</em>",
      "format": "int64"
    },
    "comments_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>bilangan komen pada video</em>",
      "format": "int64"
    },
    "channel_subscribers_count": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_ChannelSubscribersCount"
        }
      ],
      "description": "<em>bilangan pelanggan saluran</em>"
    },
    "publication_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tarikh video diterbitkan</em>"
    },
    "timestamp": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tarikh dan masa apabila hasil diterbitkan</em><br>            dalam format UTC: “yyyy-mm-dd hh-mm-ss +00:00”<br>            contoh:<br>            <code>2022-11-15 12:57:46 +00:00</code>"
    },
    "keywords": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>kata kunci yang berkaitan dengan video</em><br>            juga dikenali sebagai 'tag YouTube'"
    },
    "category": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>kategori tempat video itu tergolong</em>"
    },
    "is_live": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>menunjukkan sama ada video sedang disiarkan secara langsung</em>"
    },
    "is_embeddable": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>menunjukkan sama ada video boleh dibenamkan</em>"
    },
    "duration_time": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tempoh video</em>"
    },
    "duration_time_seconds": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>tempoh video dalam saat</em>"
    },
    "subtitles": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_Subtitles"
          }
        ]
      },
      "description": "<em>array elemen yang menerangkan sifat sari kata dalam video</em>"
    },
    "streaming_quality": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_StreamingQualityElement"
          }
        ]
      },
      "description": "<em>array elemen yang mengandungi maklumat tentang semua kualiti penstriman video yang mungkin</em>"
    }
  }
}
```
