{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/youtube/json-schema/youtube-member-list-response-schema.json",
  "title": "MemberListResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/youtube-youtube-members-api-openapi.yml#/components/schemas/MemberListResponse",
  "properties": {
    "items": {
      "description": "A list of members that match the request criteria.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Member"
      }
    },
    "visitorId": {
      "type": "string",
      "description": "The visitorId identifies the visitor.",
      "deprecated": true
    },
    "eventId": {
      "description": "Serialized EventId of the request which produced this response.",
      "type": "string",
      "deprecated": true
    },
    "nextPageToken": {
      "type": "string",
      "description": "The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set."
    },
    "tokenPagination": {
      "$ref": "#/$defs/TokenPagination"
    },
    "pageInfo": {
      "$ref": "#/$defs/PageInfo"
    },
    "kind": {
      "type": "string",
      "default": "youtube#memberListResponse",
      "description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#memberListResponse\"."
    },
    "etag": {
      "description": "Etag of this resource.",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "ChannelProfileDetails": {
      "properties": {
        "channelId": {
          "description": "The YouTube channel ID.",
          "type": "string"
        },
        "displayName": {
          "description": "The channel's display name.",
          "type": "string"
        },
        "channelUrl": {
          "description": "The channel's URL.",
          "type": "string"
        },
        "profileImageUrl": {
          "type": "string",
          "description": "The channels's avatar URL."
        }
      },
      "type": "object"
    },
    "Member": {
      "type": "object",
      "properties": {
        "snippet": {
          "$ref": "#/$defs/MemberSnippet",
          "description": "The snippet object contains basic details about the member."
        },
        "kind": {
          "type": "string",
          "description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#member\".",
          "default": "youtube#member"
        },
        "etag": {
          "type": "string",
          "description": "Etag of this resource."
        }
      },
      "description": "A *member* resource represents a member for a YouTube channel. A member provides recurring monetary support to a creator and receives special benefits."
    },
    "MemberSnippet": {
      "type": "object",
      "properties": {
        "memberDetails": {
          "$ref": "#/$defs/ChannelProfileDetails",
          "description": "Details about the member."
        },
        "membershipsDetails": {
          "$ref": "#/$defs/MembershipsDetails",
          "description": "Details about the user's membership."
        },
        "creatorChannelId": {
          "description": "The id of the channel that's offering memberships.",
          "type": "string"
        }
      }
    },
    "MembershipsDetails": {
      "properties": {
        "accessibleLevels": {
          "description": "Ids of all levels that the user has access to. This includes the currently active level and all other levels that are included because of a higher purchase.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "membershipsDuration": {
          "$ref": "#/$defs/MembershipsDuration",
          "description": "Data about memberships duration without taking into consideration pricing levels."
        },
        "highestAccessibleLevelDisplayName": {
          "description": "Display name for the highest level that the user has access to at the moment.",
          "type": "string"
        },
        "highestAccessibleLevel": {
          "type": "string",
          "description": "Id of the highest level that the user has access to at the moment."
        },
        "membershipsDurationAtLevels": {
          "description": "Data about memberships duration on particular pricing levels.",
          "items": {
            "$ref": "#/$defs/MembershipsDurationAtLevel"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "MembershipsDuration": {
      "properties": {
        "memberTotalDurationMonths": {
          "description": "The cumulative time the user has been a member across all levels in complete months (the time is rounded down to the nearest integer).",
          "format": "int32",
          "type": "integer"
        },
        "memberSince": {
          "description": "The date and time when the user became a continuous member across all levels.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "MembershipsDurationAtLevel": {
      "type": "object",
      "properties": {
        "memberSince": {
          "type": "string",
          "description": "The date and time when the user became a continuous member for the given level."
        },
        "level": {
          "description": "Pricing level ID.",
          "type": "string"
        },
        "memberTotalDurationMonths": {
          "type": "integer",
          "format": "int32",
          "description": "The cumulative time the user has been a member for the given level in complete months (the time is rounded down to the nearest integer)."
        }
      }
    },
    "PageInfo": {
      "description": "Paging details for lists of resources, including total number of items available and number of resources returned in a single page.",
      "properties": {
        "resultsPerPage": {
          "format": "int32",
          "description": "The number of results included in the API response.",
          "type": "integer"
        },
        "totalResults": {
          "description": "The total number of results in the result set.",
          "type": "integer",
          "format": "int32"
        }
      },
      "type": "object"
    },
    "TokenPagination": {
      "properties": {},
      "description": "Stub token pagination template to suppress results.",
      "type": "object"
    }
  }
}