---
title: "YouTube Detail Video API (V1)"
description: "Mengambil detail publik untuk video YouTube yang diidentifikasi oleh ID video. Digunakan untuk memeriksa video tertentu sebelum analisis konten atau komentar lebih lanjut."
lastUpdated: false
aiUsagePrompt: true
---

# YouTube Detail Video API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/youtube/get-video-detail/v1\"")'
  :summary='JSON.parse("\"Detail Video (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/youtube/video-details-v1-id.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"Token akses untuk layanan API ini.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"videoId\",\"in\":\"query\",\"description\":\"Identifikasi unik untuk video YouTube.\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"lang\",\"in\":\"query\",\"description\":\"Tag bahasa IETF opsional untuk detail video yang diterjemahkan, seperti en-US. Biarkan kosong untuk menggunakan bahasa default.\",\"required\":false,\"schema\":{\"type\":\"string\"}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"Detail publik untuk video YouTube yang diminta.\",\"properties\":{\"errorId\":{\"type\":\"string\",\"description\":\"Status yang dikembalikan dalam payload detail video. Nilai “Success” untuk detail yang berhasil.\"},\"type\":{\"type\":\"string\",\"description\":\"Jenis konten yang dilaporkan untuk video.\"},\"id\":{\"type\":\"string\",\"description\":\"Identifikasi video YouTube.\"},\"title\":{\"type\":\"string\",\"description\":\"Judul video.\"},\"description\":{\"type\":\"string\",\"description\":\"Teks deskripsi video.\"},\"channel\":{\"type\":\"object\",\"description\":\"Channel YouTube yang mempublikasikan video.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Jenis entri channel yang dilaporkan.\"},\"id\":{\"type\":\"string\",\"description\":\"Identifikasi channel YouTube.\"},\"name\":{\"type\":\"string\",\"description\":\"Nama tampilan channel.\"},\"handle\":{\"type\":\"string\",\"description\":\"Handle publik channel YouTube.\"},\"isVerified\":{\"type\":\"boolean\",\"description\":\"Apakah channel tersebut ditandai sebagai terverifikasi.\"},\"isVerifiedArtist\":{\"type\":\"boolean\",\"description\":\"Apakah channel tersebut ditandai sebagai artis terverifikasi.\"},\"subscriberCountText\":{\"type\":\"string\",\"description\":\"Jumlah pelanggan channel sebagai teks tampilan.\"},\"avatar\":{\"type\":\"array\",\"description\":\"Opsi gambar avatar channel.\",\"items\":{\"type\":\"object\",\"description\":\"Satu opsi gambar avatar channel.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL gambar.\"},\"width\":{\"type\":\"integer\",\"description\":\"Lebar gambar dalam piksel.\"},\"height\":{\"type\":\"integer\",\"description\":\"Tinggi gambar dalam piksel.\"}}}}}},\"lengthSeconds\":{\"type\":\"integer\",\"description\":\"Durasi video dalam detik.\"},\"viewCount\":{\"type\":\"integer\",\"description\":\"Jumlah penonton video yang dilaporkan.\"},\"likeCount\":{\"type\":\"integer\",\"description\":\"Jumlah like video yang dilaporkan.\"},\"publishedTime\":{\"type\":\"string\",\"description\":\"Tanggal dan waktu publikasi video sebagai teks dengan offset UTC.\"},\"publishedTimeText\":{\"type\":\"string\",\"description\":\"Waktu publikasi video sebagai teks tampilan.\"},\"isLiveStream\":{\"type\":\"boolean\",\"description\":\"Apakah video diidentifikasi sebagai siaran langsung. Gunakan isLiveNow untuk memeriksa status siaran langsung saat ini.\"},\"isLiveNow\":{\"type\":\"boolean\",\"description\":\"Apakah video sedang disiarkan secara langsung saat ini.\"},\"isRegionRestricted\":{\"type\":\"boolean\",\"description\":\"Apakah ada pembatasan ketersediaan regional untuk video.\"},\"isUnlisted\":{\"type\":\"boolean\",\"description\":\"Apakah video ditandai sebagai tidak terlihat oleh publik.\"},\"isCommentDisabled\":{\"type\":\"boolean\",\"description\":\"Apakah komentar untuk video ini diblokir.\"},\"commentCountText\":{\"type\":\"string\",\"description\":\"Jumlah komentar video sebagai teks tampilan.\"},\"thumbnails\":{\"type\":\"array\",\"description\":\"Opsi gambar thumbnail video.\",\"items\":{\"type\":\"object\",\"description\":\"Satu opsi gambar thumbnail.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL gambar.\"},\"width\":{\"type\":\"integer\",\"description\":\"Lebar gambar dalam piksel.\"},\"height\":{\"type\":\"integer\",\"description\":\"Tinggi gambar dalam piksel.\"}}}},\"musicCredits\":{\"type\":\"array\",\"description\":\"Entri atribusi musik yang terkait dengan video.\",\"items\":{\"type\":\"object\",\"description\":\"Satu entri atribusi musik.\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Judul trek musik yang ditampilkan.\"},\"artist\":{\"type\":\"string\",\"description\":\"Artis yang tercantum dalam kredit musik.\"},\"album\":{\"type\":\"string\",\"description\":\"Album yang ditampilkan dalam kredit musik.\"},\"description\":{\"type\":\"string\",\"description\":\"Teks deskripsi yang terkait dengan kredit musik.\"},\"thumbnails\":{\"type\":\"array\",\"description\":\"Gambar thumbnail untuk kredit musik ini.\",\"items\":{\"type\":\"object\",\"description\":\"Satu opsi gambar thumbnail.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL gambar.\"}}}}}}},\"videos\":{\"type\":\"object\",\"description\":\"Paket format video untuk video ini.\",\"properties\":{\"errorId\":{\"type\":\"string\",\"description\":\"Status yang dilaporkan untuk paket media ini.\"},\"reason\":{\"type\":\"string\",\"description\":\"Alasan mengapa format atau trek media tidak tersedia, jika diberikan.\"},\"expiration\":{\"type\":\"integer\",\"description\":\"Tanda waktu Unix dalam detik ketika URL dalam paket ini habis masa berlakunya.\"},\"items\":{\"type\":\"array\",\"description\":\"Format video yang tersedia.\",\"items\":{\"type\":\"object\",\"description\":\"Satu format video yang tersedia.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL untuk format video ini. URL ini dapat berakhir masa berlakunya.\"},\"lengthMs\":{\"type\":\"integer\",\"description\":\"Durasi format ini dalam milidetik.\"},\"mimeType\":{\"type\":\"string\",\"description\":\"Jenis MIME media untuk format ini.\"},\"extension\":{\"type\":\"string\",\"description\":\"Ekstensi file untuk format ini.\"},\"lastModified\":{\"type\":\"integer\",\"description\":\"Tanda waktu modifikasi terakhir yang dilaporkan untuk format media ini.\"},\"size\":{\"type\":\"integer\",\"description\":\"Ukuran format ini dalam byte.\"},\"sizeText\":{\"type\":\"string\",\"description\":\"Ukuran file format ini dalam teks tampilan.\"},\"hasAudio\":{\"type\":\"boolean\",\"description\":\"Apakah format video ini termasuk trek audio.\"},\"quality\":{\"type\":\"string\",\"description\":\"Label kualitas video yang dilaporkan.\"},\"width\":{\"type\":\"integer\",\"description\":\"Lebar bidang video dalam piksel.\"},\"height\":{\"type\":\"integer\",\"description\":\"Tinggi bidang video dalam piksel.\"}}}}}},\"audios\":{\"type\":\"object\",\"description\":\"Paket format audio untuk video ini.\",\"properties\":{\"errorId\":{\"type\":\"string\",\"description\":\"Status yang dilaporkan untuk paket media ini.\"},\"reason\":{\"type\":\"string\",\"description\":\"Alasan mengapa format atau trek media tidak tersedia, jika diberikan.\"},\"expiration\":{\"type\":\"integer\",\"description\":\"Tanda waktu Unix dalam detik ketika URL dalam paket ini habis masa berlakunya.\"},\"items\":{\"type\":\"array\",\"description\":\"Format audio yang tersedia.\",\"items\":{\"type\":\"object\",\"description\":\"Satu format audio yang tersedia.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL untuk format audio ini. URL ini dapat berakhir masa berlakunya.\"},\"lengthMs\":{\"type\":\"integer\",\"description\":\"Durasi format ini dalam milidetik.\"},\"mimeType\":{\"type\":\"string\",\"description\":\"Jenis MIME media untuk format ini.\"},\"extension\":{\"type\":\"string\",\"description\":\"Ekstensi file untuk format ini.\"},\"lastModified\":{\"type\":\"integer\",\"description\":\"Tanda waktu modifikasi terakhir yang dilaporkan untuk format media ini.\"},\"size\":{\"type\":\"integer\",\"description\":\"Ukuran format ini dalam byte.\"},\"sizeText\":{\"type\":\"string\",\"description\":\"Ukuran file format ini dalam teks tampilan.\"},\"isDrc\":{\"type\":\"boolean\",\"description\":\"Apakah kompresan rentang dinamis ditandai untuk format audio ini.\"}}}}}},\"subtitles\":{\"type\":\"object\",\"description\":\"Paket trek subtitle untuk video ini.\",\"properties\":{\"errorId\":{\"type\":\"string\",\"description\":\"Status yang dilaporkan untuk paket media ini.\"},\"reason\":{\"type\":\"string\",\"description\":\"Alasan mengapa format atau trek media tidak tersedia, jika diberikan.\"},\"expiration\":{\"type\":\"integer\",\"description\":\"Tanda waktu Unix dalam detik ketika URL dalam paket ini habis masa berlakunya.\"},\"items\":{\"type\":\"array\",\"description\":\"Track subtitle yang tersedia.\",\"items\":{\"type\":\"object\",\"description\":\"Satu track subtitle yang tersedia.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL untuk track subtitle ini. URL ini bisa berlaku hingga tertentu.\"},\"code\":{\"type\":\"string\",\"description\":\"Bahasa atau kode track yang dilaporkan untuk subtitle.\"}}}}}},\"related\":{\"type\":\"object\",\"description\":\"Hasil video terkait yang disertakan dalam detail.\",\"properties\":{\"nextToken\":{\"type\":\"string\",\"description\":\"Nilai terkait video yang dilaporkan untuk hasil video terkait.\"},\"items\":{\"type\":\"array\",\"description\":\"Entri video terkait yang dikembalikan bersama detail.\",\"items\":{\"type\":\"object\",\"description\":\"Satu entri video terkait.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Jenis konten yang dilaporkan untuk video terkait.\"},\"id\":{\"type\":\"string\",\"description\":\"Identifikasi video YouTube.\"},\"title\":{\"type\":\"string\",\"description\":\"Judul video terkait.\"},\"channel\":{\"type\":\"object\",\"description\":\"Channel YouTube yang mempublikasikan video terkait.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Jenis entri channel yang dilaporkan.\"},\"id\":{\"type\":\"string\",\"description\":\"Identifikasi channel YouTube.\"},\"name\":{\"type\":\"string\",\"description\":\"Nama tampilan channel.\"},\"handle\":{\"type\":\"string\",\"description\":\"Handle publik channel YouTube.\"},\"isVerified\":{\"type\":\"boolean\",\"description\":\"Apakah channel tersebut ditandai sebagai terverifikasi.\"},\"isVerifiedArtist\":{\"type\":\"boolean\",\"description\":\"Apakah channel tersebut ditandai sebagai artis terverifikasi.\"},\"avatar\":{\"type\":\"array\",\"description\":\"Opsi gambar avatar channel.\",\"items\":{\"type\":\"object\",\"description\":\"Satu opsi gambar avatar channel.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL gambar.\"},\"width\":{\"type\":\"integer\",\"description\":\"Lebar gambar dalam piksel.\"},\"height\":{\"type\":\"integer\",\"description\":\"Tinggi gambar dalam piksel.\"}}}}}},\"isLiveNow\":{\"type\":\"boolean\",\"description\":\"Apakah video terkait sedang tayang saat ini.\"},\"lengthText\":{\"type\":\"string\",\"description\":\"Durasi video terkait sebagai teks tampilan.\"},\"viewCountText\":{\"type\":\"string\",\"description\":\"Jumlah tayangan video terkait sebagai teks tampilan.\"},\"publishedTimeText\":{\"type\":\"string\",\"description\":\"Waktu publikasi video terkait sebagai teks tampilan.\"},\"thumbnails\":{\"type\":\"array\",\"description\":\"Opsi thumbnail gambar video terkait.\",\"items\":{\"type\":\"object\",\"description\":\"Satu opsi gambar thumbnail.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL gambar.\"},\"width\":{\"type\":\"integer\",\"description\":\"Lebar gambar dalam piksel.\"},\"height\":{\"type\":\"integer\",\"description\":\"Tinggi gambar dalam piksel.\"},\"moving\":{\"type\":\"boolean\",\"description\":\"Apakah thumbnail merupakan preview animasi.\"}}}},\"collaborators\":{\"type\":\"array\",\"description\":\"Channel yang bekerja sama untuk video terkait.\",\"items\":{\"type\":\"object\",\"description\":\"Channel YouTube yang bekerja sama untuk video terkait.\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"Jenis entri channel yang dilaporkan.\"},\"id\":{\"type\":\"string\",\"description\":\"Identifikasi channel YouTube.\"},\"name\":{\"type\":\"string\",\"description\":\"Nama tampilan channel.\"},\"handle\":{\"type\":\"string\",\"description\":\"Handle publik channel YouTube.\"},\"isVerified\":{\"type\":\"boolean\",\"description\":\"Apakah channel tersebut ditandai sebagai terverifikasi.\"},\"isVerifiedArtist\":{\"type\":\"boolean\",\"description\":\"Apakah channel tersebut ditandai sebagai artis terverifikasi.\"},\"subscriberCountText\":{\"type\":\"string\",\"description\":\"Jumlah pelanggan channel sebagai teks tampilan.\"},\"avatar\":{\"type\":\"array\",\"description\":\"Opsi gambar avatar channel.\",\"items\":{\"type\":\"object\",\"description\":\"Satu opsi gambar avatar channel.\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL gambar.\"},\"width\":{\"type\":\"integer\",\"description\":\"Lebar gambar dalam piksel.\"},\"height\":{\"type\":\"integer\",\"description\":\"Tinggi gambar dalam piksel.\"}}}}}}}}}}}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"Parameter atau isi permintaan yang tidak valid\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"Token akses yang tidak valid atau tidak aktif\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"Izin ditolak\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"Laju permintaan atau batas kuota harian terlampaui\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"Kesalahan server internal\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"Layanan sementara tidak tersedia\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"API produksi global (default)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/youtube/get-video-detail/v1\"")' />

<p>Mengambil detail publik untuk video YouTube yang diidentifikasi oleh ID video. Digunakan untuk memeriksa video tertentu sebelum analisis konten atau komentar lebih lanjut.</p>

## Parameter

<div class="api-doc-table api-doc-table--params">

| Nama | Lokasi | Jenis | Wajib | Bawaan | Deskripsi |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Ya | - | Token akses untuk layanan API ini. |
| <code>videoId</code> | query | <code>string</code> | Ya | - | Identifikasi unik untuk video YouTube. |
| <code>lang</code> | query | <code>string</code> | Tidak | - | Tag bahasa IETF opsional untuk detail video yang diterjemahkan, seperti en-US. Biarkan kosong untuk menggunakan bahasa default. |

</div>

## Contoh Kode

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/youtube/get-video-detail/v1?token=YOUR_API_KEY&videoId=VALUE'
```

```text [🤖 Prompt AI]
Saya ingin menggunakan API "Detail Video (V1)" dari JustOneAPI.
URL dasar: https://api.justoneapi.com.
Jalur API: /api/youtube/get-video-detail/v1?token=YOUR_API_KEY&videoId=VALUE
Endpoint API: BASE_URL + /api/youtube/get-video-detail/v1?token=YOUR_API_KEY&videoId=VALUE
Metode HTTP: GET
Autentikasi: Tambahkan parameter query "token" ke URL.
Definisi OpenAPI: https://docs.justoneapi.com/openapi/youtube/video-details-v1-id.json

Parameter:
- token (query): Token akses untuk layanan API ini. (Wajib)
- videoId (query): Identifikasi unik untuk video YouTube. (Wajib)
- lang (query): Tag bahasa IETF opsional untuk detail video yang diterjemahkan, seperti en-US. Biarkan kosong untuk menggunakan bahasa default.

Format Kembalian: tangani dengan aman JSON atau teks sesuai dengan Content-Type yang sebenarnya.

Penanganan respons dan kode kesalahan:
1. Tentukan hasil pemrosesan dari kolom "code" dalam isi respons (code 0 berarti berhasil).
2. Batas waktu yang disarankan: Atur batas waktu permintaan menjadi 120 detik. Jika 120 detik terlalu lama untuk kebutuhan Anda, gunakan setidaknya 60 detik. Sebagian kecil permintaan mungkin mencapai batas waktu sebelum hasil diterima.
3. Kode hasil:
   - 0: Berhasil
   - 100: Token tidak valid atau tidak aktif
   - 301: Gagal mengambil data. Silakan coba lagi.
   - 302: Batas frekuensi permintaan terlampaui
   - 303: Kuota harian terlampaui
   - 400: Parameter tidak valid
   - 500: Kesalahan internal server
   - 600: Akses ditolak
   - 601: Saldo tidak mencukupi
   - 602: Batas anggaran token tercapai
4. Kode 601 berarti saldo bersama akun tidak mencukupi. Kode 602 berarti token API yang digunakan telah mencapai batas anggaran kumulatifnya sendiri. Menetapkan batas anggaran token tidak memindahkan dana dari saldo bersama akun.

Tolong bantu saya menulis skrip dalam bahasa pemrograman favorit saya untuk memanggil API ini dan menangani responsnya.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Diberikan oleh server OpenAPI

url = BASE_URL + "/api/youtube/get-video-detail/v1?token=YOUR_API_KEY&videoId=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // Diberikan oleh server OpenAPI
const url = BASE_URL + "/api/youtube/get-video-detail/v1?token=YOUR_API_KEY&videoId=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // Diberikan oleh server OpenAPI
        final String url = BASE_URL + "/api/youtube/get-video-detail/v1?token=YOUR_API_KEY&videoId=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // Diberikan oleh server OpenAPI

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/youtube/get-video-detail/v1?token=YOUR_API_KEY&videoId=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Diberikan oleh server OpenAPI
$url = $BASE_URL . '/api/youtube/get-video-detail/v1?token=YOUR_API_KEY&videoId=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/youtube/video-details-v1-id.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[Definisi OpenAPI (JSON)]</a>
</div>

## Field Respons

Field Kunci dalam respons yang sukses (`code = 0`).

<div class="api-doc-table api-doc-table--response">

| Jalur Field | Jenis | Deskripsi |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | Detail publik untuk video YouTube yang diminta. |
| <code>data.errorId</code> | <code>string</code> | Status yang dikembalikan dalam payload detail video. Nilai “Success” untuk detail yang berhasil. |
| <code>data.type</code> | <code>string</code> | Jenis konten yang dilaporkan untuk video. |
| <code>data.id</code> | <code>string</code> | Identifikasi video YouTube. |
| <code>data.title</code> | <code>string</code> | Judul video. |
| <code>data.description</code> | <code>string</code> | Teks deskripsi video. |
| <code>data.channel</code> | <code>object</code> | Channel YouTube yang mempublikasikan video. |
| <code>data.channel.type</code> | <code>string</code> | Jenis entri channel yang dilaporkan. |
| <code>data.channel.id</code> | <code>string</code> | Identifikasi channel YouTube. |
| <code>data.channel.name</code> | <code>string</code> | Nama tampilan channel. |
| <code>data.channel.handle</code> | <code>string</code> | Handle publik channel YouTube. |
| <code>data.channel.isVerified</code> | <code>boolean</code> | Apakah channel tersebut ditandai sebagai terverifikasi. |
| <code>data.channel.isVerifiedArtist</code> | <code>boolean</code> | Apakah channel tersebut ditandai sebagai artis terverifikasi. |
| <code>data.channel.subscriberCountText</code> | <code>string</code> | Jumlah pelanggan channel sebagai teks tampilan. |
| <code>data.channel.avatar</code> | <code>array</code> | Opsi gambar avatar channel. |
| <code>data.channel.avatar[]</code> | <code>object</code> | Satu opsi gambar avatar channel. |
| <code>data.channel.avatar[].url</code> | <code>string</code> | URL gambar. |
| <code>data.channel.avatar[].width</code> | <code>integer</code> | Lebar gambar dalam piksel. |
| <code>data.channel.avatar[].height</code> | <code>integer</code> | Tinggi gambar dalam piksel. |
| <code>data.lengthSeconds</code> | <code>integer</code> | Durasi video dalam detik. |
| <code>data.viewCount</code> | <code>integer</code> | Jumlah penonton video yang dilaporkan. |
| <code>data.likeCount</code> | <code>integer</code> | Jumlah like video yang dilaporkan. |
| <code>data.publishedTime</code> | <code>string</code> | Tanggal dan waktu publikasi video sebagai teks dengan offset UTC. |
| <code>data.publishedTimeText</code> | <code>string</code> | Waktu publikasi video sebagai teks tampilan. |
| <code>data.isLiveStream</code> | <code>boolean</code> | Apakah video diidentifikasi sebagai siaran langsung. Gunakan isLiveNow untuk memeriksa status siaran langsung saat ini. |
| <code>data.isLiveNow</code> | <code>boolean</code> | Apakah video sedang disiarkan secara langsung saat ini. |
| <code>data.isRegionRestricted</code> | <code>boolean</code> | Apakah ada pembatasan ketersediaan regional untuk video. |
| <code>data.isUnlisted</code> | <code>boolean</code> | Apakah video ditandai sebagai tidak terlihat oleh publik. |
| <code>data.isCommentDisabled</code> | <code>boolean</code> | Apakah komentar untuk video ini diblokir. |
| <code>data.commentCountText</code> | <code>string</code> | Jumlah komentar video sebagai teks tampilan. |
| <code>data.thumbnails</code> | <code>array</code> | Opsi gambar thumbnail video. |
| <code>data.thumbnails[]</code> | <code>object</code> | Satu opsi gambar thumbnail. |
| <code>data.thumbnails[].url</code> | <code>string</code> | URL gambar. |
| <code>data.thumbnails[].width</code> | <code>integer</code> | Lebar gambar dalam piksel. |
| <code>data.thumbnails[].height</code> | <code>integer</code> | Tinggi gambar dalam piksel. |
| <code>data.musicCredits</code> | <code>array</code> | Entri atribusi musik yang terkait dengan video. |
| <code>data.musicCredits[]</code> | <code>object</code> | Satu entri atribusi musik. |
| <code>data.musicCredits[].title</code> | <code>string</code> | Judul trek musik yang ditampilkan. |
| <code>data.musicCredits[].artist</code> | <code>string</code> | Artis yang tercantum dalam kredit musik. |
| <code>data.musicCredits[].album</code> | <code>string</code> | Album yang ditampilkan dalam kredit musik. |
| <code>data.musicCredits[].description</code> | <code>string</code> | Teks deskripsi yang terkait dengan kredit musik. |
| <code>data.musicCredits[].thumbnails</code> | <code>array</code> | Gambar thumbnail untuk kredit musik ini. |
| <code>data.musicCredits[].thumbnails[]</code> | <code>object</code> | Satu opsi gambar thumbnail. |
| <code>data.musicCredits[].thumbnails[].url</code> | <code>string</code> | URL gambar. |
| <code>data.videos</code> | <code>object</code> | Paket format video untuk video ini. |
| <code>data.videos.errorId</code> | <code>string</code> | Status yang dilaporkan untuk paket media ini. |
| <code>data.videos.reason</code> | <code>string</code> | Alasan mengapa format atau trek media tidak tersedia, jika diberikan. |
| <code>data.videos.expiration</code> | <code>integer</code> | Tanda waktu Unix dalam detik ketika URL dalam paket ini habis masa berlakunya. |
| <code>data.videos.items</code> | <code>array</code> | Format video yang tersedia. |
| <code>data.videos.items[]</code> | <code>object</code> | Satu format video yang tersedia. |
| <code>data.videos.items[].url</code> | <code>string</code> | URL untuk format video ini. URL ini dapat berakhir masa berlakunya. |
| <code>data.videos.items[].lengthMs</code> | <code>integer</code> | Durasi format ini dalam milidetik. |
| <code>data.videos.items[].mimeType</code> | <code>string</code> | Jenis MIME media untuk format ini. |
| <code>data.videos.items[].extension</code> | <code>string</code> | Ekstensi file untuk format ini. |
| <code>data.videos.items[].lastModified</code> | <code>integer</code> | Tanda waktu modifikasi terakhir yang dilaporkan untuk format media ini. |
| <code>data.videos.items[].size</code> | <code>integer</code> | Ukuran format ini dalam byte. |
| <code>data.videos.items[].sizeText</code> | <code>string</code> | Ukuran file format ini dalam teks tampilan. |
| <code>data.videos.items[].hasAudio</code> | <code>boolean</code> | Apakah format video ini termasuk trek audio. |
| <code>data.videos.items[].quality</code> | <code>string</code> | Label kualitas video yang dilaporkan. |
| <code>data.videos.items[].width</code> | <code>integer</code> | Lebar bidang video dalam piksel. |
| <code>data.videos.items[].height</code> | <code>integer</code> | Tinggi bidang video dalam piksel. |
| <code>data.audios</code> | <code>object</code> | Paket format audio untuk video ini. |
| <code>data.audios.errorId</code> | <code>string</code> | Status yang dilaporkan untuk paket media ini. |
| <code>data.audios.reason</code> | <code>string</code> | Alasan mengapa format atau trek media tidak tersedia, jika diberikan. |
| <code>data.audios.expiration</code> | <code>integer</code> | Tanda waktu Unix dalam detik ketika URL dalam paket ini habis masa berlakunya. |
| <code>data.audios.items</code> | <code>array</code> | Format audio yang tersedia. |
| <code>data.audios.items[]</code> | <code>object</code> | Satu format audio yang tersedia. |
| <code>data.audios.items[].url</code> | <code>string</code> | URL untuk format audio ini. URL ini dapat berakhir masa berlakunya. |
| <code>data.audios.items[].lengthMs</code> | <code>integer</code> | Durasi format ini dalam milidetik. |
| <code>data.audios.items[].mimeType</code> | <code>string</code> | Jenis MIME media untuk format ini. |
| <code>data.audios.items[].extension</code> | <code>string</code> | Ekstensi file untuk format ini. |
| <code>data.audios.items[].lastModified</code> | <code>integer</code> | Tanda waktu modifikasi terakhir yang dilaporkan untuk format media ini. |
| <code>data.audios.items[].size</code> | <code>integer</code> | Ukuran format ini dalam byte. |
| <code>data.audios.items[].sizeText</code> | <code>string</code> | Ukuran file format ini dalam teks tampilan. |
| <code>data.audios.items[].isDrc</code> | <code>boolean</code> | Apakah kompresan rentang dinamis ditandai untuk format audio ini. |
| <code>data.subtitles</code> | <code>object</code> | Paket trek subtitle untuk video ini. |
| <code>data.subtitles.errorId</code> | <code>string</code> | Status yang dilaporkan untuk paket media ini. |
| <code>data.subtitles.reason</code> | <code>string</code> | Alasan mengapa format atau trek media tidak tersedia, jika diberikan. |
| <code>data.subtitles.expiration</code> | <code>integer</code> | Tanda waktu Unix dalam detik ketika URL dalam paket ini habis masa berlakunya. |
| <code>data.subtitles.items</code> | <code>array</code> | Track subtitle yang tersedia. |
| <code>data.subtitles.items[]</code> | <code>object</code> | Satu track subtitle yang tersedia. |
| <code>data.subtitles.items[].url</code> | <code>string</code> | URL untuk track subtitle ini. URL ini bisa berlaku hingga tertentu. |
| <code>data.subtitles.items[].code</code> | <code>string</code> | Bahasa atau kode track yang dilaporkan untuk subtitle. |
| <code>data.related</code> | <code>object</code> | Hasil video terkait yang disertakan dalam detail. |
| <code>data.related.nextToken</code> | <code>string</code> | Nilai terkait video yang dilaporkan untuk hasil video terkait. |
| <code>data.related.items</code> | <code>array</code> | Entri video terkait yang dikembalikan bersama detail. |
| <code>data.related.items[]</code> | <code>object</code> | Satu entri video terkait. |
| <code>data.related.items[].type</code> | <code>string</code> | Jenis konten yang dilaporkan untuk video terkait. |
| <code>data.related.items[].id</code> | <code>string</code> | Identifikasi video YouTube. |
| <code>data.related.items[].title</code> | <code>string</code> | Judul video terkait. |
| <code>data.related.items[].channel</code> | <code>object</code> | Channel YouTube yang mempublikasikan video terkait. |
| <code>data.related.items[].channel.type</code> | <code>string</code> | Jenis entri channel yang dilaporkan. |
| <code>data.related.items[].channel.id</code> | <code>string</code> | Identifikasi channel YouTube. |
| <code>data.related.items[].channel.name</code> | <code>string</code> | Nama tampilan channel. |
| <code>data.related.items[].channel.handle</code> | <code>string</code> | Handle publik channel YouTube. |
| <code>data.related.items[].channel.isVerified</code> | <code>boolean</code> | Apakah channel tersebut ditandai sebagai terverifikasi. |
| <code>data.related.items[].channel.isVerifiedArtist</code> | <code>boolean</code> | Apakah channel tersebut ditandai sebagai artis terverifikasi. |
| <code>data.related.items[].channel.avatar</code> | <code>array</code> | Opsi gambar avatar channel. |
| <code>data.related.items[].channel.avatar[]</code> | <code>object</code> | Satu opsi gambar avatar channel. |
| <code>data.related.items[].channel.avatar[].url</code> | <code>string</code> | URL gambar. |
| <code>data.related.items[].channel.avatar[].width</code> | <code>integer</code> | Lebar gambar dalam piksel. |
| <code>data.related.items[].channel.avatar[].height</code> | <code>integer</code> | Tinggi gambar dalam piksel. |
| <code>data.related.items[].isLiveNow</code> | <code>boolean</code> | Apakah video terkait sedang tayang saat ini. |
| <code>data.related.items[].lengthText</code> | <code>string</code> | Durasi video terkait sebagai teks tampilan. |
| <code>data.related.items[].viewCountText</code> | <code>string</code> | Jumlah tayangan video terkait sebagai teks tampilan. |
| <code>data.related.items[].publishedTimeText</code> | <code>string</code> | Waktu publikasi video terkait sebagai teks tampilan. |
| <code>data.related.items[].thumbnails</code> | <code>array</code> | Opsi thumbnail gambar video terkait. |
| <code>data.related.items[].thumbnails[]</code> | <code>object</code> | Satu opsi gambar thumbnail. |
| <code>data.related.items[].thumbnails[].url</code> | <code>string</code> | URL gambar. |
| <code>data.related.items[].thumbnails[].width</code> | <code>integer</code> | Lebar gambar dalam piksel. |
| <code>data.related.items[].thumbnails[].height</code> | <code>integer</code> | Tinggi gambar dalam piksel. |
| <code>data.related.items[].thumbnails[].moving</code> | <code>boolean</code> | Apakah thumbnail merupakan preview animasi. |
| <code>data.related.items[].collaborators</code> | <code>array</code> | Channel yang bekerja sama untuk video terkait. |
| <code>data.related.items[].collaborators[]</code> | <code>object</code> | Channel YouTube yang bekerja sama untuk video terkait. |
| <code>data.related.items[].collaborators[].type</code> | <code>string</code> | Jenis entri channel yang dilaporkan. |
| <code>data.related.items[].collaborators[].id</code> | <code>string</code> | Identifikasi channel YouTube. |
| <code>data.related.items[].collaborators[].name</code> | <code>string</code> | Nama tampilan channel. |
| <code>data.related.items[].collaborators[].handle</code> | <code>string</code> | Handle publik channel YouTube. |
| <code>data.related.items[].collaborators[].isVerified</code> | <code>boolean</code> | Apakah channel tersebut ditandai sebagai terverifikasi. |
| <code>data.related.items[].collaborators[].isVerifiedArtist</code> | <code>boolean</code> | Apakah channel tersebut ditandai sebagai artis terverifikasi. |
| <code>data.related.items[].collaborators[].subscriberCountText</code> | <code>string</code> | Jumlah pelanggan channel sebagai teks tampilan. |
| <code>data.related.items[].collaborators[].avatar</code> | <code>array</code> | Opsi gambar avatar channel. |
| <code>data.related.items[].collaborators[].avatar[]</code> | <code>object</code> | Satu opsi gambar avatar channel. |
| <code>data.related.items[].collaborators[].avatar[].url</code> | <code>string</code> | URL gambar. |
| <code>data.related.items[].collaborators[].avatar[].width</code> | <code>integer</code> | Lebar gambar dalam piksel. |
| <code>data.related.items[].collaborators[].avatar[].height</code> | <code>integer</code> | Tinggi gambar dalam piksel. |

</div>

## Contoh Respons

<ApiExampleSection :api='JSON.parse("\"/api/youtube/get-video-detail/v1\"")' />

