API
Account
Account Info
Endpoint
https://share-online.to/api/account/info?key=key
Parameters
key
String
API key Example: 1l5ftrilhllgwx2bo
Response
{
"msg": "OK",
"server_time": "2017-08-11 04:30:07",
"status": 200,
"result": {
"storage_left": "inf",
"premium_traffic_left": 102400,
"email": "[email protected]",
"premium_expire": "2019-10-24 21:00:00",
"balance": "675.95000",
"traffic_used": "150",
"traffic_left": "114298",
"storage_used": "35540071"
}
}
Account Stats
Endpoint
https://share-online.to/api/account/stats?key=key&last=last
Parameters
key
String
API key Example: 1l5ftrilhllgwx2bo
last
Number
show stats for last X days Default: 7.
Response
{
"msg": "OK",
"server_time": "2017-08-11 04:30:07",
"status": 200,
"result": [
{
"downloads": "0",
"profit_views": "0.00000",
"views_adb": "1",
"sales": "0",
"profit_sales": "0.00000",
"profit_refs": "0.00000",
"profit_site": "0.00000",
"views": "0",
"refs": "0",
"day": "2017-09-12",
"profit_total": "0.00000",
"views_prem": "0"
}
]
}
Upload
Upload form
Upload Server
Endpoint
https://share-online.to/api/upload/server?key=key
Parameters
key
String
API key Example: 1l5ftrilhllgwx2bo
Response
{
"msg": "OK",
"server_time": "2017-08-11 04:29:54",
"status": 200,
"sess_id": "3qr5wkukoy31pd1g",
"result": "https://s1.share-online.to/upload/01"
}
File(s)
Get file info
Endpoint
https://share-online.to/api/file/info?key=key&file_code=file_code
Parameters
key
String
API key Example: 1l5ftrilhllgwx2bo
file_code
String
file code, or list separated by comma Example: gi4o0tlro01u,gi4o0tlro012.
Response
{
"msg": "OK",
"server_time": "2017-08-11 04:28:53",
"status": 200,
"result": [
{
"status": 200,
"filecode": "gi4o0tlro01u",
"name": "4K Time Lapse in the EOS 6D Mark II",
"download": "0",
"size": "200",
"uploaded": "2017-08-10 05:07:17"
},
{
"status": 404,
"filecode": "gi4o0tlro012"
}
]
}
Get files list
Endpoint
https://share-online.to/api/file/list?key=key&page=page&per_page=per_page&fld_id=fld_id&public=public&created=created&name=name
Parameters
key
String
API key Example: 1l5ftrilhllgwx2bo
page
Number
page number Example: 2.
per_page
Number
number of results per page Example: 20.
fld_id
Number
folder id Example: 15.
public
Number
show public (1) or private (0) files only Example: 1.
created
String
show only files uploaded after timestamp. Specify number to show only files uploaded X minutes ago. Example: 2018-06-21 05:07:10.
name
String
filter file names Example: Iron Man.
Response
{
"msg": "OK",
"server_time": "2017-08-11 04:28:53",
"status": 200,
"result": [
{
"status": 200,
"filecode": "gi4o0tlro01u",
"name": "4K Time Lapse in the EOS 6D Mark II",
"downloads": "0",
"size": "20",
"uploaded": "2017-08-10 05:07:17"
},
{
"status": 404,
"filecode": "gi4o0tlro012"
}
]
}
Rename file
Endpoint
https://share-online.to/api/file/rename?key=key&file_code=file_code&name=name
Parameters
key
String
API key Example: 1l5ftrilhllgwx2bo
file_code
String
file code, or list separated by comma Example: gi4o0tlro01u,gi4o0tlro012.
name
String
filter file names Example: cool_video.mp4.
Response
{
"msg": "OK",
"server_time": "2017-08-11 04:28:53",
"status": 200,
"result": [
{
"status": 200,
"filecode": "gi4o0tlro01u",
"name": "4K Time Lapse in the EOS 6D Mark II",
"canplay": 1,
"views_started": "1",
"downloads": "0",
"size": "201",
"uploaded": "2017-08-10 05:07:17"
},
{
"status": 404,
"filecode": "gi4o0tlro012"
}
]
}
Set file folder
Endpoint
https://share-online.to/api/file/set_folder?key=key&file_code=file_code&fld_id=fld_id
Parameters
key
String
API key Example: 1l5ftrilhllgwx2bo
file_code
String
file code, or list separated by comma Example: gi4o0tlro01u,gi4o0tlro012.
fld_id
Number
folder id Example: 15.
Response
{
"msg": "OK",
"server_time": "2017-08-11 04:28:53",
"status": 200
}
Get deleted files
Endpoint
https://share-online.to/api/files/deleted?key=key&last=last
Parameters
key
String
API key Example: 1l5ftrilhllgwx2bo
last
Number
number of files limit Example: 20.
Response
{
"msg": "OK",
"server_time": "2017-08-11 04:28:53",
"status": 200,
"result": [
{
"file_code": "gtl2mhgw4is7",
"name": "1mb.bin",
"deleted": "2017-08-11 20:00:01",
"deleted_ago_sec": "194316"
},
{
"file_code": "uoyagho8c707",
"name": "2mb.bin",
"deleted": "2017-08-10 20:30:02"
"deleted_ago_sec": "278915"
}
]
}
Folder
Get folder/file list
Endpoint
https://share-online.to/api/folder/list?key=key&fld_id=fld_id
Parameters
key
String
API key Example: 1l5ftrilhllgwx2bo
fld_id
Number
folder id Example: 15.
Response
{
"msg": "OK",
"server_time": "2017-08-11 04:28:53",
"status": 200,
"result": {
"folders": [
{
"name": "Sub1",
"fld_id": "24"
}
],
"files": [
{
"link": "https://share-online.to/4w0sy8e63f0c",
"uploaded": "2017-07-18 04:06:39",
"file_code": "4w0sy8e63f0c",
"fld_id": "16",
"name": "100mb.bin",
}
]
}
}
Create new folder
Endpoint
https://share-online.to/api/folder/create?key=key&parent_id=parent_id&name=name
Parameters
key
String
API key Example: 1l5ftrilhllgwx2bo
parent_id
Number
parent folder id Example: 15.
name
String
folder name Example: New Folder.
Response
{
"msg": "OK",
"server_time": "2017-08-11 04:28:53",
"status": 200,
"result": {
"fld_id": "26"
}
}
Rename folder
Endpoint
https://share-online.to/api/folder/rename?key=key&fld_id=fld_id&name=name
Parameters
key
String
API key Example: 1l5ftrilhllgwx2bo
fld_id
Number
folder id Example: 15.
name
String
folder name Example: New Folder.
Response
{
"msg": "OK",
"server_time": "2017-08-11 04:28:53",
"status": 200,
"result": "true"
}