Skip to content

Latest commit

Β 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LOGO

🎬 MovieBox API (v1.0.0)

FastAPI Python Status License

The ultimate REST API for MovieBox.ph. πŸš€ Optimized for high-speed metadata scraping, real-time stream extraction, and seamless frontend integration.


✨ Features

  • 🏠 Comprehensive Homepage: Instant access to Banners, Trending Now, Hot, Cinema, and custom Operating categories.
  • πŸ” Advanced Search: Real-time keyword suggestions and full-text search results.
  • πŸ“± Tabbed Navigation: Fully functional endpoints for Movies, TV Series, Animation, and Rankings.
  • πŸ—ƒοΈ Deep Metadata: Extraction of IMDb ratings, release dates, high-res posters, genres, and dub/sub lists.
  • ▢️ Direct Streaming: Direct .mp4 and HLS stream retrieval with automatic server discovery and Cloudflare bypass.
  • ⚑ High Performance: Built with FastAPI and Httpx for asynchronous, non-blocking requests.

πŸ› οΈ Tech Stack

  • Backend: FastAPI (Python)
  • Networking: Httpx (Async HTTP Client)
  • Parsing: BeautifulSoup4 & Regex (NUXT_DATA Parsing)
  • Deployment: Uvicorn

πŸš€ Getting Started

Prerequisites

  • Python 3.9 or higher
  • pip (Python package installer)

Installation

  1. Clone the repository:

    git clone https://github.com/walterwhite-69/Moviebox-API.git
    cd Moviebox-API
  2. Install dependencies:

    pip install -r requirements.txt

    Note: If requirements.txt is missing, install manually: pip install fastapi uvicorn httpx beautifulsoup4

  3. Start the server:

    uvicorn api:app --host 0.0.0.0 --port 8000 --reload

πŸ“‘ API Endpoints

🏠 Home

Endpoint Description
GET /home Full homepage data including banners and all sections.
GET /home/banner Return only active featured banner items.
GET /home/sections List all available section names and movie counts.
GET /home/trending Get "Trending Now" specific items.

🎬 Movies & TV

Endpoint Description
GET /movies Fetch the full movie filter page.
GET /tv-series Fetch the full TV series catalog.
GET /animation Fetch animated series and anime.
GET /ranking Get most-watched and top-rated rankings.

πŸ” Search & Details

Endpoint Description
GET /search?q={query} Search for any title.
GET /search/suggest?q={query} Get autocomplete suggestions.
GET /detail/{slug} Get full metadata and available stream links.
GET /api/stream/{id}?detail_path={slug} Raw Stream URL Discovery.

🏎️ Performance Verification

Run the built-in verification suite to ensure all endpoints are pointing to the live backend correctly:

python verify.py

🀝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

πŸ“œ License

Distributed under the MIT License. See LICENSE for more information.


Made by walter for the Streaming Community

About

πŸš€ High-performance, asynchronous REST API for MovieBox.ph. Featuring real-time metadata scraping, search suggestions, and direct video stream extraction (MP4/HLS) with auto-server discovery and Cloudflare bypass. Built with FastAPI.

Topics

Resources

Contributing

Stars

53 stars

Watchers

0 watching

Forks

Contributors

Languages