API Documentation

API Credentials

You need an Account to get an API Key. Just register on zPlayer.live to get one.

Register

API Documentation

Account Info

My Account functions

URL Structure
https://v2.zplayer.live/api/account/info?key=key
Parameters
Name Description Example Required
key API key account. 6l1ftrsltllgwh7kr Yes
Response
Name Description Example
msg Status response message. OK
server_time Server time. 2017-08-11 04:30:07
status Response status. 200
result Query result in array. Array

Sample Successful JSON Response:

{
	{
	"msg": "OK",
	"server_time": "2017-08-11 04:30:07",
	"status": 200,
	"result": {
		"email": "[email protected]",
		"balance": "0.00000",
		"storage_used" :"24186265",
		"storage_left": 128824832615,
		"premim_expire": "2015-10-24 21:00:00
	}
}

Account Stats

URL Structure
https://v2.zplayer.live/api/account/stats?key=key&last=last
Parameters
Name Description Example Required
key API key account. 6l1ftrsltllgwh7kr Yes
last show stats for last X days. 7 Yes
Response
Name Description Example
msg Status response message. OK
server_time Server time. 2017-08-11 04:30:07
status Response status. 200
result Query result in array. Array

Sample Successful JSON 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 by URL

URL Structure
https://v2.zplayer.live/api/upload/url?key=key&url=url
Parameters
Name Description Example Required
key API key account. 6l1ftrsltllgwh7kr Yes
url URL to video file. http://site.com/v.mkv Yes
Response
Name Description Example
msg Status response message. OK
server_time Server time. 2017-08-11 04:30:07
status Response status. 200
result Query result in array. Array

Sample Successful JSON Response:

{
  "msg": "OK",
  "server_time": "2017-08-11 04:29:54",
  "status": 200,
  "result": {
    "filecode": "jthi5jdsu8t9"
  }
}

Upload Server

Shortest sample video upload form:

<form enctype="multipart/form-data" action="https://v2.zplayer.live/upload/01" method="post">
<input type="hidden" name="api_key" value="1l5ftrilhllgwx2bo">
<input name="file" type="file">
<input type="submit">
</form>

URL Structure
https://v2.zplayer.live/api/upload/server?key=key
Parameters
Name Description Example Required
key API key account. 6l1ftrsltllgwh7kr Yes
Response
Name Description Example
msg Status response message. OK
server_time Server time. 2017-08-11 04:30:07
status Response status. 200
result Query result in array. Array

Sample Successful JSON Response:

{
  "msg": "OK",
  "server_time": "2017-08-11 04:29:54",
  "status": 200,
  "result": "https://v2.zplayer.live/upload/01"
}

File Info

URL Structure
https://v2.zplayer.live/api/file/info?key=key&file_code=file_code
Parameters
Name Description Example Required
key API key account. 6l1ftrsltllgwh7kr Yes
file_code file code, or list separated by comma. gi4o0tlro01u,gi4o0tlro012 Yes
Response
Name Description Example
msg Status response message. OK
server_time Server time. 2017-08-11 04:30:07
status Response status. 200
result Query result in array. Array

Sample Successful JSON 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",
      "views": "0",
      "length": "20",
      "uploaded": "2017-08-10 05:07:17"
    },
    {
      "status": 404,
      "filecode": "gi4o0tlro012"
    }
  ]
}

File List

URL Structure
https://v2.zplayer.live/api/file/list?key=1l5ftrilhllgwx2bo&page=2&per_page=20&fld_id=15&public=1&created=2018-06-21%2005%3A07%3A10&title=Iron%20man
Parameters
Name Description Example Required
key API key account. 6l1ftrsltllgwh7kr Yes
page page number. 2 Yes
per_page number of results per page. 20 Yes
fld_id folder id. 15 Yes
public show public (1) or private (0) files only. 1 Yes
created show only files uploaded after timestamp. Specify number to show only files uploaded X minutes. 2018-06-21 05:07:10 Yes
title filter video titles. Iron man Yes
Response
Name Description Example
msg Status response message. OK
server_time Server time. 2017-08-11 04:30:07
status Response status. 200
result Query result in array. Array

Sample Successful JSON 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",
      "views": "0",
      "length": "20",
      "uploaded": "2017-08-10 05:07:17"
    },
    {
      "status": 404,
      "filecode": "gi4o0tlro012"
    }
  ]
}

File Rename

URL Structure
https://v2.zplayer.live/api/file/rename?key=key&file_code=file_code&title=title
Parameters
Name Description Example Required
key API key account. 6l1ftrsltllgwh7kr Yes
file_code file code, or list separated by comma. gi4o0tlro01u,gi4o0tlro012 Yes
title new file title. cool video Yes
Response
Name Description Example
msg Status response message. OK
server_time Server time. 2017-08-11 04:30:07
status Response status. 200
result Query result in array. Array

Sample Successful JSON 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",
      "views": "0",
      "length": "20",
      "uploaded": "2017-08-10 05:07:17"
    },
    {
      "status": 404,
      "filecode": "gi4o0tlro012"
    }
  ]
}

File Clone

URL Structure
https://v2.zplayer.live/api/file/clone?key=key&file_code=file_code
Parameters
Name Description Example Required
key API key account. 6l1ftrsltllgwh7kr Yes
file_code file code. gi4o0tlro01u,gi4o0tlro012 Yes
Response
Name Description Example
msg Status response message. OK
server_time Server time. 2017-08-11 04:30:07
status Response status. 200
result Query result in array. Array

Sample Successful JSON Response:

{
  "msg": "OK",
  "server_time": "2017-08-11 04:28:53",
  "status": 200,
  "result": {
    "filecode": "gtl2mhgw4is7",
    "url": "https://v2.zplayer.live/video/gtl2mhgw4is7"
  }
}

File Set Folder

URL Structure
https://v2.zplayer.live/api/file/set_folder?key=key&file_code=file_code&fld_id=fld_id
Parameters
Name Description Example Required
key API key account. 6l1ftrsltllgwh7kr Yes
file_code file code. gi4o0tlro01u,gi4o0tlro012 Yes
fld_id folder id. 15 Yes
Response
Name Description Example
msg Status response message. OK
server_time Server time. 2017-08-11 04:30:07
status Response status. 200

Sample Successful JSON Response:

{
  "msg": "OK",
  "server_time": "2017-08-11 04:28:53",
  "status": 200
}

Folder List

URL Structure
https://v2.zplayer.live/api/folder/list?key=key&fld_id=fld_id
Parameters
Name Description Example Required
key API key account. 6l1ftrsltllgwh7kr Yes
fld_id folder id. 15 Yes
Response
Name Description Example
msg Status response message. OK
server_time Server time. 2017-08-11 04:30:07
status Response status. 200
result Query result in array. Array

Sample Successful JSON Response:

{
  "msg": "OK",
  "server_time": "2017-08-11 04:28:53",
  "status": 200,
  "result": {
    "folders": [
      {
        "name": "Sub1",
        "fld_id": "24"
      }
    ],
    "files": [
      {
        "link": "https://v2.zplayer.live/video/4w0sy8e63f0c",
        "uploaded": "2017-07-18 04:06:39",
        "file_code": "4w0sy8e63f0c",
        "fld_id": "16",
        "title": "000 video sample2 s",
        "canplay": 0
      }
    ]
  }
}

Create Folder

URL Structure
https://v2.zplayer.live/api/folder/create?key=key&parent_id=parent_id&name=name
Parameters
Name Description Example Required
key API key account. 6l1ftrsltllgwh7kr Yes
parent_id parent folder id. 15 Yes
name Folder name. New Forder Yes
Response
Name Description Example
msg Status response message. OK
server_time Server time. 2017-08-11 04:30:07
status Response status. 200
result Query result in array. Array

Sample Successful JSON Response:

{
  "msg": "OK",
  "server_time": "2017-08-11 04:28:53",
  "status": 200,
  "result": {
    "fld_id": "26"
  }
}

Rename Folder

URL Structure
https://v2.zplayer.live/api/folder/rename?key=key&fld_id=fld_id&name=name
Parameters
Name Description Example Required
key API key account. 6l1ftrsltllgwh7kr Yes
fld_id folder id. 15 Yes
name folder name. New Folder Name Yes
Response
Name Description Example
msg Status response message. OK
server_time Server time. 2017-08-11 04:30:07
status Response status. 200
result Query result in array. Array

Sample Successful JSON Response:

{
  "msg": "OK",
  "server_time": "2017-08-11 04:28:53",
  "status": 200,
  "result": "true"
}

Deleted Files

URL Structure
https://v2.zplayer.live/api/files/deleted?key=key&last=last
Parameters
Name Description Example Required
key API key account. 6l1ftrsltllgwh7kr Yes
last number of files limit 20 Yes
Response
Name Description Example
msg Status response message. OK
server_time Server time. 2017-08-11 04:30:07
status Response status. 200
result Query result in array. Array

Sample Successful JSON Response:

{
    "msg":"OK",
    "server_time":"2017-08-11 04:28:53",
    "status":200,
    "result":
    [
        {
            "file_code":"gtl2mhgw4is7",
            "title":"New title",
            "deleted":"2017-08-11 20:00:01",
            "deleted_ago_sec":"194316"
        },
        {
            "file_code":"uoyagho8c707",
            "title":"000-video-sample2s",
            "deleted":"2017-08-10 20:30:02"
            "deleted_ago_sec":"278915"
        }
    ]
}

DMCA Files

URL Structure
https://v2.zplayer.live/api/files/dmca?key=key&last=last
Parameters
Name Description Example Required
key API key account. 6l1ftrsltllgwh7kr Yes
last number of files limit 20 Yes
Response
Name Description Example
msg Status response message. OK
server_time Server time. 2017-08-11 04:30:07
status Response status. 200
result Query result in array. Array

Sample Successful JSON Response:

{
  "msg": "OK",
  "server_time": "2017-08-11 04:28:53",
  "status": 200,
  "result": [
    {
      "file_code": "gtl2mhgw4is7",
      "del_time": "2017-08-11 16:31:53"
    },
    {
      "file_code": "uoyagho8c707",
      "del_time": "2017-08-11 16:30:23"
    }
  ]
}

zPlayer.live
Copyright © 2020 - zPlayer.live