REST Resource: members

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 members endpoint 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.creator OAuth 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

string

Identifies what kind of resource this is. Value: the fixed string "youtube#member".

etag

string

Etag of this resource.

snippet

object

The snippet object contains basic details about the member.

snippet.creatorChannelId

string

The YouTube channel ID of the creator that offers memberships.

snippet.memberDetails

object

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 member resources for those members to keep counts accurate, omitting memberDetails (so channelId isn't available as a unique identifier) while still populating membershipsDetails.

When populated, memberDetails.displayName returns the member channel's @handle, and memberDetails.channelId uniquely identifies the member.

snippet.memberDetails.channelId

string

The YouTube channel ID.

snippet.memberDetails.channelUrl

string

The channel's URL.

snippet.memberDetails.displayName

string

The channel's display name.

snippet.memberDetails.profileImageUrl

string

The channel's avatar URL.

snippet.membershipsDetails

object

Membership details for the member channel.

snippet.membershipsDetails.highestAccessibleLevel

string

The ID of the highest membership level that the member channel can access. Corresponds to the id property of a membershipsLevel resource.

snippet.membershipsDetails.highestAccessibleLevelDisplayName

string

The display name of the highest membership level that the member channel can access. Corresponds to the snippet.levelDetails.displayName property of a membershipsLevel resource. Omitted if the level isn't publicly available (for example, if it was rejected or removed).

snippet.membershipsDetails.accessibleLevels[]

string

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

object

Information about the overall duration of the member's membership without regard to pricing levels. The membershipsDurationAtLevels array contains duration details for each individual level the member can access.

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:

"membershipsDetails": {
  "membershipsDuration": {
    "memberSince": "2020-06-01T12:00:00.000000Z",
    "memberTotalDurationMonths": 7
  },
  "membershipsDurationAtLevels": [
    {
      "level": "level_1_ID",
      "memberSince": "2020-06-01T12:00:00.000000Z",
      "memberTotalDurationMonths": 7
    },
    {
      "level": "level_2_ID",
      "memberSince": "2020-08-01T12:00:00.000000Z",
      "memberTotalDurationMonths": 2
    }
  ]
}
snippet.membershipsDetails.membershipsDuration.memberSince

string

The date and time when the member's continuous active membership started across all levels, formatted in UTC ISO 8601 (YYYY-MM-DDThh:mm:ss.ssssssZ). Different periods of that continuous membership might have been spent at different levels.

snippet.membershipsDetails.membershipsDuration.memberTotalDurationMonths

integer

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[]

object

Duration details for each membership level that the member can access. Each item covers a level included in accessibleLevels for which a duration summary is available.

snippet.membershipsDetails.membershipsDurationAtLevels[].level

string

The membership level ID. Corresponds to the id property of a membershipsLevel resource.

snippet.membershipsDetails.membershipsDurationAtLevels[].memberSince

string

The date and time from which the member has continuously had access to the specified level, formatted in UTC ISO 8601 (YYYY-MM-DDThh:mm:ss.ssssssZ). Different periods of access might have been spent at higher levels.

snippet.membershipsDetails.membershipsDurationAtLevels[].memberTotalDurationMonths

integer

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

list

Retrieves a list of members that match the request criteria for a channel.