mirror of
https://github.com/shafat-96/anicrush-api.git
synced 2026-04-17 15:51:44 +00:00
Update README.md
This commit is contained in:
51
README.md
51
README.md
@@ -105,6 +105,55 @@ Example Request:
|
|||||||
GET http://localhost:3000/api/anime/sources?movieId=vRPjMA&episode=1&server=4&subOrDub=sub
|
GET http://localhost:3000/api/anime/sources?movieId=vRPjMA&episode=1&server=4&subOrDub=sub
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Get HLS Link
|
||||||
|
|
||||||
|
```
|
||||||
|
GET /api/anime/hls/{animeId}?episode={ep}&server={id}&subOrDub={type}
|
||||||
|
```
|
||||||
|
|
||||||
|
Fetches HLS (HTTP Live Streaming) links with additional metadata for a specific episode.
|
||||||
|
|
||||||
|
Query Parameters:
|
||||||
|
- `episode` (optional): Episode number (default: 1)
|
||||||
|
- `server` (optional): Server number (default: 4)
|
||||||
|
- `subOrDub` (optional): "sub" or "dub" (default: "sub")
|
||||||
|
|
||||||
|
Example Request:
|
||||||
|
```
|
||||||
|
GET http://localhost:3000/api/anime/hls/vRPjMA?episode=1&server=4&subOrDub=sub
|
||||||
|
```
|
||||||
|
|
||||||
|
Example Response:
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"status": true,
|
||||||
|
"result": {
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"file": "https://example.com/hls/video.m3u8",
|
||||||
|
"type": "hls"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"tracks": [
|
||||||
|
{
|
||||||
|
"file": "https://example.com/subtitles.vtt",
|
||||||
|
"label": "English",
|
||||||
|
"kind": "captions"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"intro": {
|
||||||
|
"start": 0,
|
||||||
|
"end": 90
|
||||||
|
},
|
||||||
|
"outro": {
|
||||||
|
"start": 1290,
|
||||||
|
"end": 1380
|
||||||
|
},
|
||||||
|
"server": 4
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Health Check
|
### Health Check
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -124,4 +173,4 @@ The API will return appropriate error messages with corresponding HTTP status co
|
|||||||
|
|
||||||
- The API includes necessary headers for authentication
|
- The API includes necessary headers for authentication
|
||||||
- CORS is enabled for cross-origin requests
|
- CORS is enabled for cross-origin requests
|
||||||
- The server runs on port 3000 by default (can be changed via PORT environment variable)
|
- The server runs on port 3000 by default (can be changed via PORT environment variable)
|
||||||
|
|||||||
Reference in New Issue
Block a user