TeraBox REST API Documentation

Comprehensive technical documentation for the unofficial TeraBox REST API. This repository serves as a reference for developers looking to interact with TeraBox services programmatically across various platforms and languages.

🛠 REST API Reference


Unofficial 1024TeraboxCLI REST API Reference

Welcome to the Unofficial 1024TeraboxCLI REST API reference. This documentation describes the internal HTTP endpoints used by Terabox's web interface, allowing developers to interact with the service programmatically in any language (Python, JavaScript, Go, etc.).

Base Configuration

Common Headers

Most requests require the following headers to mimic a browser:

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
Referer: https://dm.1024terabox.com/main?category=all
Origin: https://dm.1024terabox.com
Content-Type: application/x-www-form-urlencoded (for POST)

Common Parameters

Almost every API call requires these query parameters:

Parameter Value (Default) Description
app_id 250528 The application ID for the web client.
web 1 Indicates a web client request.
channel dubox The channel identifier.
clienttype 0 Client type identifier.
jsToken Dynamic A calculated token required for security (See Authentication).
bdstoken Dynamic A session-specific token (often optional for read ops).

Response Format

Responses are typically JSON.

Success:

{
  "errno": 0,
  "request_id": 123456789,
  "data": { ... }
}

Error:

{
  "errno": -6,
  "errmsg": "User not logged in"
}