You are using a browser extension that blocks our advertisements. More
Log In SIGN UP NOW
NEW ON UPLEA ? CREATE YOUR ACCOUNT NOW


API UPLEA


To get your API key you must connect or create an account on our website.
All data parameters must be encoded in json and use POST method except for upload which only needs POST parameters.

The json data have to be send under "json" fieldname ($_POST['json'] = "your json string").
Check link status

Url request

http://api.uplea.com/api/check-my-links

Request parameters

{"links":["http://www.uplea.com/dl/42EFGESZ32", "http://www.uplea.com/dl/42456SZ32"]}

Expected response

{"error":[],"result":[{"link":"http://www.uplea.com/dl/42EFGESZ32","status":"INVALID"},{"link":"http://www.uplea.com/dl/42EFGESZ32","status":"INVALID"}],"status":true}

Get my api key

Url request

http://api.uplea.com/api/get-my-api-key

Request parameters

{"username":"uplea","password":"anonymous"}

Expected response

{"error":[],"result":{"api_key":"42a795d42c20f424af74d290351a420f19b420e4"},"status":true}

Get user informations

Url request

http://api.uplea.com/api/get-user-info

Request parameters

{"api_key":"dazd53trh6h63fzefh42gg"}

Expected response

{"error":[],"result":{"login":"uplea","mail":"email_adress","premium_until":"2025-07-28 13:03:33","instant_download":"false","is_premium":"true"},"status":true}

Get node for upload

Url request

http://api.uplea.com/api/get-best-node

Request parameters

No parameters.

Expected response

{"error":[],"result":{"name":"n1.uplea.com","token":"8a5b013f8e2674ad71af281855eee40745872ee19128ba92d7502626996f979e08c4f8471f8b014a54031d28033f9df46bce"},"status":true}

Upload file

Url request

http://#node#/

Request parameters

This request needs POST parameters :
  • api_key (optional)
  • token
  • files[]
  • file_id[]
file_id contains a random string, it must be uniq for each file.

Expected response

[{"id":248,"name":"wee.tar","size":51200,"type":"application\/octet-stream","code":"5135B8F6B471C","url":"http:\/\/uplea.com\/dl\/5135B8F6B471C","error":0}]

Get link informations

Url request

http://api.uplea.com/api/get-link

Request parameters

{"link":"http://www.uplea.com/dl/42EFGESZ32"}

Expected response

{"error":[],"result":{"filename":"example.txt","downloads":"1","status":"OK","filesize":"1414","filetype":"application\/octet-stream","code":"42EFGESZ32","created_at":"2013-10-01 18:19:49","link":"http:\/\/www.uplea.com\/dl\/42EFGESZ32"},"status":true}

Get my links

Url request

http://api.uplea.com/api/get-links

Request parameters

{"api_key":"dazd53trh6h63fzefh42gg","nb":42,"page":0}

Expected response

{"error":[],"result":{"nb_page":1,"total":5,"page":[{"filename":"surfer_floating_on_the_sea.jpg","downloads":"7","status":"DELETE","filesize":"525231","filetype":"image\/jpeg","code":"0A7FB18A93C1","created_at":"2013-10-01 14:02:46"},{"filename":"PS_Brochure_EN_ROW.pdf","downloads":"0","status":"OK","filesize":"1174645","filetype":"application\/pdf","code":"9C6D89571C70","created_at":"2013-10-01 15:47:26"},{"filename":"Compressed.zip","downloads":"0","status":"OK","filesize":"9129702","filetype":"application\/octet-stream","code":"45023F233831","created_at":"2013-10-01 15:47:29"},{"filename":"SleepAway.mp3","downloads":"0","status":"OK","filesize":"4842585","filetype":"audio\/mp3","code":"E2AA2B28A211","created_at":"2013-10-01 15:47:36"},{"filename":"SDK-4.2.2-win32-x86_64.zip","downloads":"0","status":"OK","filesize":"192270521","filetype":"application\/octet-stream","code":"13EDAB68614D","created_at":"2013-10-01 15:47:55"}]},"status":true}

Get folder informations

Url request

http://api.uplea.com/api/get-folder

Request parameters

{"link":"http://www.uplea.com/folder/42EFGESZ32"}

Expected response

{"error":[],"result":{"code":"42EFGESZ32","name":"Images","created_at":"2013-10-01 15:48:11","downloads":"0","size":"525231","links":"1","content":{"filename":"surfer_floating_on_the_sea.jpg","code":"6A4213721E67"},"link":"http:\/\/uplea.com\/folder\/42EFGESZ32"},"status":true}

Get my folders

Url request

http://api.uplea.com/api/get-folders

Request parameters

{"api_key":"dazd53trh6h63fzefh42gg","nb":42,"page":0}

Expected response

{"error":[],"result":{"nb_page":0,"total":2,"page":[{"code":"7F340B1C0369B","name":"Images","created_at":"2013-10-01 15:48:11","downloads":"0","size":"525231","links":"1"},{"code":"471A6B677B936","name":"PDF","created_at":"2013-10-01 15:48:24","downloads":"0","size":"2576922","links":"2"}]},"status":true}

Create a folder

Url request

http://api.uplea.com/api/create-folder

Request parameters

{"api_key":"dazd53trh6h63fzefh42gg","name":"My test Folder"}

Expected response

{"error":[],"result":["http:\/\/uplea.com\/folder\/9E76FA9C4AB122C"],"status":true}

Delete a folder

Url request

http://api.uplea.com/api/delete-folder

Request parameters

{"api_key":"dazd53trh6h63fzefh42gg","code":"42EFGESZ32"}

Expected response

{"error":[],"result":[],"status":true}

Delete a file

Url request

http://api.uplea.com/api/delete-file

Request parameters

{"api_key":"dazd53trh6h63fzefh42gg","code":"42EFGESZ32"}

Expected response

{"error":[],"result":[],"status":true}

Set file description

Url request

http://api.uplea.com/api/set-file-description

Request parameters

{"api_key":"dazd53trh6h63fzefh42gg","code":"42EFGESZ32","description":"Set a file description"}

Expected response

{"error":[],"result":[],"status":true}

Set file password

Url request

http://api.uplea.com/api/set-file-password

Request parameters

{"api_key":"dazd53trh6h63fzefh42gg","code":"42EFGESZ32","password":"my-password"}

Expected response

{"error":[],"result":[],"status":true}

Set folder password

Url request

http://api.uplea.com/api/set-folder-password

Request parameters

{"api_key":"dazd53trh6h63fzefh42gg","code":"42EFGESZ32","password":"my-password"}

Expected response

{"error":[],"result":[],"status":true}