API Documentation
Integrate TurboLeech premium link generation into your applications with our REST API.
🔑 Authentication
All API requests require an API key passed via the Authorization header.
Header
Authorization: Bearer YOUR_API_KEY
Get your free API key at contact us. Free tier: 50 requests/day.
🔗 Generate Premium Link
POST
/generateGenerate a premium download link from a file hosting URL.
Request Body
JSON
{
"url": "https://rapidgator.net/file/abc123/example.zip",
"priority": "normal"
}Parameters
ParameterTypeRequiredDescription
urlstringYesFile hosting URLprioritystringNo"normal" or "high" (paid plans)Response
200 OK
{
"success": true,
"data": {
"download_url": "https://dl04.turboleech.qzz.io/d/abc123...",
"file_name": "example.zip",
"file_size": 524288000,
"host": "rapidgator.net",
"expires_at": "2024-01-15T12:00:00Z"
}
}📊 Check Link Status
GET
/status/{link_id}Check the status of a previously generated link.
Response
200 OK
{
"success": true,
"data": {
"id": "abc123",
"status": "active",
"downloads": 3,
"expires_at": "2024-01-15T12:00:00Z"
}
}🌐 List Supported Hosts
GET
/hostsGet the list of currently supported file hosting services with real-time status.
Response
200 OK
{
"success": true,
"data": [
{
"host": "rapidgator.net",
"status": "online",
"success_rate": 0.987,
"avg_speed_mbps": 45.2
}
]
}👤 Account Info
GET
/accountGet your account information, including remaining quota and plan details.
Response
200 OK
{
"success": true,
"data": {
"plan": "free",
"requests_today": 12,
"requests_limit": 50,
"total_generated": 1847
}
}⚠️ Error Codes
CodeStatusDescription
400Bad RequestInvalid URL or missing parameters401UnauthorizedInvalid or missing API key429Rate LimitedDaily quota exceeded502Host ErrorFile host is temporarily unavailable⏱️ Rate Limits & Plans
Free
$0/mo
- 50 requests/day
- 5 GB max file size
- Standard speed
- Email support
Pro
$9.99/mo
- 1,000 requests/day
- 25 GB max file size
- Priority speed
- Priority support
Enterprise
$49.99/mo
- Unlimited requests
- 50 GB max file size
- Dedicated servers
- 24/7 support