TeraBox API Documentation
A powerful, programmatic way to interact with TeraBox file links. Build video streaming apps, file downloaders or metadata scrapers — the API delivers clean JSON in under 200 ms.
# API Overview
The TeraBox API resolves any shared TeraBox link into download links, HLS streams (up to 1080p fast / 4K detection), multi-language M3U8 subtitles and complete metadata — all in a single POST request.
# Base URL & Authentication
https://teraboxdevapi.in/api/teraboxEvery request must carry your personal xAPI-Key header. Create or manage keys in your dashboard → API Keys. Keys are secret — keep them server-side, never in browser code.
| Header | Value | Required |
|---|---|---|
xAPI-Key | tbx_your_key_here | ✅ Yes |
Content-Type | application/json | ✅ Yes |
# Quick Start
- Sign up — receive 100 free request credits.
- Generate an
xAPI-Keyin the dashboard. - POST a TeraBox link → consume the returned
stream_url/fast_stream_url/normal_dlink.
You are only charged when the API returns "status": "success" with HTTP 200. Errors are free.
# Resolve a TeraBox Link
https://teraboxdevapi.in/api/teraboxRequest body
| Field | Type | Description |
|---|---|---|
url | string required | A public TeraBox share link. Accepts all TeraBox domains: terabox.com, 1024terabox.com, teraboxapp.com, 4funbox.com, freeterabox.com, mirrobox.com, nephobox.com, momerybox.com, tibibox.com… |
# Code Examples
curl -X POST "https://teraboxdevapi.in/api/terabox" \
-H "Content-Type: application/json" \
-H "xAPI-Key: tbx_xxxxxxxx" \
-d '{"url":"https://1024terabox.com/s/1jV4tzRwAj_9sTwW7b30sXQ"}'const response = await fetch("https://teraboxdevapi.in/api/terabox", {
method: "POST",
headers: {
"Content-Type": "application/json",
"xAPI-Key": "tbx_xxxxxxxx"
},
body: JSON.stringify({
url: "https://1024terabox.com/s/1jV4tzRwAj_9sTwW7b30sXQ"
})
});
const result = await response.json();
console.log(result);import requests
url = "https://teraboxdevapi.in/api/terabox"
payload = {"url": "https://1024terabox.com/s/1jV4tzRwAj_9sTwW7b30sXQ"}
headers = {
"Content-Type": "application/json",
"xAPI-Key": "tbx_xxxxxxxx"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://teraboxdevapi.in/api/terabox",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode([
"url" => "https://1024terabox.com/s/1jV4tzRwAj_9sTwW7b30sXQ"
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"xAPI-Key: tbx_xxxxxxxx"
]
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;# Success Response
{
"list": [
{
"name": "video_example.mp4",
"size": 43162336,
"type": "video",
"folder": "root",
"is_dir": "0",
"quality": "480p",
"duration": "09:16",
"file_path": "/video_example.mp4",
"thumbnail": "https://teraboxdevapi.in/api/thumbnail?token=\u2026",
"stream_url": "https://teraboxdevapi.in/api/stream?token=\u2026",
"normal_dlink": "https://teraboxdevapi.in/api/download?token=\u2026",
"subtitle_url": "https://teraboxdevapi.in/api/subtitle?token=\u2026",
"size_formatted": "41.16 MB",
"fast_stream_url": {
"360p": "https://teraboxdevapi.in/api/fast_stream?token=\u2026360.m3u8",
"480p": "https://teraboxdevapi.in/api/fast_stream?token=\u2026480.m3u8",
"720p": "https://teraboxdevapi.in/api/fast_stream?token=\u2026720.m3u8",
"1080p": "https://teraboxdevapi.in/api/fast_stream?token=\u20261080.m3u8"
}
}
],
"status": "success",
"total_files": 1,
"total_folders": "0"
}# Response Fields
| Field | Type | Description |
|---|---|---|
status | string | "success" or "error" |
total_files | integer | Number of files in the response |
total_folders | string | Number of folders in the shared link |
list[].name | string | Original file name |
list[].file_path | string | Original file path inside the share |
list[].size | integer | File size in bytes |
list[].size_formatted | string | Human-readable size (e.g. 41.16 MB) |
list[].type | string | File type: video, audio, document… |
list[].quality | string | Detected resolution — up to 4K |
list[].duration | string | Video duration in MM:SS format |
list[].thumbnail | url | Direct thumbnail image URL |
list[].stream_url | url | HLS (m3u8) master stream for players |
list[].fast_stream_url | object | Per-quality fast streams: 360p / 480p / 720p / 1080p |
list[].subtitle_url | url | M3U8 subtitle track (multi-language where available) |
list[].normal_dlink | url | Slow/direct download link for any file |
# Error Codes
Error responses look like {"status":"error","message":"..."}. Errors are never charged.
| HTTP | Name | Meaning |
|---|---|---|
400 | Bad Request | Missing or invalid url field in the JSON body. |
401 | Invalid API Key | Missing or wrong xAPI-Key header. |
402 | Insufficient Credits | Your balance is 0. Buy request credits to continue. |
403 | Key Revoked / Suspended | The API key or account was disabled — contact support. |
422 | Unresolvable Link | The TeraBox link is invalid, private or deleted. Not charged. |
429 | Rate Limited | Too many requests per second — back off and retry. Not charged. |
502 | Upstream Error | TeraBox was unreachable. Not charged — safe to retry. |
# Check Your Balance
https://teraboxdevapi.in/api/balance.phpcurl "https://teraboxdevapi.in/api/balance.php" -H "xAPI-Key: tbx_xxxxxxxx"
# → {"status":"success","credits":12500,"level":1,
# "lifetime_requests":3215,"updated_at":"..."}
# Video Player Integration
Feed fast_stream_url["1080p"] (or the master stream_url) straight into any HLS-capable player — video.js, Plyr, hls.js, ArtPlayer, Telegram inline players:
hls.js example:
const video = document.querySelector('video');
const hls = new Hls();
hls.loadSource(item.fast_stream_url['1080p']); // or item.stream_url
hls.attachMedia(video);
video.play();
// subtitles (multi-language M3U8)
video.appendChild(new VTTCue…); // or track src = item.subtitle_url
# Telegram Bot Recipe
import requests, telebot # pyTelegramBotAPI
BOT = telebot.Telebot("YOUR_BOT_TOKEN")
@BOT.message_handler(func=lambda m: "terabox" in (m.text or ""))
def handle(m):
r = requests.post("https://teraboxdevapi.in/api/terabox",
json={"url": m.text.strip().split()[0]},
headers={"xAPI-Key": "tbx_xxxxxxxx"}).json()
if r.get("status") == "success":
f = r["list"][0]
BOT.send_video(m.chat.id, f["fast_stream_url"]["720p"],
caption=f"{f['name']} · {f['size_formatted']} · {f['quality']}")
else:
BOT.reply_to(m, r.get("message", "Failed to resolve link."))
# Rate Limits & Pricing
- 60 requests/minute per key — request higher limits on Telegram.
- $0.00008 per request at Level 1 → 12,500 requests for $1 / ₹90.00.
- Level 2 (500K lifetime requests): $0.00007 → 14,285 per $1. Level 3 (1M): $0.00006 → 16,666 per $1.
- Credits have lifetime validity — they only reduce with usage, never with time.
Test it right now — 100 credits free
Sign up, grab a key and resolve your first link in under two minutes.