Documentation Β· v2

Welcome to γ€Ž 𝗑⋆𝗧⋆𝗠 』 API

The fastest way to turn a TeraBox sharing link into a direct download URL, an HLS stream or a ready-made player link β€” in a single request.

Don't have a token yet? Message @ntmteraapi on Telegram, pick a plan, and yours is issued in minutes.

Base URL

https://api.yourdomain.com/

Replace it with your custom domain if one has been assigned to you.

Authentication

Every request needs a valid token sent in the Authorization header using the Bearer scheme.

HTTP header
Authorization: Bearer <your_token>

Tokens use a split format: token_id.secret. The part before the dot identifies the token; the secret after it is hashed server-side and never stored in plain text.

a1b2c3d4.8f9e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f
Security: keep your token out of client-side code. Rotate it from the dashboard immediately if it is ever exposed.

Returns every file behind a TeraBox sharing link, including direct download and streaming URLs.

Request
curl -X GET "https://api.yourdomain.com/?url=https://www.terabox.com/sharing/link?surl=xxxxx" \
  -H "Authorization: Bearer YOUR_TOKEN"
200 Β· application/json
[
  {
    "file_id": "abc123",
    "file_name": "video.mp4",
    "size": "1024 MB",
    "sizebytes": 1073741824,
    "direct_link": "https://.../fast-download?file_id=abc123",
    "m3u8_url": "https://.../stream?file_id=abc123",
    "stream_url": "https://player.example.xyz/watch?file_id=abc123"
  }
]
FieldTypeDescription
file_idstringUnique ID used by download and stream endpoints
file_namestringOriginal file name
sizestringHuman-readable size (e.g. 1024 MB)
sizebytesnumberExact size in bytes
direct_linkstringReady-to-use direct download URL
m3u8_urlstringHLS playlist for video files
stream_urlstringHosted player link for instant playback

Direct download

Streams the file as binary with the correct content-disposition, ready to hand straight to a user's browser.

Request
GET /fast-download?file_id={file_id}
optional: &strategy=cloudflare (default) | direct
Tip: use strategy=direct for large files when you want to bypass the CDN cache layer.

Streaming

For video files, returns an M3U8 playlist that plugs into any HLS player (hls.js, VLC, ExoPlayer, AVPlayer…).

Request
GET /stream?file_id={file_id}
Authorization: Bearer YOUR_TOKEN

Health check

Confirms that the API and database are both responding.

Response
{ "status": "healthy" }

Error codes

CodeMeaningWhat to do
400Missing or invalid urlCheck the TeraBox sharing link format
401Missing/invalid bearer tokenSend the full token_id.secret
404File or link not foundThe share may have expired
429Request limit reachedTop up or upgrade on Telegram
500Upstream errorRetry with backoff; report if persistent

FAQ

terabox.com, 1024tera.com, terabox.app, teraboxlink.com, terabox.ph and the regional mirrors. If a domain is missing, send it to us on Telegram and we'll add it.

Yes β€” folder shares resolve to an array with every file inside, each carrying its own file_id and direct link.

Message @ntmteraapi. Upgrades apply to your existing token immediately β€” no migration needed.

The API is plain REST, so any HTTP client works. Python, JS/Node, Go and PHP snippets are shown below β€” copy and adapt them.

Language snippets

Python
import requests

resp = requests.get(
    "https://api.yourdomain.com/",
    params={"url": "https://www.terabox.com/sharing/link?surl=xxxxx"},
    headers={"Authorization": "Bearer YOUR_TOKEN"},
)
print(resp.json()[0]["direct_link"])
JavaScript (Node)
const api = new URL("https://api.yourdomain.com/");
api.searchParams.set("url", "https://www.terabox.com/sharing/link?surl=xxxxx");

const res = await fetch(api, {
  headers: { Authorization: "Bearer YOUR_TOKEN" },
});
const files = await res.json();
console.log(files[0].direct_link);
Need help wiring this into your bot or app? @ntmteraapi β€” we answer in minutes.