MembershipsLevels
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
注: このエンドポイントは、チャンネル メンバーシップが有効になっている自身の YouTube チャンネルのリクエストを行う場合にのみ、個々のクリエイターが使用できます。アクセス権をリクエストするには、Google または YouTube の担当者にお問い合わせください。
membershipsLevel
リソースは、API リクエストを承認したクリエイターが管理する料金レベルを識別します。
メソッド
この API は、membershipsLevel
リソースの次のメソッドをサポートしています。
- list
- リクエストを承認したチャンネルのメンバーシップ レベルを一覧表示します。
プロパティ
次の表は、このリソースで使用されているプロパティの定義を示したものです。
プロパティ |
kind |
string
API リソースのタイプを識別します。値は youtube#membershipsLevel になります。 |
etag |
etag
このリソースの Etag。 |
id |
string
YouTube がメンバーシップ レベルを一意に識別するために割り当てる ID。この値は、レベルの表示名が変更されても変更されません。 |
snippet |
object
snippet オブジェクトには、メンバーシップ レベルの詳細情報が含まれます。 |
snippet.creatorChannelId |
string
料金レベルを所有するクリエイターの YouTube チャンネル ID。 |
snippet.levelDetails |
object
このオブジェクトには、メンバーシップ レベルに関するデータが含まれます。 |
snippet.levelDetails.displayName |
string レベルの表示名。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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. |"]]