Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

Why does YouTube Data API return "uploadLimitExceeded" but I can still upload via the web interface?

$
0
0

I am trying to upload videos to a YouTube channel using the YouTube Data API. However, I keep getting the error:The user has exceeded the number of videos they may upload.Despite this, I am still able to upload videos to the same channel through the YouTube web interface without any issues.

Here are some additional details:

1.I have checked my API quota on the Google Cloud Console, and I have not exceeded my daily quota.2.I am using a verified YouTube account.3.The OAuth 2.0 credentials I am using are valid and have the necessary permissions.4.I am not uploading videos in quick succession; there is a reasonable delay between uploads.5.I have not received any notifications or restrictions on my YouTube account.

What I have tried so far:1.Monitoring my quota usage on the Google Cloud Console.2.Ensuring that my account is verified and has no restrictions.3.Checking the YouTube Data API documentation for any information on upload limits.4.Searching for similar issues on forums and community discussions.

Questions:1.Are there any specific upload frequency limits when using the YouTube Data API that differ from those on the web interface?2.Is there any known issue or undocumented limitation that could cause this discrepancy?3.Are there any best practices or strategies to handle this situation and ensure successful uploads via the API?

Any insights or suggestions would be greatly appreciated. Thank you in advance!

Example Code:

Request method: POSTRequest URL: https://www.googleapis.com/upload/youtube/v3/videos?uploadType=resumable&part=snippet,status,contentDetailsRequest headers:  Authorization: Bearer xxx  Content-Length: 164  Content-Type: application/json; charset=UTF-8  X-Upload-Content-Length: 45744063  X-Upload-Content-Type: video/*Request body:{"snippet":{"categoryId":"22","title":"v98","description":"v98","tags":["game","video"]},"status":{"privacyStatus":"private","embeddable":true,"license":"youtube"}}

Returned Error:

Response status: 400 Bad RequestResponse headers:  Warning: 214 UploadServer gzipped  X-Guploader-Uploadid: AHmUCY1CLlfnCxDfyriIUj00FkBAlIDPnljSKqDJevhKOJCGVFRq_VYR3TdZKVyOntYC63HYxu8V6UpnpfqyICr3-sSJ6pmEVURK_TqcOdYBD-PA  Date: Tue, 29 Oct 2024 02:32:55 GMT  Cache-Control: private  Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000  Content-Type: application/json; charset=UTF-8  X-Guploader-Response-Body-Transformations: gzipped  Vary: Origin  Server: UploadServerResponse body:{"error": {"code": 400,"message": "The user has exceeded the number of videos they may upload.","errors": [      {"message": "The user has exceeded the number of videos they may upload.","domain": "youtube.video","reason": "uploadLimitExceeded"      }    ]  }}

Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>