1.5 KiB
1.5 KiB
MovieBox API Server
A robust Node.js API server for accessing MovieBox content, featuring advanced session management, anti-ban protection, and a clean RESTful interface.
Features
- Session Management: Automatic cookie persistence and User-Agent rotation to prevent IP bans.
- Anti-Ban: Intelligent retry logic with exponential backoff for 403/429 errors.
- Request Logging: Detailed logging of incoming requests and outgoing API calls for easy debugging.
- Unified Sources:
/sourcesendpoint that aggregates download and stream links with auto-fallback. - Health Check:
/apicheckendpoint for monitoring server status. - Startup Banner: Professional ASCII art banner with server status information.
Installation
-
Clone the repository.
-
Install dependencies:
npm install -
Configure environment variables: Create a
.envfile in the root directory:PORT=5000 API_KEY=cineprime_secure_key_2024
Usage
Start the server:
node index.js
The server will start on port 5000 (default).
API Documentation
See API.md for detailed endpoint documentation.
Key Endpoints
GET /api/home- Get homepage content.GET /api/search?keyword=...- Search for content.GET /api/detail?subjectId=...- Get content details.GET /api/sources?subjectId=...- Get stream/download links.GET /api/apicheck- Server health check.
License
MIT