hianime-API is an unofficial REST API that scrapes anime data from hianimez.to.
It provides endpoints for anime discovery, details, episodes, servers, and streaming links.
⚠️ Important
- This API is unofficial and not affiliated with hianimez.to
- No hosted instance exists — deploy your own
- All content belongs to its original owners
- This project is for educational and personal use only
- Anime home page data (trending, spotlight, top airing, etc.)
- Anime listings with filters (genre, A–Z, categories)
- Detailed anime information
- Episode lists
- Streaming servers & HLS links
- Search & search suggestions
- Bun (required)
Install Bun → https://bun.sh/docs/installation
git clone https://github.com/yahyaMomin/hianime-API.git
cd hianime-API
bun install
bun run devServer runs at:
http://localhost:3030
now vist /doc for intrective docs
http://localhost:3030/doc
⚠️ Important
- You Cannot Run this Projct Directly Using Nodemon or node
- You Need to Build Project using tsup in ESM module To Run Using Node
Base URL:
/api/v1
All responses follow:
{
"success": true,
"data": {}
}GET /homeReturns spotlight, trending, top airing, latest episodes, genres, and more.
GET /spotlightReturns spotlight.
GET /toptenReturns topTen.
GET /{query}?page={page}Supports:
- top-airing
- most-popular
- most-favorite
- completed
- recently-added
- recently-updated
- top-upcoming
- subbed-anime
- dubbed-anime
- movie
- tv
- ova
- ona
- special
GET /az-list/{letter}?page={page}Supports:
- A to Z
- 0 to 9
- All
GET /genre/{genre}?page={page}Supports:
- action
- adventure
- cars
- comedy
- dementia
- demons
- drama
- ecchi
- fantasy
- game
- harem
- historical
- horror
- isekai
- josei
- kids
- magic
- martial arts
- mecha
- military
- music
- mystery
- parody
- police
- psychological
- romance
- samurai
- school
- sci-fi
- seinen
- shoujo
- shoujo ai
- shounen
- shounen ai
- slice of life
- space
- sports
- super power
- supernatural
- thriller
- vampire
GET /anime/{animeId}Returns full anime metadata, episodes info, related & recommended anime.
GET /search?keyword={query}&page={page}GET /search/suggestion?keyword={query}GET /episodes/{animeId}GET /servers?id={episodeId}GET /stream?id={episodeId}&server={server}&type={sub|dub}Returns HLS links, subtitles, intro/outro timestamps.
- Pull requests welcome
- Open issues for bugs or features
Issues → https://github.com/yahyamomin/hianime-API/issues
Reference frontend:
https://github.com/yahyamomin/watanuki
- consumet.ts
- api.consumet.org
Star the repo if it helped you.