Chúng tôi đang cập nhật Data API để phù hợp với cách YouTube tính số lượt xem video ngắn.
Tìm hiểu thêm
MembershipsLevels
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Lưu ý: Chỉ những nhà sáng tạo cá nhân mới có thể sử dụng điểm cuối này để gửi yêu cầu cho kênh YouTube của riêng họ, trong đó có tính năng hội viên. Hãy liên hệ với người đại diện của Google hoặc YouTube để yêu cầu quyền truy cập.
Tài nguyên membershipsLevel
xác định một cấp giá do nhà sáng tạo đã uỷ quyền cho yêu cầu API quản lý.
Phương thức
API này hỗ trợ các phương thức sau cho tài nguyên membershipsLevel
:
- list
- Liệt kê các cấp hội viên của kênh đã cho phép yêu cầu.
Thuộc tính
Bảng sau đây xác định các thuộc tính xuất hiện trong tài nguyên này:
Thuộc tính |
kind |
string Xác định loại tài nguyên API. Giá trị sẽ là youtube#membershipsLevel . |
etag |
etag
Etag của tài nguyên này. |
id |
string
Mã nhận dạng do YouTube gán để nhận dạng riêng cấp hội viên. Giá trị này sẽ không thay đổi ngay cả khi tên hiển thị của cấp thay đổi. |
snippet |
object
Đối tượng snippet chứa thông tin chi tiết về cấp thành viên. |
snippet.creatorChannelId |
string
Mã nhận dạng kênh YouTube của nhà sáng tạo sở hữu mức giá. |
snippet.levelDetails |
object
Đối tượng này chứa dữ liệu về cấp hội viên. |
snippet.levelDetails.displayName |
string
Tên hiển thị của cấp. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-21 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-21 UTC."],[],["The `membershipsLevel` resource identifies pricing levels for a channel's memberships. Creators can use the `list` method to retrieve these levels via the API. Each level includes a unique `id`, `etag`, `kind`, and a `snippet` object. The `snippet` details the `creatorChannelId` and `levelDetails`. `levelDetails` contains the `displayName` for that specific membership level. The API access is restricted to individual creators of channel-membership enabled YouTube channels.\n"],null,["# MembershipsLevels\n\nNote: 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.\n\nA **membershipsLevel** resource identifies a pricing level managed\nby the creator that authorized the API request.\n\nMethods\n-------\n\nThe API supports the following methods for `membershipsLevel` resources:\n\n[list](/youtube/v3/docs/membershipsLevels/list)\n: Lists membership levels for the channel that authorized the request.\n\nResource representation\n-----------------------\n\nThe following JSON structure shows the format of a `membershipsLevel` resource: \n\n```text\n{\n \"kind\": \"youtube#membershipsLevel\",\n \"etag\": etag,\n \"id\": string,\n \"snippet\": {\n \"creatorChannelId\": string,\n \"levelDetails\": {\n \"displayName\": string,\n }\n }\n}\n```\n\n### Properties\n\nThe following table defines the properties that appear in this resource:\n\n| Properties ||\n|------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Identifies the API resource's type. The value will be `youtube#membershipsLevel`. |\n| `etag` | `etag` The Etag of this resource. |\n| `id` | `string` The ID that YouTube assigns to uniquely identify the membership level. This value will not change even if the level's display name changes. |\n| `snippet` | `object` The `snippet` object contains details about the membership level. |\n| snippet.`creatorChannelId` | `string` The YouTube channel ID of the creator that owns the pricing level. |\n| snippet.`levelDetails` | `object` This object contains data about the membership level. |\n| snippet.levelDetails.`displayName` | `string` The level's display name. |"]]