API Documentation
API Token: Please login to get API Token LoginAccount Info
Request
content_copy
https://streamsilk.com/api/info
Headers
Headers | Description | Required |
---|---|---|
Authorization | Token | Yes |
Response
{
"msg": "ok",
"status": 200,
"sever_time": "2024-06-22 07:32:54",
"result": {
"name": "user1",
"email": "[email protected]",
"files_total": 20,
"storage": "20",
"premium": 0
}
}
UPLOAD
Get Upload Sever
Request
content_copy
https://streamsilk.com/api/upload/sever
Headers
Headers | Description | Required |
---|---|---|
Authorization | Token | Yes |
Response
{
"msg": "ok",
"status": 200,
"sever_time": "2024-06-22 07:32:54",
"result": "https://up02.encosilk.cc/uploadapi"
}
Web Upload
Upload file using file from
Parameters
Parameter | Description | Required |
---|---|---|
Token | API Token | Yes |
File | Video file(s) | Yes |
File | Video file(s) | Yes |
CURL file upload sample
content_copy
curl -X POST -F "keyapi=${token}" -F "[email protected]" -F "[email protected]" https://up02.encosilk.cc/uploadapi
HTML form upload sample:
content_copy
<form method="POST" enctype="multipart/form-data" action="https://up02.encosilk.cc/uploadapi">
<input type="hidden" name="token" value="${token}">
<input type="file" name="file">
<input type="submit">
</form>
Response
{"videoID":
{
"status":0,
"user_id":12,
"slug":"66b23aa2d3796",
"title":"2361778.mkv",
"format":"mp4",
"folder_id":13
},
"title":"2361778.mkv"
}
Remote Upload
Add link: Upload file using direct links
Request
content_copy
https://streamsilk.com/api/upload/uploadUrl?url={upload_url}&nameFolder={name_folder}
Parameters
Parameter | Description | Required |
---|---|---|
url | URL to upload | Yes |
nameFolder | To upload inside a folder (Defaul: root) | No |
Headers
Headers | Description | Required |
---|---|---|
Authorization | Token | Yes |
Response
{
"msg": "ok",
"status": 200,
"sever_time": "2024-06-22 07:32:54",
"total_upload": 1,
"result": {
"Name Folder": "Name Folder",
"videoID": [
"66767e26439e1",
]
}
}
FILE
List Files
Request
content_copy
https://streamsilk.com/api/file/listFile?page={page}&limit={Max_video}&nameFolder={name_folder}
Parameters
Parameter | Description | Required |
---|---|---|
page | page number Example: 2 | No |
limit | number of results per page (Defaul: 50; Max 500) | No |
folder | Name Folder (Defaul: root) | No |
Headers
Headers | Description | Required |
---|---|---|
Authorization | Token | Yes |
Response
{
"msg": "ok",
"status": 200,
"sever_time": "2024-06-28 18:50:41",
"total_video": 42,
"page": 3,
"show": "40 to 42 of 42",
"file": [
{
"title": "abc.mp4",
"folder": "copy3",
"video_id": "8fPJ48lv7ddvE7NFpPcS",
"embedLink": "https://emturbovid.com/t/fjre48lv7ddvE7NFpPcS",
"poster": "https://ver1.sptvp.com/poster/1/6E/fjre48lv7ddvE7NFpPcS.png",
"view": 0,
"size": "81.41 MB",
"date_uploaded": 06/28/2024 01:33:11,
"status": active
},
{
"title": "def.mp4",
"folder": "single videos,copy3",
"video_id": "98CpQhkDM9W3BkKmmUcj",
"embedLink": "https://emturbovid.com/t/rtjgnkDM9W3BkKmmUcj",
"poster": "https://ver1.sptvp.com/poster/A/FF/rtjgnkDM9W3BkKmmUcj.png",
"view": 1,
"size": "81.41 MB",
"date_uploaded": 06/08/2024 10:53:04,
"status": active
}
]
}
Info File
Request
content_copy
https://streamsilk.com/api/file/infoFile?videoID={id_video}
Parameters
Parameter | Description | Required |
---|---|---|
videoID | id video | Yes |
Headers
Headers | Description | Required |
---|---|---|
Authorization | Token | Yes |
Response
{
"msg": "ok",
"status": 200,
"file": {
"title": "abc.mp4",
"poster": "https://ver1.sptvp.com/poster/iolcndjeouw.png",
"sub": "0",
"view": 0,
"date_uploaded": 07/28/2024 01:33:11,
"size": "122.13 M",
"duration": 515,
"quality": 1080,
"active": active
}
}
RENAME FILE
Request
content_copy
https://streamsilk.com/api/file/renameFile/{id_video}&newTitle={new_title_video}
Parameters
Parameter | Description | Required |
---|---|---|
videoID | id video | Yes |
newTitle | new file name | Yes |
Header
Headers | Description | Required |
---|---|---|
Authorization | Token | Yes |
Response
{
"msg": "Ok",
"status": "200",
"sever_time": "2024-06-22 08:04:08",
"file": {
"New title": "test5",
"videoID": "664999e98159b",
}
}
Clone File
Request
content_copy
https://streamsilk.com/api/file/cloneFile?url={embed_link}&folderID={folderID}
Parameters
Parameter | Description | Required |
---|---|---|
url | embed link | Yes |
folderID | your name folderID | No (Defaul: root) |
Header
Headers | Description | Required |
---|---|---|
Authorization | Token | Yes |
Response
{
"msg": "ok",
"status": 200,
"sever_time": "2024-06-28 08:45:57",
"file Clone": [
{
"title": "title1-clone",
"folder": "folder_name",
"video_id": "668ba745b16a8654654",
"embedLink": "https://streamsilk.com/t/668ba745b16a8654654"
},
{
"title": "title2-clone",
"folder": "folder_name",
"video_id": "668ba745b4878768",
"embedLink": "https://streamsilk.com/t/668ba745b4878768"
}
]
}
Move File
Request
content_copy
https://streamsilk.com/api/moveFile?videoID={id_video}&folderID={folderID}
Parameters
Parameter | Description | Required |
---|---|---|
videoID | videoID | Yes |
folderID | folder-ID | No (Defaul: root) |
Header
Headers | Description | Required |
---|---|---|
Authorization | Token | Yes |
{
"msg": "Success",
"status": "200",
"sever_time": "2024-06-28 09:13:13",
"result": "Videos moved successfully!"
}
Delete File
Request
content_copy
https://streamsilk.com/api/deleteFile?videoID={videoID}
Parameters
Parameter | Description | Required |
---|---|---|
videoID | videoID | Yes |
Header
Headers | Description | Required |
---|---|---|
Authorization | Token | Yes |
Response
{
"msg": "Ok",
"status": "200",
"sever_time": "2024-06-28 08:33:50",
"result": "Videos deleted successfully"
}
FOLDER
List Folder
Request
content_copy
https://streamsilk.com/api/folder/listFolder
Headers
Headers | Description | Required |
---|---|---|
Authorization | Token | Yes |
Response
{
"msg": "oke",
"sever_time": "2024-06-22 06:28:29",
"status": "200",
"total_folder": 2,
"folders": [
{
"id": 1,
"name": "folder1",
"number_file": 41,
"created_at": "2024-06-03 17:30:32",
"updated_at": "2024-06-22 06:16:22"
},
{
"id": 2,
"name": "folder2",
"number_file": 171,
"created_at": "2024-05-19 06:19:09",
"updated_at": "2024-06-21 03:25:43"
},
]
}
Create Folder
Request
content_copy
https://streamsilk.com/api/folder/createFolder?nameFolder={name new folder}
Parameters
Parameter | Description | Required |
---|---|---|
nameFolder | Your name new folder | Yes |
Headers
Headers | Description | Required |
---|---|---|
Authorization | Token | Yes |
Response
{
"msg": "ok",
"sever_time": "2024-06-22 06:42:27",
"status": "200",
"folder":
{
"id": 88,
"name": "new folder"
}
}
Rename Folder
Request
content_copy
https://streamsilk.com/api/folder/renameFolder/{folderID}?newNameFolder={name new folder}
Parameters
Parameter | Description | Required |
---|---|---|
folderID | Your folderID | Yes |
newNameFolder | Your name new folder | Yes |
Headers
Headers | Description | Required |
---|---|---|
Authorization | Token | Yes |
Response
{
"msg": "oke",
"sever_time": "2024-06-22 06:55:08",
"status": "200",
"folder":
{
"id": 88,
"name": "new name folder"
}
}
Delete Folder
Request
content_copy
https://streamsilk.com/api/folder/deleteFolder/{folderID}
Parameters
Parameter | Description | Required |
---|---|---|
folderID | Your folderID | Yes |
Headers
Headers | Description | Required |
---|---|---|
Authorization | Token | Yes |
Response
{
"msg": "oke",
"sever_time": "2024-06-22 06:55:08",
"status": "200",
'result': 'Folder deleted successfully'
}