Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on Windows
GitHub didn't answer, so this is the saved copy from 17 h ago
Will it work on Windows?
The maintainers included run.bat. Run it from the cloned folder after reading it.
.\run.bat
SETUP.mdJava 17 or higher
java -versionMaven 3.6+
mvn -versionsrc/main/resources/application.ymlterabox:
cookies:
- "your_actual_cookie_1"
- "your_actual_cookie_2"
- "your_actual_cookie_3"
How to get TeraBox cookies:
Cookie header valuemvn clean package
This will:
target/ directoryOption 1: Using the JAR file
java -jar target/terabox-api-sp-1.0.0.jar
Option 2: Using Maven
mvn spring-boot:run
Option 3: Using the batch script (Windows)
run.bat
The application will start on http://localhost:8080
Test with cURL:
curl -X POST http://localhost:8080/api/terabox \
-H "Content-Type: application/json" \
-d "{\"url\": \"https://terabox.com/s/1xxxxx\"}"
Test with PowerShell:
$body = @{
url = "https://terabox.com/s/1xxxxx"
} | ConvertTo-Json
Invoke-RestMethod -Uri "http://localhost:8080/api/terabox" `
-Method Post `
-ContentType "application/json" `
-Body $body
Edit application.yml:
server:
port: 9090 # Change to your desired port
Edit application.yml:
terabox:
http:
connect-timeout: 30000 # 30 seconds
read-timeout: 60000 # 60 seconds
write-timeout: 60000 # 60 seconds
Edit application.yml:
terabox:
retry:
max-attempts: 3 # Number of retry attempts
backoff-delay: 2000 # Initial delay in milliseconds
Edit application.yml:
logging:
level:
com.terabox.api: DEBUG # Options: TRACE, DEBUG, INFO, WARN, ERROR
Solution: Make sure you've added at least one cookie in application.yml
Solution: Your cookies have expired. Get fresh cookies from TeraBox website.
Solution:
Solution:
application.ymlSolution: Make sure you have Java 17 or higher installed
{
"errno": 0,
"request_id": 9141406616576050447,
"server_time": 1761125258,
"cfrom_id": 0,
"title": "/filename.mkv",
"list": [
{
"category": "1",
"fs_id": "96610459486545",
"isdir": "0",
"local_ctime": "1752858248",
"local_mtime": "1752858248",
"md5": "3ac45c16e3b5efd76405189a44a74f44",
"path": "/filename.mkv",
"play_forbid": "0",
"server_ctime": "1752858248",
"server_filename": "filename.mkv",
"server_mtime": "1753344009",
"size": "1432461005",
"thumbs": {
"url1": "https://...",
"url2": "https://...",
"url3": "https://...",
"icon": "https://..."
},
"emd5": "e296aab0bj6f91f945840a23edaed575",
"dlink": "https://...",
"direct_link": "https://...",
"stream_url": "https://..."
}
],
"share_id": 68536951105,
"uk": 4402236204928
}
{
"errno": -1,
"error": "Error message",
"request_id": 9141406616576050447,
"server_time": 1761125258
}
mvn clean package -DskipTests
Create application-prod.yml with production settings, then:
java -jar target/terabox-api-sp-1.0.0.jar --spring.profiles.active=prod
Create a systemd service file /etc/systemd/system/terabox-api.service:
[Unit]
Description=TeraBox API Service
After=network.target
[Service]
Type=simple
User=your-user
WorkingDirectory=/path/to/terabox-api-sp
ExecStart=/usr/bin/java -jar /path/to/terabox-api-sp/target/terabox-api-sp-1.0.0.jar
Restart=on-failure
[Install]
WantedBy=multi-user.target
Then:
sudo systemctl daemon-reload
sudo systemctl enable terabox-api
sudo systemctl start terabox-api
Create a Dockerfile:
FROM eclipse-temurin:17-jre-alpine
WORKDIR /app
COPY target/terabox-api-sp-1.0.0.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "app.jar"]
Build and run:
docker build -t terabox-api .
docker run -p 8080:8080 terabox-api
For issues or questions:
Then run powershell -ExecutionPolicy Bypass -File .\setup.ps1. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Needs Git: winget install Git.Git
git clone https://github.com/Ronnie7866/terabox-downloader-online.git cd terabox-downloader-online
JDK 17
winget install EclipseAdoptium.Temurin.17.JDK
mvn install -DskipTests
mvn spring-boot:run
# Build the project
mvn clean package
# Run the application
java -jar target/terabox-api-sp-1.0.0.jar
No reports for Windows yet.
GitManual AI Agent reads the 3 key files and writes a step-by-step guide for Windows. Once written, it's saved for everyone.