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
Công cụ tính hạn mức
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.
Bảng sau đây cho biết chi phí hạn mức để gọi từng phương thức API. Tất cả yêu cầu API, bao gồm cả yêu cầu không hợp lệ, đều phải chịu chi phí hạn mức ít nhất là một điểm.
Các dự án bật API Dữ liệu của YouTube sẽ có hạn mức phân bổ mặc định là 10.000 đơn vị mỗi ngày. Đây là số lượng đủ cho phần lớn người dùng API của chúng tôi. Bạn có thể xem mức sử dụng hạn mức trên trang Hạn mức trong Google API Console. Hạn mức hằng ngày được đặt lại vào lúc nửa đêm theo Giờ Thái Bình Dương (PT).
Sau đây là hai điểm đáng chú ý vì cả hai đều ảnh hưởng đến mức sử dụng hạn mức của bạn:
- Nếu ứng dụng của bạn gọi một phương thức, chẳng hạn như
search.list
, trả về nhiều trang kết quả, thì mỗi yêu cầu truy xuất thêm một trang kết quả sẽ phải chịu chi phí hạn mức ước tính.
-
Về mặt kỹ thuật, các phương thức API phát trực tiếp trên YouTube thuộc YouTube Data API và các lệnh gọi đến các phương thức đó cũng phải chịu chi phí hạn mức. Do đó, các phương thức API để phát trực tiếp cũng được liệt kê trong bảng.
Chi phí hạn mức |
hoạt động |
danh sách |
1 |
phụ đề |
danh sách |
50 |
|
insert |
400 |
|
cập nhật |
450 |
|
xóa |
50 |
channelBanners |
insert |
50 |
các kênh |
danh sách |
1 |
|
cập nhật |
50 |
channelSections |
danh sách |
1 |
|
insert |
50 |
|
cập nhật |
50 |
|
xóa |
50 |
|
danh sách |
1 |
|
insert |
50 |
|
cập nhật |
50 |
|
setModerationStatus |
50 |
|
xóa |
50 |
|
danh sách |
1 |
|
insert |
50 |
|
cập nhật |
50 |
guideCategories |
danh sách |
1 |
i18nLanguages |
danh sách |
1 |
i18nRegions |
danh sách |
1 |
thành viên |
danh sách |
1 |
membershipsLevels |
danh sách |
1 |
playlistItems |
danh sách |
1 |
|
insert |
50 |
|
cập nhật |
50 |
|
xóa |
50 |
danh sách phát |
danh sách |
1 |
|
insert |
50 |
|
cập nhật |
50 |
|
xóa |
50 |
tìm-kiếm |
danh sách |
100 |
mục đăng ký |
danh sách |
1 |
|
insert |
50 |
|
xóa |
50 |
hình thu nhỏ |
đặt |
50 |
videoAbuseReportReasons |
danh sách |
1 |
videoCategories |
danh sách |
1 |
video |
danh sách |
1 |
|
insert |
1600 |
|
cập nhật |
50 |
|
vận tốc |
50 |
|
getRating |
1 |
|
reportAbuse |
50 |
|
xóa |
50 |
hình mờ |
đặt |
50 |
|
chưa đặt |
50 |
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."],[[["\u003cp\u003eEvery API request, even if invalid, will cost at least one quota point.\u003c/p\u003e\n"],["\u003cp\u003eRetrieving multiple pages of results from a single method call, like \u003ccode\u003esearch.list\u003c/code\u003e, incurs the quota cost for each additional page request.\u003c/p\u003e\n"],["\u003cp\u003eMethods from the YouTube Live Streaming API, being part of the YouTube Data API, will incur the same quota costs as other methods.\u003c/p\u003e\n"],["\u003cp\u003eThe table shows that methods like \u003ccode\u003evideos.insert\u003c/code\u003e have the highest cost of 1600 points, while several methods, such as \u003ccode\u003eactivities.list\u003c/code\u003e, have the minimal cost of 1 point.\u003c/p\u003e\n"],["\u003cp\u003eThere are numerous methods that cost 50 points such as \u003ccode\u003ecaptions.delete\u003c/code\u003e, \u003ccode\u003echannels.update\u003c/code\u003e, \u003ccode\u003ecomment.delete\u003c/code\u003e and others.\u003c/p\u003e\n"]]],["API requests have quota costs, with a minimum of one point per request, even if invalid. Retrieving multiple result pages from methods like `search.list` costs quota for each page. Live Streaming API methods, part of the YouTube Data API, also incur costs. Quota costs vary by resource and method, ranging from 1 for actions such as `list` to 1600 for actions like `videos insert`. Methods like `insert`, `update`, and `delete` typically cost more.\n"],null,["# Quota Calculator\n\nThe following table shows the quota cost for calling each API method. All API requests, including invalid requests, incur a quota cost of at least one point.\n\nProjects that enable the YouTube Data API have a default quota allocation of 10,000 units per day, an amount sufficient for the majority of our API users. You can see your quota usage on [Quotas](https://console.cloud.google.com/iam-admin/quotas) page in the Google API Console. Daily quotas reset at midnight Pacific Time (PT).\n\nThe following two points are worth calling out as they both affect your quota usage:\n\n- If your application calls a method, such as `search.list`, that returns multiple pages of results, each request to retrieve an additional page of results incurs the estimated quota cost.\n- [YouTube Live Streaming API](/youtube/v3/live) methods are, technically, part of the YouTube Data API, and calls to those methods also incur quota costs. As such, API methods for live streaming are also listed in the table.\n\n| Quota costs |||\n|-----------------------------|---------------------|------|\n| resource | method | cost |\n| ### activities | list | 1 |\n| ### captions | list | 50 |\n| | insert | 400 |\n| | update | 450 |\n| | delete | 50 |\n| ### channelBanners | insert | 50 |\n| ### channels | list | 1 |\n| | update | 50 |\n| ### channelSections | list | 1 |\n| | insert | 50 |\n| | update | 50 |\n| | delete | 50 |\n| ### comments | list | 1 |\n| | insert | 50 |\n| | update | 50 |\n| | setModerationStatus | 50 |\n| | delete | 50 |\n| ### commentThreads | list | 1 |\n| | insert | 50 |\n| | update | 50 |\n| ### guideCategories | list | 1 |\n| ### i18nLanguages | list | 1 |\n| ### i18nRegions | list | 1 |\n| ### members | list | 1 |\n| ### membershipsLevels | list | 1 |\n| ### playlistItems | list | 1 |\n| | insert | 50 |\n| | update | 50 |\n| | delete | 50 |\n| ### playlists | list | 1 |\n| | insert | 50 |\n| | update | 50 |\n| | delete | 50 |\n| ### search | list | 100 |\n| ### subscriptions | list | 1 |\n| | insert | 50 |\n| | delete | 50 |\n| ### thumbnails | set | 50 |\n| ### videoAbuseReportReasons | list | 1 |\n| ### videoCategories | list | 1 |\n| ### videos | list | 1 |\n| | insert | 1600 |\n| | update | 50 |\n| | rate | 50 |\n| | getRating | 1 |\n| | reportAbuse | 50 |\n| | delete | 50 |\n| ### watermarks | set | 50 |\n| | unset | 50 |"]]