Retrieve your Channel ID
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Bạn có thể sử dụng biểu mẫu bên dưới để lấy mã nhận dạng kênh của mình hoặc mã nhận dạng của một kênh khác.
-
Để truy xuất mã nhận dạng kênh của chính bạn, hãy cho phép yêu cầu này bằng cách đặt nút Uỷ quyền cho yêu cầu bằng OAuth 2.0 ở đầu biểu mẫu thành ON
. Sau đó, gửi yêu cầu bằng cách nhấp vào nút màu xanh dương ở cuối biểu mẫu.
-
Để truy xuất mã nhận dạng kênh của bất kỳ kênh nào có tên kênh YouTube, hãy đặt thuộc tính forUsername
trong biểu mẫu bên dưới thành tên kênh và thuộc tính mine
thành false
.
Lưu ý: Biểu mẫu này gọi phương thức channels.list
của API YouTube Data. Theo mặc định, biểu mẫu này sẽ đặt giá trị tham số part
thành snippet
và giá trị tham số mine
thành true
.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-21 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-08-21 UTC."],[[["\u003cp\u003eRetrieve your channel ID by authorizing the request via the OAuth 2.0 button and then submitting the form.\u003c/p\u003e\n"],["\u003cp\u003eFind another channel's ID by setting the \u003ccode\u003eforUsername\u003c/code\u003e property to the channel name and the \u003ccode\u003emine\u003c/code\u003e property to \u003ccode\u003efalse\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis form utilizes the YouTube Data API's \u003ccode\u003echannels.list\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe form defaults the \u003ccode\u003epart\u003c/code\u003e parameter to \u003ccode\u003esnippet\u003c/code\u003e and the \u003ccode\u003emine\u003c/code\u003e parameter to \u003ccode\u003etrue\u003c/code\u003e.\u003c/p\u003e\n"]]],["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"],null,["# Retrieve your Channel ID\n\nYou can use the form below to retrieve your channel ID or another channel's ID.\n\n- To retrieve your own channel ID, authorize the request by setting the **Authorize requests using OAuth 2.0** button at the top of the form to `ON`. Then send the request by clicking the blue button at the bottom of the form.\n\n- To retrieve the channel ID for any channel that has a YouTube channel name, set the `forUsername` property in the form below to the channel name and the `mine` property to `false`.\n\n**Note:** This form calls the YouTube Data API's [channels.list](/youtube/v3/docs/channels/list) method. By default, the form sets the `part` parameter value to `snippet` and the `mine` parameter value to `true`."]]