Premiumize.me api documentation for torrents
The api can very simply be used by posting to urls and include the necessary parameters.
Always include the parameter "customer_id" and "pin"
The placeholders in the form fields represent the different fields required for the action.
Sample responses for error and success cases are provided below.
Everything is json encoded.
There may be additional fields in json responses that are not defined yet in the future, but please only rely on the fields shown here.
add torrent by file upload:
POST https://www.premiumize.me/torrent/add
example error response:
{
"status": "error",
"message": "no src found"
}
example success response:
{
"status": "success"
}
add torrent by submitting magnet link or link to .torrent file:
POST https://www.premiumize.me/torrent/add
exmaple error response:
{
"status": "error",
"message": "An error occured. Please try again and contact customer service if the problem persists."
}
example success response:
{
"status": "success"
}
delete:
POST https://www.premiumize.me/torrent/delete
example error response:
{
"status": "error",
"message": "Could not delete torrent. Are you logged in as the right user?"
}
example success response:
{
"status": "success"
}
reset:
POST https://www.premiumize.me/torrent/reset
example error response:
{
"status": "error",
"message": "Torrent is not in error state, cannot reset"
}
example success response:
{
"status": "success"
}
list:
POST https://www.premiumize.me/torrent/list
example error response:
{
"status": "error",
"message": "Not logged in. Please log in first."
}
example success response:
{
"status":"success",
"torrents":[
{
"hash":"xxxxxxx",
"status":"finished",
"size":"4072834261",
"percent_done":null,
"name":"xxxxxxx"
},
{
"status": "waiting",
"hash": "xxx",
"size": 165115355,
"percent_done": 10,
"name": "name"
}
]
}
browse:
POST https://www.premiumize.me/torrent/browse
example error response:
{
"status": "error",
"message": "This torrent has not been added to download list yet."
}
example success response:
{
"status":"success",
"data":{
"content":{
"FOLDER NAME":{
"type":"dir",
"children":{
"sample.txt":{
"type":"file",
"size":2329,
"ext":"txt",
"url":"http-link",
"stream":null
},
"sample.avi":{
"type":"file",
"size":13348864,
"ext":"avi",
"url":"https://xxx.xxx.com/torrentdl/xxx/sample.avi",
"stream":"https://xxx.xxx.com/torrentdl/iB2yeekaDai8EipheeFae1he.mp4"
}
},
"size":1538393741,
"items":2
}
}
}
}