Back to top

API Documentation

Account

Account Info

Account Info
GET/api/account/info?key={key}

Example URI

GET https://www.mp4upload.com/api/account/info?key=1l5ftrilhllgwx2bo
URI Parameters
HideShow
key
string (required) Example: 1l5ftrilhllgwx2bo

API key

Response  200
HideShow
Headers
Content-Type: application/json
Body
{
    "msg": "OK",
    "server_time": "2022-08-11 04:30:07",
    "status": 200,
    "result": {
        "email": "[email protected]",
        "balance": "0.00000",
        "storage_used" :"24186265",
        "storage_left": 128824832615,
        "premium_expire": "2015-10-24 21:00:00
    }
}

Account Stats

Account Stats
GET/api/account/stats?key={key}&last={last}

Example URI

GET https://www.mp4upload.com/api/account/stats?key=1l5ftrilhllgwx2bo&last=last
URI Parameters
HideShow
key
string (required) Example: 1l5ftrilhllgwx2bo

API key

last
number (optional) Default: 7 

show stats for last X days

Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "msg": "OK",
  "server_time": "2022-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": "2022-09-12",
      "profit_total": "0.00000",
      "views_prem": "0"
    }
  ]
}

Upload

Upload Server

Shortest sample video upload form:

<form enctype=“multipart/form-data” action="http://s1.mp4upload.com/upload/01" method=“post”>
<input name=“sess_id” value=“3qr5wkukoy31pd1g”>
<input name=“file” type=“file”>
</form>

Get next Upload Server URL
GET/api/upload/server?key={key}

Example URI

GET https://www.mp4upload.com/api/upload/server?key=1l5ftrilhllgwx2bo
URI Parameters
HideShow
key
string (required) Example: 1l5ftrilhllgwx2bo

API key

Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "msg": "OK",
  "server_time": "2022-08-11 04:29:54",
  "status": 200,
  "result": "http://s1.mp4upload.com/upload/01"
}

File

File Info

Get info/check file(s)
GET/api/file/info?key={key}&file_code={file_code}

Example URI

GET https://www.mp4upload.com/api/file/info?key=1l5ftrilhllgwx2bo&file_code=gi4o0tlro01u,gi4o0tlro012
URI Parameters
HideShow
key
string (required) Example: 1l5ftrilhllgwx2bo

API key

file_code
string (required) Example: gi4o0tlro01u,gi4o0tlro012

file code, or list separated by comma

Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "msg": "OK",
  "server_time": "2022-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": "2022-08-10 05:07:17"
    },
    {
      "status": 404,
      "filecode": "gi4o0tlro012"
    }
  ]
}

File List

Get files list
GET/api/file/list{?key,page,per_page,fld_id,public,created,name}

Example URI

GET https://www.mp4upload.com/api/file/list?key=1l5ftrilhllgwx2bo&page=2&per_page=20&fld_id=15&public=1&created=2018-06-21 05:07:10&name=Iron man
URI Parameters
HideShow
key
string (required) Example: 1l5ftrilhllgwx2bo

API key

page
number (optional) Example: 2

page number

per_page
number (optional) Example: 20

number of results per page

fld_id
number (optional) Example: 15

folder id

public
number (optional) Example: 1

show public (1) or private (0) files only

created
string (optional) Example: 2018-06-21 05:07:10

show only files uploaded after timestamp. Specify number to show only files uploaded X minutes ago.

name
string (optional) Example: Iron man

filter file names

Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "msg": "OK",
  "server_time": "2022-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": "2022-08-10 05:07:17"
    },
    {
      "status": 404,
      "filecode": "gi4o0tlro012"
    }
  ]
}

File Rename

Get info/check file(s)
GET/api/file/rename?key={key}&file_code={file_code}&name={name}

Example URI

GET https://www.mp4upload.com/api/file/rename?key=1l5ftrilhllgwx2bo&file_code=gi4o0tlro01u,gi4o0tlro012&name=cool_video.mp4
URI Parameters
HideShow
key
string (required) Example: 1l5ftrilhllgwx2bo

API key

file_code
string (required) Example: gi4o0tlro01u,gi4o0tlro012

file code, or list separated by comma

name
string (required) Example: cool_video.mp4

new file name

Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "msg": "OK",
  "server_time": "2022-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": "2022-08-10 05:07:17"
    },
    {
      "status": 404,
      "filecode": "gi4o0tlro012"
    }
  ]
}

File Clone

Clone file
GET/api/file/clone?key={key}&file_code={file_code}

Example URI

GET https://www.mp4upload.com/api/file/clone?key=1l5ftrilhllgwx2bo&file_code=gi4o0tlro01u,gi4o0tlro012
URI Parameters
HideShow
key
string (required) Example: 1l5ftrilhllgwx2bo

API key

file_code
string (required) Example: gi4o0tlro01u,gi4o0tlro012

file code

Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "msg": "OK",
  "server_time": "2022-08-11 04:28:53",
  "status": 200,
  "result": {
    "filecode": "gtl2mhgw4is7",
    "url": "https://www.mp4upload.com/gtl2mhgw4is7"
  }
}

File Set Folder

Set file(s) folder
GET/api/file/set_folder?key={key}&file_code={file_code}&fld_id={fld_id}

Example URI

GET https://www.mp4upload.com/api/file/set_folder?key=1l5ftrilhllgwx2bo&file_code=gi4o0tlro01u,gi4o0tlro012&fld_id=15
URI Parameters
HideShow
key
string (required) Example: 1l5ftrilhllgwx2bo

API key

file_code
string (required) Example: gi4o0tlro01u,gi4o0tlro012

file code, or list separated by comma

fld_id
number (required) Example: 15

folder id

Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "msg": "OK",
  "server_time": "2022-08-11 04:28:53",
  "status": 200
}

Folder

Folder List

Get folder/file list
GET/api/folder/list?key={key}&fld_id={fld_id}

Example URI

GET https://www.mp4upload.com/api/folder/list?key=1l5ftrilhllgwx2bo&fld_id=15
URI Parameters
HideShow
key
string (required) Example: 1l5ftrilhllgwx2bo

API key

fld_id
number (optional) Example: 15

folder id

Response  200
HideShow
Headers
Content-Type: application/json
Body
{
    "msg":"OK",
    "server_time":"2022-08-11 04:28:53",
    "status":200,
    "result":
    {
            "folders":
            [
                    {
                        "name":"Sub1",
                        "fld_id":"24"
                    }
            ],
            "files":
            [
                    {
                        "link":"https://www.mp4upload.com/4w0sy8e63f0c.html",
                        "uploaded":"2022-07-18 04:06:39",
                        "file_code":"4w0sy8e63f0c",
                        "fld_id":"16",
                        "name":"100mb.bin",

                    }
            ]
    }
}

Create Folder

Create new folder
GET/api/folder/create?key={key}&parent_id={parent_id}&name={name}

Example URI

GET https://www.mp4upload.com/api/folder/create?key=1l5ftrilhllgwx2bo&parent_id=15&name=New Folder
URI Parameters
HideShow
key
string (required) Example: 1l5ftrilhllgwx2bo

API key

parent_id
number (optional) Example: 15

parent folder id

name
string (required) Example: New Folder

folder name

Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "msg": "OK",
  "server_time": "2022-08-11 04:28:53",
  "status": 200,
  "result": {
    "fld_id": "26"
  }
}

Rename Folder

Rename folder
GET/api/folder/rename?key={key}&fld_id={fld_id}&name={name}

Example URI

GET https://www.mp4upload.com/api/folder/rename?key=1l5ftrilhllgwx2bo&fld_id=15&name=New Folder
URI Parameters
HideShow
key
string (required) Example: 1l5ftrilhllgwx2bo

API key

fld_id
number (required) Example: 15

folder id

name
string (required) Example: New Folder

folder name

Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "msg": "OK",
  "server_time": "2022-08-11 04:28:53",
  "status": 200,
  "result": "true"
}

Files

Deleted Files

Get last files deleted
GET/api/files/deleted?key={key}&last={last}

Example URI

GET https://www.mp4upload.com/api/files/deleted?key=1l5ftrilhllgwx2bo&last=20
URI Parameters
HideShow
key
string (required) Example: 1l5ftrilhllgwx2bo

API key

last
number (optional) Example: 20

number of files limit

Response  200
HideShow
Headers
Content-Type: application/json
Body
{
    "msg":"OK",
    "server_time":"2022-08-11 04:28:53",
    "status":200,
    "result":
    [
        {
            "file_code":"gtl2mhgw4is7",
            "name":"1mb.bin",
            "deleted":"2022-08-11 20:00:01",
            "deleted_ago_sec":"194316"
        },
        {
            "file_code":"uoyagho8c707",
            "name":"2mb.bin",
            "deleted":"2022-08-10 20:30:02"
            "deleted_ago_sec":"278915"
        }
    ]
}