YouTube

FREEMIUM
От Dataverse | Обновлено 8 days ago | Data
Популярность

9.6 / 10

Задержка

136ms

Уровень обслуживания

100%

Health Check

100%

Назад ко всем обсуждениям

Bug on Batch video endpoint

Rapid account: Ainarabearimalaza
ainarabearimalaza
2 months ago

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 2 months ago

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

Rapid account: Bokolesnik
bokolesnik Commented 2 months ago

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.

Присоединяйтесь к обсуждению – добавьте комментарий ниже:

Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии