Unified Anime API combining HiAnime, regional scrapers, and utility APIs with modern caching, CORS, rate limiting, and logging.
Discord : https://dsc.gg/tatakai
Disclaimer
- No other Social Media Handle is availaible right now, If you see then please report us as we only have discord server .
- π Modern Stack: Built with Hono - ultra-fast, lightweight web framework
- πΎ Hybrid Caching: Redis with LRU in-memory fallback
- π Rate Limiting: Configurable per-IP rate limiting
- π Structured Logging: Pino logger with pretty dev output
- π CORS Ready: Configurable origin whitelisting
- π³ Docker Ready: Multi-stage Dockerfile included
- π¦ TypeScript: Full type safety
- π§ͺ Comprehensive Testing: Built-in endpoint validation scripts
| Route | Description |
|---|---|
/api/v1/hianime/* |
HiAnime scraper - search, info, episodes, sources |
/api/v1/anime/* |
External anime search providers (GogoAnime, Chia-Anime, etc.) |
/api/v1/anime-api/* |
Anime utility APIs (quotes, images, facts, waifu) |
/api/v1/animehindidubbed/* |
Hindi dubbed anime scraper |
/api/v1/animelok/* |
AnimeLok multi-language streaming |
/api/v1/animeya/* |
Animeya streaming platform |
/api/v1/watchaw/* |
WatchAnimeWorld multi-language streaming |
/api/v1/desidubanime/* |
DesiDubAnime - Hindi/regional dubbed anime |
/api/v1/aniworld/* |
AniWorld - German anime streaming (aniworld.to) |
/health |
Health check |
/version |
API version info |
/api/v1/docs/llm |
Full LLM-friendly documentation |
GET /home- Home page with featured animeGET /search?q={query}- Search animeGET /info/{id}- Anime detailsGET /episodes/{id}- Episode listGET /sources/{episodeId}- Video sources
GET /search?q={query}- Search animeGET /anime/{id}/seasons- Get seasons/episodesGET /watch/{episodeId}?ep={num}- Get video sources
GET /home- Home pageGET /search?q={query}- Search animeGET /info/{id}- Anime info with episodesGET /watch/{episodeId}- Video sources
GET /episode?id={id}- Get episode sources by ID
GET /search?q={query}- Search Hindi dubbed animeGET /info/{slug}- Anime detailsGET /watch/{episodeSlug}- Get video sources
GET /info/{slug}- Anime info (German)GET /watch/{slug}/episode/{num}- Get video sourcesGET /search?q={query}- Search anime
GET /search?title={query}- Search Hindi dubbed animeGET /info/{id}- Anime detailsGET /watch/{episodeId}- Video sources
GET /quotes/random- Random anime quoteGET /images/{category}- Anime images (waifu, neko, etc.)GET /facts- Random anime facts
- Node.js >= 18
- npm or yarn
- Redis (optional, for distributed caching)
# Clone and install
cd TatakaiAPI
npm install
# Create .env file
cp .env.example .env
# Start development server
npm run dev# Build and run with Docker Compose
docker-compose up -d
# Or build image only
docker build -t tatakai-api .
docker run -p 4000:4000 tatakai-api| Variable | Description | Default |
|---|---|---|
PORT |
Server port | 4000 |
NODE_ENV |
Environment | development |
REDIS_URL |
Redis connection URL | (empty = in-memory) |
CORS_ALLOWED_ORIGINS |
Allowed origins (comma-separated) | * |
RATE_LIMIT_WINDOW_MS |
Rate limit window | 60000 |
RATE_LIMIT_MAX_REQUESTS |
Max requests per window | 100 |
CACHE_TTL_SECONDS |
Default cache TTL | 300 |
Run the comprehensive test suite to validate all API endpoints:
# Run basic validation
npm run test
# Run comprehensive endpoint tests
npm run test:comprehensiveThe comprehensive test script checks all routes with sample parameters and reports success/failure status for each endpoint.
# HiAnime home page
curl http://localhost:4000/api/v1/hianime/home
# Search anime on HiAnime
curl "http://localhost:4000/api/v1/hianime/search?q=naruto"
# External anime search (GogoAnime)
curl "http://localhost:4000/api/v1/anime/gogoanime/naruto"
# Anime quotes
curl "http://localhost:4000/api/v1/anime-api/quotes/random"
# Anime images
curl "http://localhost:4000/api/v1/anime-api/images/waifu"
# Hindi dubbed search
curl "http://localhost:4000/api/v1/hindidubbed/search?title=naruto"
# Animeya home
curl "http://localhost:4000/api/v1/animeya/home"TatakaiAPI/
βββ src/
β βββ config/ # Configuration (env, cache, cors, logger, etc.)
β βββ docs/ # API documentation markdown files
β βββ middleware/ # Hono middleware (logging, cache control)
β βββ routes/ # API routes by provider
β β βββ hianime/ # HiAnime scraper
β β βββ anime/ # External search providers
β β βββ anime-api/ # Utility APIs
β β βββ animehindidubbed/ # Hindi dubbed scraper
β β βββ animelok/ # AnimeLok multi-language
β β βββ animeya/ # Animeya platform
β β βββ watchanimeworld/ # WatchAnimeWorld
β β βββ desidubanime/ # DesiDubAnime Hindi
β β βββ aniworld/ # AniWorld German
β βββ server.ts # Main entry point
β βββ utils.ts # Utility functions
βββ scripts/ # Utility scripts
β βββ comprehensive_test.ts # Full API endpoint testing
β βββ validate_api.ts # API validation script
βββ public/ # Static files & docs UI
βββ Dockerfile
βββ docker-compose.yml
MIT