mirror of
https://github.com/MinazukiAmane/Nganime-Docs.git
synced 2025-03-16 09:05:55 +08:00
107 lines
2.5 KiB
Plaintext
107 lines
2.5 KiB
Plaintext
---
|
|
title: Crunchyroll | Streaming Links
|
|
---
|
|
|
|
import { Tab, Tabs } from "nextra-theme-docs";
|
|
|
|
# Get Anime Episode Streaming Links
|
|
|
|
Technical details regarding the usage of the get anime streaming links function for the Crunchyroll provider can be found below. Example code is provided for both JavaScript and Python, along with a response schema.
|
|
|
|
## Route Schema (URL)
|
|
|
|
```
|
|
https://api.nganime.my.id/anime/zoro/watch/{episodeId}
|
|
```
|
|
|
|
## Path Parameters
|
|
|
|
| Parameter | Type | Description | Required? | Default |
|
|
| :-------: | :----: | ----------------------------------------------------------------- | :-------: | :-----: |
|
|
| query | string | The search query; i.e. the title of the item you are looking for. | Yes | `""` |
|
|
|
|
## Request Samples
|
|
|
|
<Tabs items={["JavaScript", "Python"]}>
|
|
<Tab>
|
|
<>
|
|
```js
|
|
import axios from "axios";
|
|
|
|
/*
|
|
Using the example episode ID of 'classroom-of-the-elite-713$episode$12865', episode 1 of Classroom of the Elite.
|
|
*/
|
|
const url = "https://api.nganime.my.id/anime/zoro/watch/classroom-of-the-elite-713$episode$12865";
|
|
const data = async () => {
|
|
try {
|
|
const { data } = await axios.get(url);
|
|
return data;
|
|
} catch (err) {
|
|
throw new Error(err.message);
|
|
}
|
|
};
|
|
|
|
console.log(data);
|
|
```
|
|
</>
|
|
|
|
</Tab>
|
|
<Tab>
|
|
<>
|
|
```python
|
|
import requests
|
|
|
|
"""
|
|
Using the example episode ID of 'classroom-of-the-elite-713$episode$12865', episode 1 of Classroom of the Elite.
|
|
"""
|
|
url = "https://api.nganime.my.id/anime/gogoanime/watch/classroom-of-the-elite-713$episode$12865"
|
|
response = requests.get(url)
|
|
data = response.json()
|
|
|
|
print(data)
|
|
```
|
|
</>
|
|
|
|
</Tab>
|
|
</Tabs>
|
|
|
|
## Response Schema
|
|
|
|
<Tabs items={["200 OK", "404 Not Found", "500 Internal Server Error"]}>
|
|
<Tab>
|
|
**MIME Type:** `application/json`
|
|
```json copy=false
|
|
{
|
|
"sources": [
|
|
{
|
|
"url": "string",
|
|
"quality": "string",
|
|
"isM3U8": true
|
|
}
|
|
],
|
|
"subtitles": [
|
|
{
|
|
"url": "string",
|
|
"lang": "string"
|
|
}
|
|
],
|
|
"intro": {
|
|
"start": "number",
|
|
"end": "number"
|
|
}
|
|
}
|
|
```
|
|
</Tab>
|
|
<Tab>
|
|
**MIME Type:** `application/json`
|
|
```json copy=false
|
|
"message": {}
|
|
```
|
|
</Tab>
|
|
<Tab>
|
|
**MIME Type:** `application/json`
|
|
```json copy=false
|
|
"message": {}
|
|
```
|
|
</Tab>
|
|
</Tabs> |