An API that takes in a MyAnimeList ID of an anime and returns the same anime's details from various anime streaming sites like Zoro.to, Bilibili, Animefox, Animepahe, Gogoanime, and more.
This API allows you to fetch anime details from multiple streaming sites using the MyAnimeList (MAL) ID. It returns the most similar anime titles from different sites with information like id, image, url.
- Fetch anime details from multiple streaming sites.
- Easy-to-use API endpoint.
- Matches titles with jaro winkler.
- High performance with Bun.js, Hono and sqlite.
git clone https://github.com/IrfanKhan66/malmatch.git
cd malmatch
bun install
MAL_API_ENDPOINT="https://api.myanimelist.net/v2"
MAL_ID="<Your MAL client ID>"
MAL_SECRET="<Your MAL client secret>"
MAL_ACCESS_TOKEN="<Your MAL access token>"
MAL_REFRESH_TOKEN="<Your MAL refresh token>"
REFRESH_TOKEN_ENDPOINT="https://myanimelist.net/v1/oauth2/token"
bun run start
curl -X GET "http://localhost:3000/anime/:malId"
{
"malId": 12345,
"status": 200,
"title": "Anime Title",
"sites": {
"Zoro": {...},
"Bilibili": {...},
"Animefox": {...},
"Animepahe": {...},
"Gogoanime": {...}
}
}
- URL:
/anime/:malId
- Method:
GET
- URL Params:
malId
- The MyAnimeList ID of the anime.
- Sucess Response:
- status - 200
- malId - The MyAnimeList ID for the anime.
- data - JSON Object containing various sites.
- Error Response:
- status - 400/500
- malId - The MyAnimeList ID for the anime.
- data - "Failed to get MAL data !"
Contributions are welcome! Please open an issue or submit a pull request following the steps :
- Fork this repository.
- Clone the forked repository to your local machine.
- Create your development branch like :
- feature -
git checkout -b feat(<provider/file name>)/your-feature
. - fix -
git checkout -b fix/your-fix
. - refactor -
git checkout -b refactor/refactored-code
. - chore -
git checkout -b chore/your-chore
.
- feature -
- Add your changes -
git add <your-changes>
. - Commit your changes -
git commit -m '<Your changes/features>'
. - Push to the branch -
git push origin <your-branch-name>
. - Open a pull request.