API Reference Documentation
Automate file mirroring from Google Drive to high-speed cloud edge nodes and produce direct high-throughput hotlinks. All endpoints return standard JSON responses.
Authentication
Authenticate your requests by appending your secret key (key) as a query parameter.
/api/upload
Import a Google Drive file into high-speed storage. Accepts full shareable links or direct Google Drive File IDs. This import call is free and does not deduct plan quota.
key
Required
Your registered user API key (ukey).
drive
Required
Google Drive public/shared URL or direct File ID.
mirror
Optional
Mirror node server cluster. Default: cloud.
GET ...
{
"success": true,
"code": 200,
"already_exists": true,
"data": {
"filename": "Sample.Video.1080p.mkv",
"size": 1440862311,
"mime": "video/x-matroska",
"share_id": "5d3f5cdc1617"
}
}
/api/hotlink
Generates direct, resumable streaming or download links from a file's share_id. Deducts 1 credit per successful generation.
key
Required
Your registered user API key (ukey).
id
Required
The mirrored file share_id from the upload endpoint.
GET ...
{
"status": "success",
"url": "https://gfs270n050.userstorage.mega.co.nz/dl/..."
}
{
"status": "error",
"code": "QUOTA_EXHAUSTED",
"message": "Your subscription quota has expired or reached its limit. Please renew or upgrade your plan."
}