{
  "api": "MovieBox API",
  "version": "4.0.0",
  "runtime": "Cloudflare Worker (zero RAM)",
  "endpoints": {
    "home": {
      "/home": "Get home page data (banners and sections)",
      "/home/sections": "List section names",
      "/home/section/{name}": "Get a section by name",
      "/home/banner": "Get banner items",
      "/home/trending": "Get trending section",
      "/home/hot": "Get hot section",
      "/home/cinema": "Get cinema section"
    },
    "movies": {
      "/movies": "Get all movies",
      "/movies/sections": "List movie sections",
      "/movies/section/{name}": "Get a movie section by name"
    },
    "tv_series": {
      "/tv-series": "Get all TV series",
      "/tv-series/sections": "List TV series sections",
      "/tv-series/section/{name}": "Get a TV series section by name"
    },
    "animation": {
      "/animation": "Get all animations",
      "/animation/sections": "List animation sections",
      "/animation/section/{name}": "Get an animation section by name"
    },
    "ranking": {
      "/ranking": "Get ranking lists",
      "/ranking/sections": "List ranking sections",
      "/ranking/section/{name}": "Get a ranking section by name"
    },
    "search": {
      "/search?q={query}": "Search for titles",
      "/search/suggest?q={query}": "Get autocomplete suggestions"
    },
    "detail": {
      "/detail/{slug}": "Get full metadata, cast, seasons, streams",
      "/episodes/{slug}": "Get episode list and counts for all seasons"
    },
    "streaming": {
      "/api/stream/{subject_id}?detail_path=...": "Get raw stream URLs (JSON)",
      "/watch/{subject_id}?detail_path=...&resolution=480": "Stream video directly (zero-buffer proxy). Params: detail_path, se, ep, resolution"
    }
  }
}