Hxfile.co API

RESTful API for integration with hxfile.co file sharing platform

🔑 Account

Account Info

Endpoint

GET https://hxfile.co/api/account/info?key={key}

Parameters

key
String API key
Example: 1l5ftrilhllgwx2bo

Response

{
    "msg": "OK",
    "server_time": "2024-01-15 10:30:07",
    "status": 200,
    "result": {
        "email": "[email protected]",
        "balance": "0.00000",
        "storage_used": "24186265",
        "storage_left": 128824832615,
        "premium_expire": "2024-12-31 21:00:00"
    }
}

Account Stats

Endpoint

GET https://hxfile.co/api/account/stats?key={key}&last={last}

Parameters

key
String API key
Example: 1l5ftrilhllgwx2bo
last
Number optional Show stats for last X days.
Default: 7. Example: 30

Response

{
    "msg": "OK",
    "server_time": "2024-01-15 10: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": "2024-01-14",
            "profit_total": "0.00000",
            "views_prem": "0"
        }
    ]
}

⬆️ Upload

+

📄 File

+

📂 Folder

+

🗑️ Files

+