Stiamo aggiornando l'API Data in modo che corrisponda al modo in cui YouTube conteggia le visualizzazioni di Shorts.
Scopri di più
MembershipsLevels
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Nota: questo endpoint può essere utilizzato solo dai singoli creator per effettuare richieste per il proprio canale YouTube su cui sono attivi gli abbonamenti. Per richiedere l'accesso, contatta il tuo rappresentante di Google o YouTube.
Una risorsa membershipsLevel
identifica un livello di prezzo gestito dal creator che ha autorizzato la richiesta dell'API.
Metodi
L'API supporta i seguenti metodi per le risorse membershipsLevel
:
- list
- Elenca i livelli di abbonamento per il canale che ha autorizzato la richiesta.
Proprietà
La tabella seguente definisce le proprietà visualizzate in questa risorsa:
Proprietà |
kind |
string
Identifica il tipo di risorsa API. Il valore sarà youtube#membershipsLevel . |
etag |
etag
L'ETag di questa risorsa. |
id |
string
L'ID assegnato da YouTube per identificare in modo univoco il livello di abbonamento. Questo valore non subirà modifiche anche se il nome visualizzato del livello cambia. |
snippet |
object
L'oggetto snippet contiene i dettagli sul livello di abbonamento. |
snippet.creatorChannelId |
string
L'ID canale YouTube del creator proprietario del livello di prezzo. |
snippet.levelDetails |
object
Questo oggetto contiene i dati relativi al livello di abbonamento. |
snippet.levelDetails.displayName |
string
Il nome visualizzato del livello. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-08-21 UTC.
[null,null,["Ultimo aggiornamento 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. |"]]