YouTube

FREEMIUM
By Dataverse | Updated il y a 22 jours | Data
Popularity

9.6 / 10

Latency

142ms

Service Level

100%

Health Check

100%

Back to All Discussions

Bug on Batch video endpoint

Rapid account: Ainarabearimalaza
ainarabearimalaza
il y a un mois

Hello, we’re using batch video endpoint with Mega plan. In the endpoint we saw that we should be able to request up to 1000 videos by Id. But the request GET doesn’t allow to use more than arround 8000 characters else it returns an error URI too Long . Means, we can fetch only 674 video Ids .
Do you have solution ? Or maybe another endpoint batch with POST method instead of GET ?
Thanks,

Rapid account: Ainarabearimalaza
ainarabearimalaza Commented il y a un mois

Thank you, we will test with POST and probably merge into it

Rapid account: Bokolesnik
bokolesnik Commented il y a un mois

Hello, thank you for contacting us. We tested /batch/videos with 1k video IDs and it processed successfully. Try reducing the list of IDs to 1k before requesting them. We also added the ability to request batches using the ‘POST’ method, using ‘id’ from the request’s body.

Currently, we have a hard limit of 16 KB for URIs, so for 1k videos everything will work fine, but for channel IDs, it’s better to use ‘POST’ or limit to 500 items if you use ‘GET’ method.

Join in the discussion - add comment below:

Login / Signup to post new comments