Introduction

Welcome to the Hentai API documentation. This API provides a unified interface for accessing anime and hentai content from various sources including Oppai, HentaiHaven, Hanime, and more.

🚀 Base URL

http://localhost:7860/api

📡 Response Format

All responses follow a standard JSON structure. Errors are returned with appropriate HTTP status codes.

{ "results": [ ... ], "meta": { ... } }

Oppai

Source for high quality streams directly from oppai.stream.

GET /api/oppai/search/:query Search videos
Response Schema
[ { "title": "Video Title", "cover": "https://example.com/cover.jpg", "id": "video-id-123", "type": "video" } ]
GET /api/oppai/watch/:id Get stream URL & subtitles
Response Schema
{ "stream": "https://example.com/stream.m3u8", "subtitles": [ { "label": "English", "file": "https://example.com/eng.vtt" } ] }

HentaiHaven

Classic HentaiHaven provider.

GET /api/hh/search/:query Search videos
Response Schema
[ { "id": "video-slug", "title": "Episode 1", "cover": "https://...", "released": "2023-01-01" } ]
GET /api/hh/:id Get info
Response Schema
{ "id": "slug", "title": "Show Title", "description": "...", "views": 12345, "episodes": [ { "number": 1, "id": "ep-1" } ] }
GET /api/hh/sources/:id Get sources
Response Schema
[ { "src": "https://...", "type": "video/mp4", "label": "1080p" } ]

Hanime

GET /api/hanime/search/:query Search videos
Response Schema
[ { "id": 12321, "name": "Video Name", "slug": "video-slug-1", "cover_url": "https://...", "views": 50000 } ]
GET /api/hanime/:id Get info
Response Schema
{ "hentai_video": { "id": 123, "name": "Title", "description": "...", "poster_url": "..." }, "videos_manifest": { ... } }
GET /api/hanime/streams/:id Get video streams
Response Schema
[ { "url": "https://...m3u8", "width": 1920, "height": 1080, "bitrate": 4000 } ]

HentaiTV

GET /api/hentaitv/recent Get recent
Response Schema
[ { "title": "Video Title", "id": "video-slug", "cover": "https://..." } ]
GET /api/hentaitv/search/:query Search
Response Schema
[ { "title": "SearchResult", "id": "slug", "cover": "..." } ]

HentaiCity

GET /api/hentaicity/popular Get popular
Response Schema
[ { "title": "Popular Title", "id": "slug", "cover": "..." } ]
GET /api/hentaicity/watch/:id Get stream (m3u8)
Response Schema
{ "stream": "https://...m3u8", "format": "hls" }