``` ╔══════════════════════════════════════════════════════════════════════════════╗ ║ AniKotoAPI — Streaming Guide ║ ║ Base URL: https://anikototvapi.vercel.app/api ║ ║ Free REST API scraping anime data from anikototv.to ║ ╚══════════════════════════════════════════════════════════════════════════════╝ ``` # Streaming Guide This document covers the complete streaming workflow for AniKotoAPI — from searching for an anime to playing the actual video stream. --- ## Table of Contents 1. [Architecture Overview](#architecture-overview) 2. [Streaming Workflow](#streaming-workflow) 3. [Endpoint Reference](#endpoint-reference) 4. [M3U8 Proxy](#m3u8-proxy) 5. [Video Player Integration](#video-player-integration) 6. [Error Handling](#error-handling) 7. [Performance Tips](#performance-tips) --- // ═══════════════════════════════════════════════════════════════════════════════ // === ARCHITECTURE OVERVIEW === // ═══════════════════════════════════════════════════════════════════════════════ ## Architecture Overview ``` ┌─────────────────────────────────────────────────────────────────────────────┐ │ CLIENT / BROWSER │ │ │ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────────────────┐ │ │ │ Search / │───>│ Episode │───>│ Servers │───>│ Stream + Resolve │ │ │ │ Browse │ │ List │ │ List │ │ (get m3u8/mp4 URL) │ │ │ └──────────┘ └──────────┘ └──────────┘ └──────────┬───────────┘ │ │ │ │ │ ▼ │ │ ┌──────────────────────────────────────────────────────────────────────┐ │ │ │ VIDEO PLAYER │ │ │ │ (HLS.js / Plyr / Video.js / native