AI-generated Key Takeaways
- 
          This endpoint is designed for individual YouTube creators to retrieve a list of members for their own channel-memberships-enabled channel, and requires specific authorization. 
- 
          The API request must be authorized with the scope https://www.googleapis.com/auth/youtube.channel-memberships.creatorand has a quota cost of 2 units per call.
- 
          The partparameter is required and must be set tosnippet, while themode,maxResults,pageToken,hasAccessToLevel, andfilterByMemberChannelIdare optional parameters for customizing the list of members returned.
- 
          The API response includes properties such as kind,etag,nextPageToken,pageInfo, anditems[]which contains a list of member resources, along with error handling for issues like invalid parameters or disabled channel memberships.
- 
          The modeparameter allows the retrieval of all current members or only new members, and when usingupdatesas a mode, you will need to retrieve members using thenextPageToken.
Lists members (formerly known as "sponsors") for a channel. The API request must be authorized by the channel owner.
Quota impact: A call to this method has a quota cost of 2 units.
Request
HTTP request
GET https://www.googleapis.com/youtube/v3/members
Authorization
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 | stringThe partparameter specifies thememberresource properties that the API response will include. Set the parameter value tosnippet. | |
| Optional parameters | ||
| mode | stringThe modeparameter indicates which members will be included in
        the API response. Set the parameter value to one of the following values:
 | |
| maxResults | unsigned integerThe maxResultsparameter specifies the maximum number of items that should be returned in the result set. Acceptable values are0to1000, inclusive. The default value is5. | |
| pageToken | stringThe pageTokenparameter identifies a specific page in the result
        set that should be returned. The token is specific to themodeused with the original API request, so you cannot
        use a page token retrieved with one mode to subsequently switch to a different mode. | |
| hasAccessToLevel | stringThe hasAccessToLevelparameter value is a level ID that
        specifies the minimum level that members in the result set should have. | |
| filterByMemberChannelId | stringThe filterByMemberChannelIdparameter specifies a comma-separated
        list of channel IDs that can be used to check the membership status of specific users. For
        example,UC_1,UC_2,UC_3. A maximum of 100 channels can be specified per call. | |
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#memberListResponse",
  "etag": etag,
  "nextPageToken": string,
  "pageInfo": {
    "totalResults": integer,
    "resultsPerPage": integer
  },
  "items": [
    member Resource
  ]
}Properties
The following table defines the properties that appear in this resource:
| Properties | |
|---|---|
| kind | stringIdentifies the API resource's type. The value will be youtube#memberListResponse. | 
| etag | etagThe Etag of this resource. | 
| nextPageToken | stringThe token that can be used as the value of the pageTokenparameter to retrieve
        the next page in the result set. Page tokens can expire, and your application should drop
        the token and call the API without apageTokento start a new request. | 
| pageInfo | objectThe pageInfoobject encapsulates paging information for the result set. | 
| pageInfo.totalResults | integerThe total number of results in the result set. | 
| pageInfo.resultsPerPage | integerThe number of results included in the API response. | 
| items[] | listA list of members that match the request criteria. | 
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. | 
| badRequest (400) | invalidMode | The modeparameter value is invalid.
        This error might occur if thepageTokenparameter
        specifies a token that was retrieved using a different mode than the one specified. | 
| badRequest (400) | invalidPageToken | The pageTokenparameter value is
        invalid. This error can occur if the page token used in the request has expired or is not
        recognized. | 
| badRequest (400) | invalidHasAccessToLevel | The hasAccessToLevelparameter value is invalid. There is no level with the specifiedid. | 
| badRequest (400) | invalidFilterByMemberChannelId | The filterByMemberChannelIdparameter value is invalid. This error occurs if thefilterByMemberChannelIdparameter value
        specifies more than 100 channels. |