mirror of
https://github.com/MinazukiAmane/Nganime-Docs.git
synced 2025-03-16 05:45:55 +08:00
add chrunchyroll
This commit is contained in:
parent
681a536630
commit
4217aa23ff
pages/rest-api/Anime/chrunchyroll
5
pages/rest-api/Anime/chrunchyroll/_meta.json
Normal file
5
pages/rest-api/Anime/chrunchyroll/_meta.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"search": "Search",
|
||||||
|
"get-anime-info": "Get Anime Info",
|
||||||
|
"get-anime-episode-streaming-links": "Get Anime Episode Streaming Links"
|
||||||
|
}
|
@ -0,0 +1,107 @@
|
|||||||
|
---
|
||||||
|
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>
|
132
pages/rest-api/Anime/chrunchyroll/get-anime-info.mdx
Normal file
132
pages/rest-api/Anime/chrunchyroll/get-anime-info.mdx
Normal file
@ -0,0 +1,132 @@
|
|||||||
|
---
|
||||||
|
title: Crunchyroll | Anime Info
|
||||||
|
---
|
||||||
|
|
||||||
|
import { Tab, Tabs } from "nextra-theme-docs";
|
||||||
|
|
||||||
|
# Get Anime Info
|
||||||
|
|
||||||
|
Technical details regarding the usage of the get anime info function for the GogoAnime 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/crunchyroll/info/{id}?type={type}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Path Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Description | Required? | Default |
|
||||||
|
| :-------: | :----: | --------------------------------------------------------------------------------------------------------- | :-------: | :-----: |
|
||||||
|
| id | string | The Crunchyroll ID of the anime; i.e. provided by searching for said anime and selecting the correct one. | Yes | |
|
||||||
|
|
||||||
|
## Path Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Description | Required? | Default |
|
||||||
|
| :-------------: | :----: | ----------------------------------------------------------------------------------------------------------- | :-------: | :-----: |
|
||||||
|
| type | string | The Crunchyroll type of the anime; i.e. provided by searching for said anime and selecting the correct one. | Yes | |
|
||||||
|
| fetchAllSeasons | bool | Whether to respond with all Seasons or just the first one | No | |
|
||||||
|
|
||||||
|
## Request Samples
|
||||||
|
|
||||||
|
<Tabs items={["JavaScript", "Python"]}>
|
||||||
|
<Tab>
|
||||||
|
<>
|
||||||
|
```js
|
||||||
|
import axios from "axios";
|
||||||
|
|
||||||
|
// Using the example ID of "GRVN8MNQY", the id for Classroom of the Elite.
|
||||||
|
const url = "https://api.nganime.my.id/anime/crunchyroll/info/GRVN8MNQY";
|
||||||
|
const data = async () => {
|
||||||
|
try {
|
||||||
|
const { data } = await axios.get(url,{ params: { type: "series" } });
|
||||||
|
return data;
|
||||||
|
} catch (err) {
|
||||||
|
throw new Error(err.message);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
console.log(data);
|
||||||
|
```
|
||||||
|
</>
|
||||||
|
|
||||||
|
</Tab>
|
||||||
|
<Tab>
|
||||||
|
<>
|
||||||
|
```python
|
||||||
|
import requests
|
||||||
|
|
||||||
|
# Using the example ID of "spy-x-family".
|
||||||
|
url = "https://api.nganime.my.id/anime/crunchyroll/info/GRVN8MNQY"
|
||||||
|
response = requests.get(url, params={"type": "series"})
|
||||||
|
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
|
||||||
|
{
|
||||||
|
"id": "string",
|
||||||
|
"title": "string",
|
||||||
|
"isAdult": "boolean",
|
||||||
|
"image": "string",
|
||||||
|
"cover": "string",
|
||||||
|
"description": "string",
|
||||||
|
"releaseDate": "number",
|
||||||
|
"genres": "string[]",
|
||||||
|
"season": "string", // or null
|
||||||
|
"hasDub": "boolean",
|
||||||
|
"hasSub": "boolean",
|
||||||
|
"rating": "string",
|
||||||
|
"ratingTotal": "number",
|
||||||
|
"recommendations": [
|
||||||
|
{
|
||||||
|
"id": "string",
|
||||||
|
"title": "string",
|
||||||
|
"image": "string",
|
||||||
|
"cover": "string",
|
||||||
|
"description": "string"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
"episodes": [
|
||||||
|
"seasonName": [
|
||||||
|
{
|
||||||
|
"id": "string",
|
||||||
|
"season_number": "number",
|
||||||
|
"episode_number": "number",
|
||||||
|
"title": "string",
|
||||||
|
"image": "string",
|
||||||
|
"description": "string",
|
||||||
|
"releaseDate": "string",
|
||||||
|
"isHD": "boolean",
|
||||||
|
"isAdult": "boolean",
|
||||||
|
"isDubbed": "boolean",
|
||||||
|
"isSubbed": "boolean"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
</Tab>
|
||||||
|
<Tab>
|
||||||
|
**MIME Type:** `application/json`
|
||||||
|
```json copy=false
|
||||||
|
"message": {}
|
||||||
|
```
|
||||||
|
</Tab>
|
||||||
|
<Tab>
|
||||||
|
**MIME Type:** `application/json`
|
||||||
|
```json copy=false
|
||||||
|
"message": {}
|
||||||
|
```
|
||||||
|
</Tab>
|
||||||
|
</Tabs>
|
132
pages/rest-api/Anime/chrunchyroll/search.mdx
Normal file
132
pages/rest-api/Anime/chrunchyroll/search.mdx
Normal file
@ -0,0 +1,132 @@
|
|||||||
|
---
|
||||||
|
title: Crunchyroll | Anime Info
|
||||||
|
---
|
||||||
|
|
||||||
|
import { Tab, Tabs } from "nextra-theme-docs";
|
||||||
|
|
||||||
|
# Get Anime Info
|
||||||
|
|
||||||
|
Technical details regarding the usage of the get anime info function for the GogoAnime 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/crunchyroll/info/{id}?type={type}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Path Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Description | Required? | Default |
|
||||||
|
| :-------: | :----: | --------------------------------------------------------------------------------------------------------- | :-------: | :-----: |
|
||||||
|
| id | string | The Crunchyroll ID of the anime; i.e. provided by searching for said anime and selecting the correct one. | Yes | |
|
||||||
|
|
||||||
|
## Path Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Description | Required? | Default |
|
||||||
|
| :-------------: | :----: | ----------------------------------------------------------------------------------------------------------- | :-------: | :-----: |
|
||||||
|
| type | string | The Crunchyroll type of the anime; i.e. provided by searching for said anime and selecting the correct one. | Yes | |
|
||||||
|
| fetchAllSeasons | bool | Whether to respond with all Seasons or just the first one | No | |
|
||||||
|
|
||||||
|
## Request Samples
|
||||||
|
|
||||||
|
<Tabs items={["JavaScript", "Python"]}>
|
||||||
|
<Tab>
|
||||||
|
<>
|
||||||
|
```js
|
||||||
|
import axios from "axios";
|
||||||
|
|
||||||
|
// Using the example ID of "GRVN8MNQY", the id for Classroom of the Elite.
|
||||||
|
const url = "https://api.nganime.my.id/anime/crunchyroll/info/GRVN8MNQY";
|
||||||
|
const data = async () => {
|
||||||
|
try {
|
||||||
|
const { data } = await axios.get(url,{ params: { type: "series" } });
|
||||||
|
return data;
|
||||||
|
} catch (err) {
|
||||||
|
throw new Error(err.message);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
console.log(data);
|
||||||
|
```
|
||||||
|
</>
|
||||||
|
|
||||||
|
</Tab>
|
||||||
|
<Tab>
|
||||||
|
<>
|
||||||
|
```python
|
||||||
|
import requests
|
||||||
|
|
||||||
|
# Using the example ID of "spy-x-family".
|
||||||
|
url = "https://api.nganime.my.id/anime/crunchyroll/info/GRVN8MNQY"
|
||||||
|
response = requests.get(url, params={"type": "series"})
|
||||||
|
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
|
||||||
|
{
|
||||||
|
"id": "string",
|
||||||
|
"title": "string",
|
||||||
|
"isAdult": "boolean",
|
||||||
|
"image": "string",
|
||||||
|
"cover": "string",
|
||||||
|
"description": "string",
|
||||||
|
"releaseDate": "number",
|
||||||
|
"genres": "string[]",
|
||||||
|
"season": "string", // or null
|
||||||
|
"hasDub": "boolean",
|
||||||
|
"hasSub": "boolean",
|
||||||
|
"rating": "string",
|
||||||
|
"ratingTotal": "number",
|
||||||
|
"recommendations": [
|
||||||
|
{
|
||||||
|
"id": "string",
|
||||||
|
"title": "string",
|
||||||
|
"image": "string",
|
||||||
|
"cover": "string",
|
||||||
|
"description": "string"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
"episodes": [
|
||||||
|
"seasonName": [
|
||||||
|
{
|
||||||
|
"id": "string",
|
||||||
|
"season_number": "number",
|
||||||
|
"episode_number": "number",
|
||||||
|
"title": "string",
|
||||||
|
"image": "string",
|
||||||
|
"description": "string",
|
||||||
|
"releaseDate": "string",
|
||||||
|
"isHD": "boolean",
|
||||||
|
"isAdult": "boolean",
|
||||||
|
"isDubbed": "boolean",
|
||||||
|
"isSubbed": "boolean"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
</Tab>
|
||||||
|
<Tab>
|
||||||
|
**MIME Type:** `application/json`
|
||||||
|
```json copy=false
|
||||||
|
"message": {}
|
||||||
|
```
|
||||||
|
</Tab>
|
||||||
|
<Tab>
|
||||||
|
**MIME Type:** `application/json`
|
||||||
|
```json copy=false
|
||||||
|
"message": {}
|
||||||
|
```
|
||||||
|
</Tab>
|
||||||
|
</Tabs>
|
Loading…
x
Reference in New Issue
Block a user