Estamos atualizando a API Data para corresponder à forma como o YouTube conta as visualizações dos Shorts.
Saiba mais
MembershipsLevels
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Observação: esse endpoint só pode ser usado por criadores de conteúdo individuais para fazer solicitações para o próprio canal do YouTube com assinaturas ativas. Entre em contato com seu representante do Google ou do YouTube
para solicitar acesso.
Um recurso membershipsLevel
identifica um nível de preço gerenciado
pelo criador que autorizou a solicitação da API.
Métodos
A API oferece suporte aos seguintes métodos para recursos membershipsLevel
:
- list
- Lista os níveis de assinatura do canal que autorizou a solicitação.
Propriedades
A tabela a seguir define as propriedades que aparecem neste recurso:
Propriedades |
kind |
string
Identifica o tipo do recurso da API. O valor será youtube#membershipsLevel . |
etag |
etag
A Etag deste recurso. |
id |
string
O ID que o YouTube atribui para identificar exclusivamente o nível de associação. Esse valor não
vai mudar, mesmo que o nome de exibição do nível mude. |
snippet |
object
O objeto snippet contém detalhes sobre o nível de associação. |
snippet.creatorChannelId |
string
O ID do canal do YouTube do criador que tem o nível de preços. |
snippet.levelDetails |
object
Esse objeto contém dados sobre o nível de associação. |
snippet.levelDetails.displayName |
string
O nome de exibição do nível. |
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-08-21 UTC.
[null,null,["Última atualização 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. |"]]