YouTube Data API videos.insert returns hidden “Video Uploads per day” 429 despite quota headroom
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Bắt đầu với luồng tải lên tối thiểu youtube.videos().insert(...).next_chunk() và so sánh phản hồi 429 của nó với các nguồn quota được ghi rõ trong tài liệu và các lệnh Cloud Quotas được liệt kê trong issue. Công việc được xem là hoàn tất khi xác nhận được hành vi quota phía dịch vụ và xác định được một thay đổi có thể thực hiện đối với client, tài liệu hoặc khả năng hiển thị quota; không có tệp hay test nào trong repository được nêu tên.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Starting around May 24-25, 2026, uploads through the YouTube Data API videos.insert endpoint began failing after a small number of uploads per day with HTTP 429:
{
"error": {
"code": 429,
"message": "Quota exceeded for quota metric 'Video Uploads' and limit 'Video Uploads per day' of service 'youtube.googleapis.com' for consumer 'project_number:REDACTED'.",
"errors": [
{
"message": "Quota exceeded for quota metric 'Video Uploads' and limit 'Video Uploads per day' of service 'youtube.googleapis.com' for consumer 'project_number:REDACTED'.",
"domain": "global",
"reason": "rateLimitExceeded"
}
]
}
}
This appears to be a hidden or newly enforced quota separate from the documented YouTube Data API quota-unit system.
Expected behavior
According to the YouTube Data API quota documentation:
- Default project quota is 10,000 units/day
videos.insertcosts 100 units- Quota resets at midnight Pacific Time
A default project should therefore support roughly 100 uploads/day, assuming no other significant quota usage.
If there is a separate Video Uploads per day quota, it should be documented and visible in Cloud Console / Cloud Quotas API so developers can monitor it and request increases.
Actual behavior
Uploads fail after roughly 7 uploads/day with:
Quota exceeded for quota metric 'Video Uploads' and limit 'Video Uploads per day'
However:
- Cloud Console shows YouTube Data API quota usage well below 100%
gcloud beta quotas info list --service=youtube.googleapis.comdoes not expose aVideo Uploads per daymetric- Cloud Quotas API also does not appear to expose this metric
- Manual uploads through YouTube Studio to the same channel still work
Environment
- API: YouTube Data API v3
- Method:
videos.insert - Library:
google-api-python-client - Version tested:
2.196.0 - Upload type: resumable upload
- Auth scope:
https://www.googleapis.com/auth/youtube.upload - Project has YouTube Data API enabled
- OAuth app, project, and channel are unchanged from before the regression
Minimal code shape
media = MediaFileUpload(path, chunksize=-1, resumable=True)
request = youtube.videos().insert(
part="snippet,status",
body={
"snippet": {
"title": title,
"description": description,
},
"status": {
"privacyStatus": "private",
},
},
media_body=media,
)
response = None
while response is None:
status, response = request.next_chunk()
Additional evidence
Multiple developers appear to be reporting the same behavior in the same timeframe: API uploads fail after a small number of videos, while Cloud Console still shows quota headroom and manual YouTube Studio uploads still work.
Related Reddit discussion:
https://old.reddit.com/r/googlecloud/comments/1tm1scx/429_quota_exceeded/
Request
Could you please confirm:
- whether
Video Uploads per dayis a new or newly enforced quota; - where this quota can be viewed, monitored, and increased;
- whether the current behavior is intentional;
- if intentional, whether the public YouTube Data API quota docs and Cloud Console / Cloud Quotas API can be updated to expose this metric?
I understand this may be a service-side quota issue rather than a google-api-python-client bug, but the client is currently surfacing an undocumented quota error that developers cannot inspect or manage through the usual quota tools.
Sources checked
- YouTube quota docs: https://developers.google.com/youtube/v3/determine_quota_cost
videos.insertreference: https://developers.google.com/youtube/v3/docs/videos/insert- YouTube upload guide: https://developers.google.com/youtube/v3/guides/uploading_a_video
- Related Reddit thread: https://old.reddit.com/r/googlecloud/comments/1tm1scx/429_quota_exceeded/
- Ngôn ngữ chính
- Python
- Star
- 8.9k
- Fork
- 2.6k
- Merge trung bình
- 2 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 16
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của googleapis/google-api-python-client
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
test: connection leak test test_discovery_http_is_closed is shadowed and syntactically invalid Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
-
เมตาแมส Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 10/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
Tất cả issue của googleapis/google-api-python-client
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
stephrobert/dsoxlab#238 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
sublimehq/package_control#1780 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
nwg-piotr/nwg-displays#145 ·