Retrieve your Channel ID
Anda dapat menggunakan formulir di bawah ini untuk mengambil ID channel Anda atau ID channel lain.
-
Untuk mengambil ID channel Anda sendiri, izinkan permintaan dengan menyetel tombol Izinkan permintaan menggunakan OAuth 2.0 di bagian atas formulir ke ON
. Kemudian kirim permintaan dengan mengklik tombol biru di bagian bawah formulir.
-
Untuk mengambil ID channel untuk setiap channel yang memiliki nama channel YouTube, tetapkan properti forUsername
dalam formulir di bawah ke nama channel dan properti mine
ke false
.
Catatan: Formulir ini memanggil metode channels.list
YouTube Data API. Secara default, formulir menetapkan nilai parameter part
ke snippet
dan nilai parameter mine
ke true
.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-03-14 UTC.
[null,null,["Terakhir diperbarui pada 2024-03-14 UTC."],[[["Retrieve your channel ID by authorizing the request via the OAuth 2.0 button and then submitting the form."],["Find another channel's ID by setting the `forUsername` property to the channel name and the `mine` property to `false`."],["This form utilizes the YouTube Data API's `channels.list` method."],["The form defaults the `part` parameter to `snippet` and the `mine` parameter to `true`."]]],["To retrieve your channel ID, authorize the request via OAuth 2.0 and submit the form. For another channel's ID, set the `forUsername` property to the channel name and `mine` to `false` in the form. The form utilizes the YouTube Data API's `channels.list` method. By default it uses `snippet` for the `part` parameter, and sets the `mine` parameter to `true`.\n"]]