Retrieve your Channel ID
يمكنك استخدام النموذج أدناه لاسترداد معرّف قناتك أو معرّف قناة أخرى.
-
لاسترداد معرّف قناتك، يُرجى منح الإذن للطلب من خلال ضبط الزر تفويض الطلبات باستخدام OAuth 2.0 في أعلى النموذج على ON
. بعد ذلك، أرسِل الطلب بالنقر على الزر الأزرق في أسفل النموذج.
-
لاسترداد معرّف القناة لأي قناة تحمل اسم قناة على YouTube، يجب ضبط السمة forUsername
في النموذج أدناه على اسم القناة والسمة mine
على false
.
ملاحظة: يستدعي هذا النموذج طريقة channels.list
في YouTube Data API. بشكل تلقائي، يضبط النموذج قيمة المعلَمة part
على snippet
وقيمة المعلَمة mine
على true
.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-03-14 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-03-14 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]