API Documentation

General Information

The Allplayer.tk API provides all data available on the dashboard


Allplayer.tk exposes its data via an Application Programming Interface (API), so developers can interact in a programmatic way with the reup application. This document is the official reference for that functionality. The current API version is 1.0.0

The Base-URL for all api calls:

https://reup.allplayer.tk/api

Making Request

All calls to the API shall be HTTP/1.1 POST, most calls require ClIENT_ID and ClIENT_SECRET, you can find them in My Account

curl -X POST https://reup.allplayer.tk/api/ACTION
-d "client_id=ClIENT_ID&client_secret=ClIENT_SECRET"
-H "Content-Type: application/x-www-form-urlencoded"

Response format

Response is Json, structure is as follows:

{
    "success": boolean | TRUE or FALSE,
    "data": mix | depend on the request
}

Before checking json response, you should check http code returned

200: Everything is OK. Request succeeded

Otherwise: Errors from our end. You should not see this, but be prepared.

API Calls

The list all api calls available on the latest version of our API


Account Information

curl -X POST https://reup.allplayer.tk/api/account
-d "client_id=ClIENT_ID&client_secret=ClIENT_SECRET"
-H "Content-Type: application/x-www-form-urlencoded"
  • client_id: Required, your ClIENT_ID
  • client_secret: Required, your ClIENT_SECRET

The success response

{
    "success": true,
    "data": {
        "id": 1,  
        "vip_level": 7,
        "vip_date": "2020-05-12T17:00:00.000Z",
        "created_at": 1
    }
}

The error response

{
    "success": false
    "data": "403 your account is banned"
}

Upload Video

curl -X POST https://reup.allplayer.tk/api/remote
-d "client_id=ClIENT_ID&client_secret=ClIENT_SECRET"
-d "link=https://www.youtube.com/watch?v=Zz1VJbRIX9w"
-H "Content-Type: application/x-www-form-urlencoded"
  • client_id: Required, your ClIENT_ID
  • client_secret: Required, your ClIENT_SECRET
  • link: Required, link of file.
    eg upload url is please use the function encodeURIComponent encodeURIComponent('https://www.youtube.com/watch?v=Zz1VJbRIX9w') then url is https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZz1VJbRIX9w

The successfully response

{
    "success": true,
    "data": VideoId
}

The error response

{
    "success": false,
    "data": "Error "
}

Status

curl -X POST https://reup.allplayer.tk/api/status
-d "client_id=ClIENT_ID&client_secret=ClIENT_SECRET"
-d "video_id="
-H "Content-Type: application/x-www-form-urlencoded"
  • client_id: Required, your ClIENT_ID
  • client_secret: Required, your ClIENT_SECRET
  • video_id: Required, VideoID

The successfully response

{
    "success": true,
    "data": {
        "id": 50,
        "videoname": "ANON (2018) อานอน แหกกฎล่า ฆ่าล้ำอนาคต_ENG",
        "status": "Upload Completed",
        "updatedate": "2020-01-22T02:56:31.000Z"
    }
}

The error response

{
    "success": false,
    "data": "error message"
}