(Feature Request): Support batch API requests.
Opened this issue · 2 comments
Extension or Userscript?
Actually, this is about the API.
Request or suggest a new feature!
Feature: To be able to get likes/dislikes data for a batch of video IDs in a single API call, and also not have this affect the API rate limiting as much as if each video was requested separately.
I just switched over my extension (Thumbnail Rating Bar for YouTube) to use your API instead of YouTube's for likes/dislikes data, and I am regularly retrieving data for over 30 videos at a time. I am currently doing this by requesting data for each video separately, and I think I may be hitting the rate limit sometimes.
If I could somehow request video data for a batch of videos at a time, and not have that affect the rate limit as much as if each video was requested individually, I think this would resolve the issue.
Ways to implement this!
The http://returnyoutubedislikeapi.com/Votes?videoId=...
API could be updated to also accept a comma-separated list of video IDs, in which case an array of data would be returned.
Or a new API endpoint could be added for batch requests.
Can you work on this?
- Yes
- No
I like this idea. I used your plugin for a while but eventually I opted out, not because it's bad or anything; it's actually very helpful --until it hits the rate limit and stops working. To me it's fine even when it breaks every time I use my watch list with 300+ videos, but I don't want to put too much stress on Anario's server. If you can pull data for like 100 videos at a time that would save a lot of traffic and I feel a little bit more ethical with it.
I would still support this being added. When you want to add dislikes to data from Data v3, you usually need dislikes for somewhere between 10 and 50 videos, and do that a couple of times, and the rate limit will be reached. Batch requests would be great.