אנחנו מעדכנים את Data API כך שיתאים לאופן שבו YouTube סופר צפיות ב-Shorts.
מידע נוסף
MembershipsLevels
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הערה: רק יוצרים פרטיים יכולים להשתמש בנקודת הקצה הזו כדי לשלוח בקשות לגבי ערוץ YouTube משלהם שבו פועל מועדון החברים. כדי לבקש גישה, פנו לנציג Google או YouTube.
משאב membershipsLevel
מזהה רמת תמחור שמנוהלת על ידי היוצר שהעניק הרשאה לבקשת ה-API.
Methods
ה-API תומך בשיטות הבאות למשאבי membershipsLevel
:
- list
- רשימת רמות החברות במועדון של הערוץ שהעניק הרשאה לבקשה.
מאפיינים
בטבלה הבאה מפורטים המאפיינים שמופיעים במשאב הזה:
מאפיינים |
kind |
string
מזהה את סוג משאב ה-API. הערך יהיה youtube#membershipsLevel . |
etag |
etag
ה-Etag של המשאב הזה. |
id |
string
המזהה ש-YouTube מקצה כדי לזהות באופן ייחודי את רמת החברות. הערך הזה לא ישתנה גם אם השם המוצג של הרמה ישתנה. |
snippet |
object
האובייקט snippet מכיל פרטים על רמת המינוי. |
snippet.creatorChannelId |
string
מזהה ערוץ YouTube של היוצר שהינו הבעלים של רמת התמחור. |
snippet.levelDetails |
object
האובייקט הזה מכיל נתונים על רמת החברות. |
snippet.levelDetails.displayName |
string
השם המוצג של הרמה. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-21 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-21 (שעון UTC)."],[],["The `membershipsLevel` resource identifies pricing levels for a channel's memberships. Creators can use the `list` method to retrieve these levels via the API. Each level includes a unique `id`, `etag`, `kind`, and a `snippet` object. The `snippet` details the `creatorChannelId` and `levelDetails`. `levelDetails` contains the `displayName` for that specific membership level. The API access is restricted to individual creators of channel-membership enabled YouTube channels.\n"],null,["# MembershipsLevels\n\nNote: This endpoint can only be used by individual creators to make requests for their own, channel-memberships-enabled YouTube channel. Reach out to your Google or YouTube representative to request access.\n\nA **membershipsLevel** resource identifies a pricing level managed\nby the creator that authorized the API request.\n\nMethods\n-------\n\nThe API supports the following methods for `membershipsLevel` resources:\n\n[list](/youtube/v3/docs/membershipsLevels/list)\n: Lists membership levels for the channel that authorized the request.\n\nResource representation\n-----------------------\n\nThe following JSON structure shows the format of a `membershipsLevel` resource: \n\n```text\n{\n \"kind\": \"youtube#membershipsLevel\",\n \"etag\": etag,\n \"id\": string,\n \"snippet\": {\n \"creatorChannelId\": string,\n \"levelDetails\": {\n \"displayName\": string,\n }\n }\n}\n```\n\n### Properties\n\nThe following table defines the properties that appear in this resource:\n\n| Properties ||\n|------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Identifies the API resource's type. The value will be `youtube#membershipsLevel`. |\n| `etag` | `etag` The Etag of this resource. |\n| `id` | `string` The ID that YouTube assigns to uniquely identify the membership level. This value will not change even if the level's display name changes. |\n| `snippet` | `object` The `snippet` object contains details about the membership level. |\n| snippet.`creatorChannelId` | `string` The YouTube channel ID of the creator that owns the pricing level. |\n| snippet.`levelDetails` | `object` This object contains data about the membership level. |\n| snippet.levelDetails.`displayName` | `string` The level's display name. |"]]