rajohns08 / words-in-movies

0 stars 0 forks source link

How can I increase the subtitle download limit for OpenSubtitles API? #4

Closed rajohns08 closed 3 years ago

rajohns08 commented 3 years ago

According to [1]:

Users will then be able to download as many subtitles as their ranks allows, from 10 as simple signed up user, to 1000 for VIP

The request limit from [2] (the O.G. API) appears to be 40 requests per 10 seconds per IP address:

API Request limit: 40 HTTP requests per 10 seconds per IP address, read here more ​https://forum.opensubtitles.org/viewtopic.php?f=8&t=16072

There might be a way to get elevated access if your server is requesting the subtitles according to [4]:

There is download limit per IP, so if you wish to download subtitles on your server, contact us for more information, otherwise you might hitting download limit.

Conclusion: Use the O.G. API from [2] and make the limited requests to OpenSubtitles from the user's browser if this were to actually be scalable to many users. That way the requests will be coming from a different IP for each end user and not all routed through my server IP address.

References: [1] https://opensubtitles.stoplight.io [2] https://trac.opensubtitles.org/projects/opensubtitles/wiki/XMLRPC [3] https://www.opensubtitles.com/en/support_us [4] https://trac.opensubtitles.org/projects/opensubtitles/wiki/DevReadFirst