ExtraTorrent.cc - The Largest Bittorent SystemLogin   |   Register
Latest Articles
Most searched
Hot torrents
First Cams
View Torrent Info: Guardians of the Galaxy Vol. 2 2017 NEW HDCAM x264 HQMic-CPG
View Torrent Info: Free Fire 2017 HDCAM x264-CPG
View Torrent Info: The.Fate.of.the.Furious.2017.HDTS.H264.AC3.HQ.Hive-CM8
View Torrent Info: The Boss Baby 2017 720p HD-TS x264 AC3-CPG
Hot torrents
View Torrent Info: The Wolfman Legacy - Werewolf of London (1935) Xvid DvDRip [DDR]
View Torrent Info: Dont.Fuck.in.the.Woods.2016.HDRip.XviD.AC3-EVO
View Torrent Info: Small.Crimes.2017.HDRip.XviD.AC3-EVO
View Torrent Info: The.Sex Addict.2017.HDRip.XViD-ETRG
Hot torrents
H264 X264
View Torrent Info: Small Crimes (2017) NF - 720p WEBRiP - 850MB - ShAaNiG
View Torrent Info: Rogue One (2016) 720p BluRay x264 DTS Soup
View Torrent Info: Sold (2016) x264 DvDRip DDS 5.1 Esub -DDR
View Torrent Info: Voice.from.the.Stone.2017.720p.WEB-DL.H264.AC3-ETRG
Hot torrents
BluRay, 4k UHD
View Torrent Info: The Hunt For Red October 1990 1080p BluRay x264 TrueHD 5.1 -DDR
View Torrent Info: Sniper 1993 1080p BluRay x264 DTSHD 5.1 -DDR
View Torrent Info: Poltergeist 1982 1080p Bluray x264 Multi TrueHD 5.1 -DDR
View Torrent Info: Priest 2011 Multi BluRay 1080p x264 DTSHD 5.1 -DDR
Hot torrents
View Torrent Info: The.Son.S01E05.WEB-DL.x264-FUM[ettv]
View Torrent Info: Training.Day.S01E10.WEB-DL.x264-FUM[ettv]
View Torrent Info: Samurai.Jack.S05E07.HDTV.x264-W4F[ettv]
View Torrent Info: The.Originals.S04E06.WEB-DL.x264-FUM[ettv]
View Torrent Info: Bahubali 2 - The Conclusion 2017 x264 DesiPDVD Rip AAC 2.0 -DDR
View Torrent Info: The Ghazi Attack (2017) - 1080p - BluRay - x264 - DTS - ESub - [DDR]
View Torrent Info: Vaishali (2011) HQ Bluray 1080p x264 DTSHD 5.1 -DDR
View Torrent Info: [ 18] Sechs Schwedinnen auf Ibiza (1981) BDRip 720p x264 [Multi Audio] [German Spanish English]--prisak~~{HKRG}
To add new messages please Login or Register for FREE
Warning! Use a VPN When Downloading Torrents!
Your IP Address is   Location is United States
Your Internet Provider and Government can track your torrent activity!  Hide your IP ADDRESS with a VPN!
ExtraTorrent strongly recommends using Trust.Zone VPN to anonymize your torrenting. It's FREE!
Get VPN Now for FREE!

Uploading API (closed)

admin avatar
Posted: Thu Sep 13, 2012 12:01
API for uploading torrents to ET

Now trusted uploaders and staff can use API to fast upload torrents to our site

1. To start using API you need generate your Personal Key on My Account -> Settings page right at bottom.

WARNING: DO NOT share your personal key! If someone will know it he will be able to upload too and this is fast way to loose your reputation and get blocked
WARNING: Please update your key sometimes. This is better for your privacy and security.

2. You need to use following API url:

Parameters you need to send via POST method: name, category, language, description, hash and torrent file.

Here is description of all parameters:

name - torrent title that will be visible in all listings

category - category ID
how to find category ID

there is 2 ways to find category ID:

1. just open desired category on site and you will see ID in url
category ID

2. You can find it in full categories list here (json format): all categories

language - language ID (en-us by default)
language IDs
"dz" => "Algerian"
"sa" => "Arabic"
"bg" => "Bulgarian"
"cn" => "Chinese"
"dk" => "Danish"
"nl" => "Dutch"
"uk-us" => "English"
"fr" => "French"
"fi" => "Finnish"
"de" => "German"
"in" => "Hindi"
"it" => "Italian"
"jp" => "Japanese"
"kr" => "Korean"
"no" => "Norwegian"
"pl" => "Polish"
"pt" => "Portuguese"
"ro" => "Romanian"
"ru" => "Russian"
"rs" => "Serbian"
"es" => "Spanish"
"tr" => "Turkish"

description - torrent description. dont forgot to use this field and describe your uploads. bbcodes allowed too.

hash - your personal KEY here. read above about it.

torrent - binnary torrent file itself

3. After you call API with parameters you will have answer in json format stated if upload was successful or was error during torrent upload.

Thats all about API techs.

see next posts for call examples and api answer examples.

admin avatar
Posted: Thu Sep 13, 2012 12:10
API call results and result examples

Using API call you will have server answer about status of your upload.
This answer will back in JSON format but its fully readable as text.

If upload was successful you will get status type OK and just uploaded torrent URL
Example of success result:

If upload was failed you will get status type error and error message
Example of failed result:
{"status":{"type":"error","message":"You have no rights for torrent upload!"}}
admin avatar
Posted: Thu Sep 13, 2012 12:21
PHP example script for uploading using API
<?php /** * Extratorrent.com script using uploading API * http://extratorrent.cc/upload_api/ */ $upload_API_url = "http://extratorrent.cc/upload_api/"; $params = array( "name" => "Torrent title here", // real title for your torrent here "category" => 83, // category ID here "language" => "uk-us", // language code here (uk-us english by default) "description" => "Torrent description here", // full torrent description here (bbcodes allowed) "hash" => "UploaderKey", // unique uploader key here "torrent" => "@PathToTorrentFile" // full path to torrent file here (@ symbol mandatory before path) ); $upload_status = Upload_to_ET_using_API( $upload_API_url, $params ); if( !$upload_status ) { echo "Seems ET has some troubles. Cant connect to it or it has internal problems"; } else { echo $upload_status; } exit; //------------------------------------------------------------- function Upload_to_ET_using_API( $url, $arr = array(), $connect_timeout = 10, $data_timeout = 30, $multipost = true ) { $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt ($ch, CURLOPT_NOBODY, 0); curl_setopt ($ch, CURLOPT_VERBOSE, 0); curl_setopt ($ch, CURLOPT_HTTPHEADER, array("Expect:")); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $connect_timeout); curl_setopt ($ch, CURLOPT_TIMEOUT, $data_timeout); if (!$multipost) { $t_arr = NULL; while( list($k,$v)=each($arr) ) $t_arr[] = urlencode($k)."=".urlencode($v); $arr = implode("&",$t_arr); } curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $arr); $result = curl_exec ($ch); $http_code = curl_getinfo ($ch, CURLINFO_HTTP_CODE); if ($http_code != "200") return null; curl_close ($ch); return $result; } //------------------------------------------------------------- ?>

just fill up $params array with real data as described in 1st post.
admin avatar
Posted: Thu Sep 13, 2012 12:56

Have questions about API? Maybe suggestions?
All talks about it ONLY in this topic

Forum Search

  search in post message
  search in topic subject

Home - Browse Torrents - Upload Torrent - Stat - Forum - FAQ - Login
ExtraTorrent.cc is in compliance with copyrights
Can't load ExtraTorrent? Try our official mirrors: etmirror.com - etproxy.com - extratorrentonline.com - extratorrentlive.com
2006-2017 ExtraTorrent.cc2