Skip to content

About

Allmanga Anime Streaming API is a backend interface designed to aggregate and fetch media sources across multiple animation streaming repositories. Developers and media enthusiasts utilize this tool to build custom client applications, query episode metadata, and streamline video content retrieval.

Topics

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

6 Commits

Folders and files

Repository files navigation


Typing SVG



Β  Β 




🌊 Stream Anime Without Limits

Allmanga Anime Streaming API is a robust, high-performance backend service designed to aggregate and serve anime content from multiple sources into a single, unified REST API. Built for developers, it eliminates the headache of writing custom scrapers for every anime site by providing a standardized JSON interface for metadata, episodes, and high-quality streaming links.

Whether you are building a native mobile app, a web-based anime portal, or a Discord bot, this API gives you instant access to thousands of titles, complete with multi-language subtitles and multiple resolution options. It handles the heavy lifting of parsing, caching, and proxy routing so you can focus on building a beautiful frontend.

πŸ’‘ Why build this API? Because the anime streaming landscape is fragmented and highly volatile. AllManga acts as a shield, standardizing the data and keeping your application online even when source sites change their architecture.


⚑

Lightning Fast Redis-powered caching ensures sub-50ms response times for metadata.

πŸ›‘οΈ

Bypass Protection Built-in bypasses for Cloudflare and DDoS-Guard on source platforms.

πŸ—£οΈ

Multi-Sub Returns links for English, Spanish, Arabic, and native Japanese subs.

🧩

RESTful Design Clean, predictable endpoints that are easy to integrate with any stack.


⚑ Why Developers Choose AllManga

🧩 The Challenge πŸ’‘ Our Solution πŸ“ˆ The Result
Source sites constantly change HTML Modular scraper architecture with auto-updates Your app never breaks
M3U8 stream links expire quickly On-the-fly token generation and proxy routing Uninterrupted video playback
Slow scraping kills mobile apps Edge caching and optimized queries Blazing fast load times
Building scrapers takes months Ready-to-use JSON API Launch your anime app in days

🎯 API Endpoints

Endpoint Description Example
/search?q= Search for anime by title /search?q=naruto
/anime/{id} Get detailed metadata (synopsis, genres, score) /anime/21
/episodes/{id} List all available episodes /episodes/21
/stream/{id}/{ep} Get M3U8 streaming links /stream/21/1
/trending Fetch currently trending anime globally /trending

πŸ–ΌοΈ API Response Preview

anime-streaming-rest-api-v0-lrdpz61q08de1

πŸš€ Quick Start

Three steps. Under five minutes. No credit card.

1️⃣ Clone the repository

git clone https://github.com/yourname/allmanga-api.git
cd allmanga-api

2️⃣ Install and run with Docker

docker-compose up -d

3️⃣ Test the API

curl http://localhost:3000/trending

⌨️ Tech Stack & Architecture

Layer Responsibility Tech
🚦 API Gateway Rate limiting, routing, and request validation Fastify
πŸ•·οΈ Scrapers Fetching and parsing data from sources Cheerio / Puppeteer
πŸ—„οΈ Cache Storing frequently accessed metadata Redis
🎬 Stream Proxy Fetching M3U8 playlists and proxying video chunks Node.js Streams

The system is built with a plugin-based architecture. You can easily add new anime sources by creating a new scraper module that implements the standard SourceProvider interface.


🧠 Pro Tips

For app developers

  • πŸš€ Implement infinite scrolling using the /search pagination
  • 🎨 Use the cover_image URLs directly in your frontend
  • ⚑ Cache the /anime/{id} response locally for 24 hours
  • 🎬 Use HLS.js for smooth M3U8 playback in web browsers

For self-hosters

  • 🌐 Run behind Cloudflare to protect your API from abuse
  • πŸ”’ Use API keys for production deployments
  • πŸ’Ύ Allocate at least 2GB of RAM for Redis caching
  • πŸ”„ Schedule cron jobs to update the source modules

❓ Frequently Asked Questions

Does this API store or host any video files?

No. This API acts as a scraper and proxy. It aggregates streaming links (M3U8) from third-party providers and proxies the requests to bypass CORS restrictions. We do not host any copyrighted media on our servers.

Is there a rate limit?

The hosted public API has a rate limit of 60 requests per minute per IP. If you self-host the project, you can configure the rate limit in the config.json file to suit your needs.

Can I use this for a commercial project?

The code is MIT licensed, so you can use it commercially. However, you are responsible for the content you stream. We highly recommend using official licensing for commercial anime streaming.

How often are the sources updated?

We maintain the scrapers weekly. If a source site drops a major update, we usually push a fix within 24-48 hours. Pull requests are always welcome.

How do I report a broken endpoint?

Open an issue on the GitHub repository with the specific anime ID and the endpoint you tested. Include the error message and the expected output.





⭐ If this API powered your project β€” star the repo!

About

Allmanga Anime Streaming API is a backend interface designed to aggregate and fetch media sources across multiple animation streaming repositories. Developers and media enthusiasts utilize this tool to build custom client applications, query episode metadata, and streamline video content retrieval.

Topics

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages