We are updating the Data API to match how YouTube counts views for Shorts.
Learn more
MembershipsLevels: list
Stay organized with collections
Save and categorize content based on your preferences.
Note: 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.
Lists membership levels for the channel that authorized the request. Levels are returned in
implicit display order. API requests to this method yield one of the following responses:
- If the creator has enabled channel memberships and has pricing levels, then the API
response contains the list of levels.
- If the creator has enabled channel memberships but has not defined pricing levels,
then the API response contains an empty list.
- If the creator has not enabled channel memberships, the API returns a
channelMembershipsNotEnabled
error.
Quota impact: A call to this method has a
quota cost of 1 unit.
Request
HTTP request
GET https://www.googleapis.com/youtube/v3/membershipsLevels
This request requires authorization with the following scope:
Scope |
https://www.googleapis.com/auth/youtube.channel-memberships.creator |
Parameters
The following table lists the parameters that this query supports. All of the parameters listed are query parameters.
Parameters |
Required parameters |
part |
string
The part parameter specifies the membershipsLevel
resource properties that the API response will include. The parameter value is a
comma-separated list of resource parts. The following list shows the parts that can
be retrieved:
|
Request body
Do not provide a request body when calling this method.
Response
If successful, this method returns a response body with the following structure:
{
"kind": "youtube#membershipsLevelListResponse",
"etag": etag,
"items": [
membershipsLevel Resource
]
}
Properties
The following table defines the properties that appear in this resource:
Properties |
kind |
string
Identifies the API resource's type. The value will be youtube#membershipsLevelListResponse . |
etag |
etag
The Etag of this resource. |
items[] |
list
A list of membershipsLevel resources owned by the channel that authorized the API request. |
Errors
The following table identifies error messages that the API could return in response to a call to this method. Please see the error message documentation for more detail.
Error type |
Error detail |
Description |
badRequest (400) |
channelMembershipsNotEnabled |
The creator channel authorizing the request does not have channel
memberships enabled. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-31 UTC."],[[["This API endpoint allows individual YouTube creators with channel memberships enabled to retrieve a list of their channel's membership levels."],["The API response will either include a list of membership levels, an empty list if memberships are enabled but no levels are set, or an error if memberships are not enabled."],["A successful request returns a JSON response containing the resource type, Etag, and a list of `membershipsLevel` resources."],["Requests to this method have a quota cost of 1 unit and require authorization with the scope `https://www.googleapis.com/auth/youtube.channel-memberships.creator`."],["The request requires the `part` parameter with a string value that can contain either `id`, `snippet`, or both, as comma separated values."]]],["This API endpoint allows individual creators to retrieve channel membership levels for their YouTube channel. A `GET` request requires authorization with the `youtube.channel-memberships.creator` scope and the `part` parameter to specify the properties. The response, in JSON format, lists membership levels or an empty list if levels are undefined. If channel memberships aren't enabled, the API returns a `channelMembershipsNotEnabled` error. This method has a quota cost of 1 unit per call.\n"]]