Getting Started
OS Dev
Last Update 5 maanden geleden
The OpenSubtitles API is a powerful RESTful service that allows developers to access a vast database of movie and TV show subtitles. This guide will walk you through the steps required to start using the API and integrate it into your applications.
more information in this article
You can use tools like Postman or Insomnia to test the OpenSubtitles API. For easier integration, export the API endpoints directly from the documentation and import them into your REST client.
For example, to search for English subtitles for the movie "The Matrix", use the following cURL command:
To ensure smooth integration, adhere to the best practices outlined in the API documentation. Key points include:
- Handle HTTP Redirects: Always use the --location parameter in cURL to follow redirects.
- Set a Valid User-Agent: Include your application name and version in the User-Agent header.
- Optimize API Requests: Send GET parameters in alphabetical order and use + instead of %20 for spaces.
While there is no limit on searching for subtitles, downloading is restricted:
- Anonymous Users: 5 downloads per 24 hours per IP.
- Authenticated Users: Depending on their rank, users can download more subtitles—from 10 for regular users to 1000 for VIP users.
To request more downloads or premium API keys, you can purchase a pro package