mirror of
https://github.com/shafat-96/anilist-to-animepahe.git
synced 2026-04-17 15:51:45 +00:00
2.5 KiB
2.5 KiB
AniList to AnimePahe Mapper API
This is a Node.js API that maps anime data between AniList and AnimePahe. It provides endpoints to search for anime and retrieve detailed information including streaming sources.
Features
- Search anime across both AniList and AnimePahe
- Get detailed anime information from both sources
- Retrieve episode streaming sources from AnimePahe
- Title matching between services
Installation
- Clone the repository
- Install dependencies:
npm install
- Create a
.envfile with your configuration (see.env.example) - Start the server:
npm start
For development with auto-reload:
npm run dev
API Endpoints
Search Anime
GET /api/search?query=<search_term>
Get Anime episodes
GET /api/:aniListId
Get Episode Sources
GET /api/episode/:episodeId
Response Examples
Search Response
[
{
"id": {
"aniList": 123,
"animePahe": "456-anime-title"
},
"title": "Anime Title",
"alternativeTitles": {
"english": "English Title",
"native": "Native Title"
},
"coverImage": "https://example.com/image.jpg",
"episodes": {
"total": 12,
"available": 12
},
"status": "FINISHED"
}
]
Anime Details Response
{
"id": {
"aniList": 123,
"animePahe": "456-anime-title"
},
"title": "Anime Title",
"alternativeTitles": {
"english": "English Title",
"native": "Native Title"
},
"coverImage": "https://example.com/image.jpg",
"description": "Anime description...",
"episodes": {
"total": 12,
"available": 12,
"list": [
{
"title": "Episode 1",
"episodeId": "session/episode-id",
"number": 1,
"image": "https://example.com/thumbnail.jpg"
}
]
},
"status": "FINISHED",
"genres": ["Action", "Adventure"],
"score": 8.5,
"season": {
"name": "SPRING",
"year": 2023
}
}
Episode Sources Response
{
"sources": [
{
"url": "https://example.com/video.mp4"
}
],
"multiSrc": [
{
"quality": "1080p",
"url": "https://example.com/video-1080p.mp4",
"referer": "https://kwik.cx"
}
]
}
Note
This API is for educational purposes only. Make sure to comply with the terms of service of both AniList and AnimePahe when using their services.