{
  "name": "MlegacyTv Ultra — Munowatch-Compatible Proxy",
  "version": "2.0.0",
  "munowatch_api": {
    "note": "Full Munowatch API contract — all endpoints below are compatible with the Munowatch Android app",
    "security": "nonce/HMAC token gate on all /api/* endpoints (same keys as original VPS)",
    "endpoints": [
      "GET  /healthz                                 — health check",
      "GET  /api/time                                — server time",
      "GET  /api/nonce                               — get signed nonce (requires X-Nonce-Auth)",
      "GET  /api/dashboard/v2/:uid                   — home feed (movies + series)",
      "GET  /api/preview/v2/:vid/:uid                — full detail + stream URL",
      "GET  /api/shows/p/:category_id/:uid/:lastId   — browse by genre (cursor paginated)",
      "GET  /api/shows/vj/:vj_id/:uid/:lastId        — browse by VJ (cursor paginated)",
      "GET  /api/search/:q/:uid/:lastId              — search",
      "GET  /api/download/:vid/:uid                  — get CDN URL JSON",
      "GET  /api/view/:vid/:uid                      — get CDN URL JSON",
      "GET  /api/dl/:vid/:uid.mp4                    — 307 redirect to stream",
      "GET  /api/categories                          — genre/category list",
      "GET  /api/count/:uid                          — stub",
      "POST /api/like/:vid/:uid                      — stub",
      "POST /api/mylist/:vid/:uid                    — stub",
      "POST /api/users/token                         — FCM stub",
      "GET  /munowatch.com/setup                     — app bootstrap",
      "GET  /munowatch.org/setup                     — app bootstrap"
    ]
  },
  "legacy_api": {
    "note": "Original MlegacyTv REST API (for your own app/clients)",
    "endpoints": [
      "GET /stats",
      "GET /movies",
      "GET /movies/:id",
      "GET /series",
      "GET /series/:id",
      "GET /search",
      "GET /genres",
      "GET /vjs",
      "GET /years",
      "GET /thumbnail",
      "GET /info",
      "GET /stream/movie/:id",
      "GET /stream/series/:id",
      "GET /download/movie/:id",
      "GET /download/series/:id"
    ]
  },
  "categories": [
    {
      "id": 1,
      "name": "Movies"
    },
    {
      "id": 2,
      "name": "Series"
    },
    {
      "id": 3,
      "name": "Action"
    },
    {
      "id": 4,
      "name": "Drama"
    },
    {
      "id": 5,
      "name": "Comedy"
    },
    {
      "id": 6,
      "name": "Horror"
    },
    {
      "id": 7,
      "name": "Thriller"
    },
    {
      "id": 8,
      "name": "Romance"
    },
    {
      "id": 9,
      "name": "Animation"
    },
    {
      "id": 10,
      "name": "Documentary"
    },
    {
      "id": 11,
      "name": "Crime"
    },
    {
      "id": 12,
      "name": "Adventure"
    },
    {
      "id": 13,
      "name": "Sci-Fi"
    },
    {
      "id": 14,
      "name": "Family"
    },
    {
      "id": 15,
      "name": "Fantasy"
    },
    {
      "id": 16,
      "name": "History"
    },
    {
      "id": 17,
      "name": "War"
    },
    {
      "id": 18,
      "name": "Western"
    },
    {
      "id": 19,
      "name": "Music"
    },
    {
      "id": 20,
      "name": "Mystery"
    }
  ]
}