Resource: Member
A member resource represents a channel member for a YouTube channel. A member provides recurring monetary support to a creator and receives special benefits. For example, members can chat when the creator turns on members-only mode for a chat.
The following access restrictions apply:
- Access to the
membersendpoint is limited to YouTube creators who have a dedicated YouTube Partner Manager. - Access requires allowlisting through your YouTube Partner Manager. Because of this allowlisting process, the
youtube.channel-memberships.creatorOAuth scope doesn't go through the standard Google Cloud OAuth verification process.
| JSON representation |
|---|
{ "kind": string, "etag": string, "snippet": { "creatorChannelId": string, "memberDetails": { "channelId": string, "channelUrl": string, "displayName": string, "profileImageUrl": string }, "membershipsDetails": { "highestAccessibleLevel": string, "highestAccessibleLevelDisplayName": string, "accessibleLevels": [ string ], "membershipsDuration": { "memberSince": string, "memberTotalDurationMonths": integer }, "membershipsDurationAtLevels": [ { "level": string, "memberSince": string, "memberTotalDurationMonths": integer } ] } } } |
| Fields | |
|---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
etag |
Etag of this resource. |
snippet |
The |
snippet.creatorChannelId |
The YouTube channel ID of the creator that offers memberships. |
snippet.memberDetails |
Profile data about the YouTube channel paying for the membership. A channel can have members whose profile data is unavailable (for example, members who deleted their channels while still paying for memberships). API responses include When populated, |
snippet.memberDetails.channelId |
The YouTube channel ID. |
snippet.memberDetails.channelUrl |
The channel's URL. |
snippet.memberDetails.displayName |
The channel's display name. |
snippet.memberDetails.profileImageUrl |
The channel's avatar URL. |
snippet.membershipsDetails |
Membership details for the member channel. |
snippet.membershipsDetails.highestAccessibleLevel |
The ID of the highest membership level that the member channel can access. Corresponds to the |
snippet.membershipsDetails.highestAccessibleLevelDisplayName |
The display name of the highest membership level that the member channel can access. Corresponds to the |
snippet.membershipsDetails.accessibleLevels[] |
IDs of all membership levels that the member can access, including the active level and all lower levels included through that membership. |
snippet.membershipsDetails.membershipsDuration |
Information about the overall duration of the member's membership without regard to pricing levels. The For example, suppose a member joins at level 1 in January through March, has no membership in April and May, restarts at level 1 in June, and upgrades to level 2 in August. An API call in October returns: |
snippet.membershipsDetails.membershipsDuration.memberSince |
The date and time when the member's continuous active membership started across all levels, formatted in UTC ISO 8601 ( |
snippet.membershipsDetails.membershipsDuration.memberTotalDurationMonths |
The cumulative number of complete months (rounded down to the nearest integer) that the user has been a member across all levels. This total doesn't imply that the membership was continuous for that entire duration. |
snippet.membershipsDetails.membershipsDurationAtLevels[] |
Duration details for each membership level that the member can access. Each item covers a level included in |
snippet.membershipsDetails.membershipsDurationAtLevels[].level |
The membership level ID. Corresponds to the |
snippet.membershipsDetails.membershipsDurationAtLevels[].memberSince |
The date and time from which the member has continuously had access to the specified level, formatted in UTC ISO 8601 ( |
snippet.membershipsDetails.membershipsDurationAtLevels[].memberTotalDurationMonths |
The cumulative number of complete months (rounded down to the nearest integer) that the user has had access to the specified level, including time spent at higher levels. This total doesn't imply continuous access for that entire duration. |
Methods |
|
|---|---|
|
Retrieves a list of members that match the request criteria for a channel. |