return-youtube-dislike icon indicating copy to clipboard operation
return-youtube-dislike copied to clipboard

API: Add endpoint for bulk /Votes videoId requests, and/or entire channel.

Open shoffing opened this issue 1 year ago • 4 comments

Extension or Userscript?

Both

Request or suggest a new feature!

I'd like to request dislike counts for a whole bunch of videos at the same time. My use case is to sort videos of a given channel by like:dislike ratio, which would be hundreds of API requests if I need to do a separate request for each video currently. Not feasible to do with respect to the rate limit.

Ways to implement this!

  1. Update the /Votes endpoint to accept a comma-separated list of video ids, e.g.:
https://returnyoutubedislikeapi.com/Votes?videoIds=vid1%2Cvid2%2Cvid3

Returning a JSON array with all the results.

  1. Update the /Votes endpoint to accept a channel ID, like:
https://returnyoutubedislikeapi.com/Votes?channelId=sixtysymbols

Returning a JSON array of the results (or an object keyed by videoId).


Pagination may be needed for the results from these new endpoints, with a reasonable max page size, maybe like 100 or something?

Can you work on this?

  • [x] Yes
  • [ ] No

Will you be available for follow-up questions to help developers implement this?

Yes

shoffing avatar Oct 13 '22 15:10 shoffing