Protect yourself from ISP, use Seedr
What is Seedr BTW ?
Seedr is a cloud-based service that allows you to download and stream torrents directly from your browser. You don’t need to install any software or worry about your privacy and security. Seedr handles everything for you, from fetching the torrent files to converting them into playable formats.
Perks of using Seedr
With Seedr, you can enjoy your favorite movies, shows, music, books, and more on any device, anywhere, anytime. You can also share your files with your friends and family easily and securely. Seedr offers generous storage space, fast download speeds, and unlimited bandwidth.
Here are some of the benefits of using Seedr in your daily life:
- Save time and space: You don’t have to wait for the torrent to finish downloading or waste your device’s storage space. You can stream or download your files instantly from >edr’s servers.
- Protect your privacy and security: You don’t have to expose your IP address or personal information to the torrent network. Seedr encrypts your traffic and hides your entity from prying eyes.
- Access blocked content: You don’t have to worry about geo-restrictions or censorship. Seedr can bypass any firewall or ISP blocking and let you access any content you want.
- Enhance your entertainment: You don’t have to settle for low-quality or incomplete files. Seedr can optimize your files for the best quality and performance. You can also use Seedr’s built-in media player to watch or listen to your files with subtitles, playlists, and more.
How to use Seedr REST API
One of the best feature of Seedr is its REST API. I will show you how to use the Seedr REST API to perform some common tasks.
Getting started
To use the Seedr REST API, you need to have a Seedr account and an API token. You can get your API token from the settings page of your Seedr dashboard. The API token is a secret key that authenticates your requests to the server, so keep it safe and do not share it with anyone.
The base URL for the Seedr REST API is https://www.seedr.cc/api/. All requests are made using HTTPS and JSON format. You need to include your API token as a header in every request, like this:
python
import requests
api_token = "your_api_token_here"
headers = {"Authorization": "Token " + api_token}
Listing your files
To list the files and folders in your Seedr account, you can use the /folder endpoint. This endpoint accepts a folder_id parameter that specifies which folder to list. If you omit this parameter, it will list the root folder by default. The response will contain an array of objects representing the files and folders, with their names, ids, sizes, types, and other properties.
For example, to list the files in the root folder, you can use this code:
response = requests.get("https://www.seedr.cc/api/folder", headers=headers)
data = response.json()
print(data)
This will print something like this:
{
"files": [
{
"id": 123456,
"name": "example.mp4",
"size": 123456789,
"type": "video",
"video_metadata": {...},
"folder": false
},
{
"id": 234567,
"name": "example.zip",
"size": 234567890,
"type": "archive",
"folder": false
}
],
"folders": [
{
"id": 345678,
"name": "example_folder",
"size": 345678901,
"type": "folder",
"folder": true
}
]
}
Adding a torrent
To add a torrent to your Seedr account, you can use the /torrent/add endpoint. This endpoint accepts either a magnet parameter that contains a magnet link, or a torrent_file parameter that contains a torrent file as a multipart/form-data upload. The response will contain an object representing the added torrent, with its id, name, size, status, and other properties.
For example, to add a torrent using a magnet link, you can use this code:
magnet = "magnet:?xt=urn:btih:example"
response = requests.post("https://www.seedr.cc/api/torrent/add", data={"magnet": magnet}, headers=headers)
data = response.json()
print(data)
This will print something like this:
{
"id": 456789,
"name": "example.torrent",
"size": 456789012,
"status": "downloading",
"progress": 0,
...
}
Downloading a file
To download a file from your Seedr account, you can use the /file endpoint. This endpoint accepts a file_id parameter that specifies which file to download. The response will be the raw file data as an octet-stream.
For example, to download a file with id 123456 and save it as example.mp4, you can use this code:
file_id = 123456
response = requests.get("https://www.seedr.cc/api/file", params={"file_id": file_id}, headers=headers)
with open("example.mp4", "wb") as f:
f.write(response.content)
Conclusion
In this blog post, I have shown you what is seedr, its advantages and also how to use the Seedr REST API to list your files, add a torrent, and download a file. There are many more endpoints and features that you can explore in the official documentation. The Seedr REST API is a powerful and convenient way to access your cloud-based torrent downloader from any device or platform.