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 Form
Upload Form Example
<form enctype="multipart/form-data" action="http://fs1.hxfile.co" method="post">
<input name="sess_id" value="3qr5wkukoy31pd1g">
<input name="file" type="file">
</form>
Get Server to Upload Form
GET https://hxfile.co/api/upload/server?key={key}
Parameters
key
String API key
Example: 1l5ftrilhllgwx2bo
Response
{
"msg": "OK",
"server_time": "2024-01-15 10:30:07",
"status": 200,
"sess_id": "jneph2h2g",
"result": "http://fs1.hxfile.co"
}
File Info
GET https://hxfile.co/api/file/info?key={key}&file_code={file_code}
Parameters
key
String API key
Example: 1l5ftrilhllgwx2bo
file_code
String File code, or comma separated list
Example: gi4o0tlro01u,gi4o0tlro012
Response
{
"msg": "OK",
"server_time": "2024-01-15 10:30:07",
"status": 200,
"result": [
{
"status": 200,
"filecode": "gi4o0tlro01u",
"name": "4K Time Lapse in the EOS 6D Mark II",
"download": "0",
"size": "200",
"uploaded": "2024-01-10 05:07:17"
},
{
"status": 404,
"filecode": "gi4o0tlro012"
}
]
}
File List
GET https://hxfile.co/api/file/list?key={key}&page={page}&per_page={per_page}&fld_id={fld_id}&public={public}&created={created}&name={name}
Parameters
key
String API key
Example: 1l5ftrilhllgwx2bo
page
Number optional Page number
Example: 2
per_page
Number optional Results per page
Example: 20
fld_id
Number optional Folder ID
Example: 15
public
Number optional Show public (1) or private (0) files only
Example: 1
created
String optional Show only files uploaded after timestamp
Example: 2018-06-21 05:07:10 or 60
name
String optional Filter by file name
Example: Iron Man
Response
{
"msg": "OK",
"server_time": "2024-01-15 10:30:07",
"status": 200,
"result": [
{
"status": 200,
"filecode": "gi4o0tlro01u",
"name": "4K Time Lapse in the EOS 6D Mark II",
"downloads": "0",
"size": "20",
"uploaded": "2024-01-10 05:07:17"
},
{
"status": 404,
"filecode": "gi4o0tlro012"
}
]
}
Rename File
GET https://hxfile.co/api/file/rename?key={key}&file_code={file_code}&name={name}
Parameters
key
String API key
Example: 1l5ftrilhllgwx2bo
file_code
String File code, or comma separated list
Example: gi4o0tlro01u,gi4o0tlro012
name
String New file name
Example: cool_video.mp4
Response
{
"msg": "OK",
"server_time": "2024-01-15 10:30:07",
"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": "2024-01-10 05:07:17"
},
{
"status": 404,
"filecode": "gi4o0tlro012"
}
]
}
Delete File
GET https://hxfile.co/api/file/delete?key={key}&file_code={file_code}
Parameters
key
String API key
Example: 1l5ftrilhllgwx2bo
file_code
String File code, or comma separated list
Example: gi4o0tlro01u,gi4o0tlro012
Response
{
"msg": "OK",
"server_time": "2024-01-15 10:30:07",
"status": 200
}
Clone File
GET https://hxfile.co/api/file/clone?key={key}&file_code={file_code}
Parameters
key
String API key
Example: 1l5ftrilhllgwx2bo
file_code
String File code
Example: gi4o0tlro01u
Response
{
"msg": "OK",
"server_time": "2024-01-15 10:30:07",
"status": 200,
"result": {
"filecode": "gtl2mhgw4is7",
"url": "https://hxfile.co/gtl2mhgw4is7"
}
}
File Direct Link
GET https://hxfile.co/api/file/direct_link?key={key}&type={type}&file_code={file_code}
Parameters
key
String API key
Example: 1l5ftrilhllgwx2bo
type
String Link type: pl (player link) or dl (download link)
Example: dl
file_code
String File code
Example: gi4o0tlro01u
Response
{
"msg": "OK",
"server_time": "2024-01-15 10:30:07",
"status": 200,
"result": {
"url": "http://fs1.hxfile.co/zqscczdqtpmokkcvalhzmsedk2cz5dsbq/v.mp4",
"size": 1024000
}
}
Set File Folder
GET https://hxfile.co/api/file/set_folder?key={key}&file_code={file_code}&fld_id={fld_id}
Parameters
key
String API key
Example: 1l5ftrilhllgwx2bo
file_code
String File code, or comma separated list
Example: gi4o0tlro01u,gi4o0tlro012
fld_id
Number Destination folder ID
Example: 15
Response
{
"msg": "OK",
"server_time": "2024-01-15 10:30:07",
"status": 200
}
Folder List
GET https://hxfile.co/api/folder/list?key={key}&fld_id={fld_id}
Parameters
key
String API key
Example: 1l5ftrilhllgwx2bo
fld_id
Number optional Folder ID
Example: 15
Response
{
"msg": "OK",
"server_time": "2024-01-15 10:30:07",
"status": 200,
"result": {
"folders": [
{
"name": "Sub1",
"fld_id": "24"
}
],
"files": [
{
"link": "https://hxfile.co/4w0sy8e63f0c.html",
"uploaded": "2024-01-09 04:06:39",
"file_code": "4w0sy8e63f0c",
"fld_id": "16",
"name": "100mb.bin"
}
]
}
}
Create Folder
GET https://hxfile.co/api/folder/create?key={key}&parent_id={parent_id}&name={name}
Parameters
key
String API key
Example: 1l5ftrilhllgwx2bo
parent_id
Number optional Parent folder ID
Example: 15
name
String New folder name
Example: New Folder
Response
{
"msg": "OK",
"server_time": "2024-01-15 10:30:07",
"status": 200,
"result": {
"fld_id": "26"
}
}
Rename Folder
GET https://hxfile.co/api/folder/rename?key={key}&fld_id={fld_id}&name={name}
Parameters
key
String API key
Example: 1l5ftrilhllgwx2bo
fld_id
Number Folder ID
Example: 15
name
String New folder name
Example: New Folder
Response
{
"msg": "OK",
"server_time": "2024-01-15 10:30:07",
"status": 200,
"result": "true"
}
Deleted Files
GET https://hxfile.co/api/files/deleted?key={key}&last={last}
Parameters
key
String API key
Example: 1l5ftrilhllgwx2bo
last
Number optional Number of files limit
Example: 20
Response
{
"msg": "OK",
"server_time": "2024-01-15 10:30:07",
"status": 200,
"result": [
{
"file_code": "gtl2mhgw4is7",
"name": "1mb.bin",
"deleted": "2024-01-14 20:00:01",
"deleted_ago_sec": "194316"
},
{
"file_code": "uoyagho8c707",
"name": "2mb.bin",
"deleted": "2024-01-14 20:30:02",
"deleted_ago_sec": "278915"
}
]
}
DMCA Files Moderator
GET https://hxfile.co/api/files/dmca?key={key}&last={last}
Parameters
key
String API key
Example: 1l5ftrilhllgwx2bo
last
Number optional Number of files limit
Example: 20
Response
{
"msg": "OK",
"server_time": "2024-01-15 10:30:07",
"status": 200,
"result": [
{
"name": "1mb.bin",
"file_code": "gtl2mhgw4is7",
"del_time": "2024-01-14 16:31:53"
},
{
"name": "2mb.bin",
"file_code": "uoyagho8c707",
"del_time": "2024-01-14 16:30:23"
}
]
}