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 2 years 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

Any update on this? It would be a very nice feature that would allow, for example, the ability to sort a channel's videos by their like/dislike ratio (quality).

shoffing avatar Feb 25 '23 22:02 shoffing

Is the API open source? I might be willing to help build this.

shoffing avatar Feb 25 '23 22:02 shoffing

related: https://github.com/Anarios/return-youtube-dislike/issues/144

shoffing avatar Feb 25 '23 22:02 shoffing

Good idea! See also: #319

smithtim avatar Mar 29 '23 06:03 smithtim