mirror of
https://github.com/MinazukiAmane/Nganime-Docs.git
synced 2025-03-15 08:55:55 +08:00
add meta pages
This commit is contained in:
parent
cccd068b89
commit
fba4212de4
18
pages/rest-api/Meta/_meta.json
Normal file
18
pages/rest-api/Meta/_meta.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"anilist-anime": {
|
||||
"title": "Anilist (Anime)",
|
||||
"theme": { "collapsed": true }
|
||||
},
|
||||
"anilist-manga": {
|
||||
"title": "Anilist (Manga)",
|
||||
"theme": { "collapsed": true }
|
||||
},
|
||||
"myanimelist": {
|
||||
"title": "MyAnimeList",
|
||||
"theme": { "collapsed": true }
|
||||
},
|
||||
"the-movie-database": {
|
||||
"title": "The Movie Database (TMDB)",
|
||||
"theme": { "collapsed": true }
|
||||
}
|
||||
}
|
12
pages/rest-api/Meta/anilist-anime/_meta.json
Normal file
12
pages/rest-api/Meta/anilist-anime/_meta.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"search": "Search",
|
||||
"advanced-search": "Advanced Search",
|
||||
"get-anime-info": "Get Anime Info",
|
||||
"get-anime-episode-streaming-links": "Get Anime Episode Streaming Links",
|
||||
"get-recent-anime-episodes": "Get Recent Anime Episodes",
|
||||
"get-anime-by-genres": "Get Anime By Genres",
|
||||
"get-trending-anime": "Get Trending Anime",
|
||||
"get-popular-anime": "Get Popular Anime",
|
||||
"get-airing-schedule": "Get Airing Schedule",
|
||||
"get-random-anime": "Get Random Anime"
|
||||
}
|
95
pages/rest-api/Meta/anilist-anime/advanced-search.mdx
Normal file
95
pages/rest-api/Meta/anilist-anime/advanced-search.mdx
Normal file
@ -0,0 +1,95 @@
|
||||
---
|
||||
title: Anilist (Anime) | Advanced search
|
||||
---
|
||||
|
||||
import { Tab, Tabs } from "nextra-theme-docs";
|
||||
|
||||
# Search
|
||||
|
||||
Technical details regarding the usage of the search function for the anilist 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/meta/anilist/advanced-search
|
||||
```
|
||||
|
||||
## Query Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :-----: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :-------: | :--------------------------------: |
|
||||
| query | string | The search query; i.e. the title of the item you are looking for. | No | `""` |
|
||||
| type | string | The type of entertainment. Enum: `"ANIME"` `"MANGA"` | No | `"ANIME"` |
|
||||
| page | integer | The page number of results to return. | No | `1` |
|
||||
| perPage | integer | The number of items perpage of results to return. | No | `20` |
|
||||
| season | string | The season the anime aired in. Enum: `"WINTER"` `"SPRING"` `"SUMMER"` `"FALL"` | No | `""` |
|
||||
| format | string | The fromat of the anime. Enum: `"TV"` `"TV_SHORT"` `"OVA"` `"ONA"` `"MOVIE"` `"SPECIAL"` `"MUSIC"` | No | `""` |
|
||||
| sort | array | the items you want to sort by. Array Enum: `"POPULARITY_DESC"` `"POPULARITY"` `"TRENDING_DESC"` `"TRENDING"` `"UPDATED_AT_DESC"` `"UPDATED_AT"` `"START_DATE_DESC"` `"START_DATE"` `"END_DATE_DESC"` `"END_DATE"` `"FAVOURITES_DESC"` `"FAVOURITES"` `"SCORE_DESC"` `"SCORE"` `"TITLE_ROMAJI_DESC"` `"TITLE_ROMAJI"` `"TITLE_ENGLISH_DESC"` `"TITLE_ENGLISH"` `"TITLE_NATIVE_DESC"` `"TITLE_NATIVE"` `"EPISODES_DESC"` `"EPISODES"` `"ID"` `"ID_DESC"` | No | `["POPULARITY_DESC","SCORE_DESC"]` |
|
||||
| genres | array | The genres you want to search for. Array Enum: `"Action"` `"Adventure"` `"Cars"` `"Comedy"` `"Drama"` `"Fantasy"` `"Horror"` `"Mahou Shoujo"` `"Mecha"` `"Music"` `"Mystery"` `"Psychological"` `"Romance"` `"Sci-Fi"` `"Slice of Life"` `"Sports"` `"Supernatural"` `"Thriller"` | No | `""` |
|
||||
| id | string | The id of the anime you are looking for | No | `""` |
|
||||
| year | string | The year the anime released in | No | `""` |
|
||||
| status | string | The current status of the anime you are looking for Enum: `"RELEASING"` `"NOT_YET_RELEASED"` `"FINISHED"` `"CANCELLED"` `"HIATUS"` | No | `""` |
|
||||
|
||||
## Request Samples
|
||||
|
||||
<Tabs items={["JavaScript", "Python"]}>
|
||||
<Tab>
|
||||
<>
|
||||
```js
|
||||
import axios from "axios";
|
||||
|
||||
// Using the example query "demon", and looking at the first page of results.
|
||||
const url = "https://api.nganime.my.id/meta/anilist/advanced-search";
|
||||
const data = async () => {
|
||||
try {
|
||||
const { data } = await axios.get(url, { params: { page: 1 } });
|
||||
return data;
|
||||
} catch (err) {
|
||||
throw new Error(err.message);
|
||||
}
|
||||
};
|
||||
|
||||
console.log(data);
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
<Tab>
|
||||
<>
|
||||
```python
|
||||
import requests
|
||||
|
||||
# Using the example query "demon", and looking at the first page of results.
|
||||
url = "https://api.nganime.my.id/meta/anilist/advanced-search"
|
||||
response = requests.get(url, params={"page": 1})
|
||||
data = response.json()
|
||||
|
||||
print(data)
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Response Schema
|
||||
|
||||
<Tabs items={["200 OK"]}>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"currentPage": 1,
|
||||
"results": [
|
||||
{
|
||||
"id": "string",
|
||||
"title": "string",
|
||||
"image": "string",
|
||||
"type": "string",
|
||||
"rating": "number",
|
||||
"releaseDate": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
89
pages/rest-api/Meta/anilist-anime/get-airing-schedule.mdx
Normal file
89
pages/rest-api/Meta/anilist-anime/get-airing-schedule.mdx
Normal file
@ -0,0 +1,89 @@
|
||||
---
|
||||
title: Anilist (Anime) | Airing Schedule
|
||||
---
|
||||
|
||||
import { Tab, Tabs } from "nextra-theme-docs";
|
||||
|
||||
# Search
|
||||
|
||||
Technical details regarding the usage of the search function for the anilist 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/meta/anilist/airing-schedule
|
||||
```
|
||||
|
||||
## Query Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :---------: | :-----: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------: | :---------------------: |
|
||||
| page | integer | The page number of results to return. | No | `1` |
|
||||
| perPage | integer | The number of results per page to return. | No | `20` |
|
||||
| weekStart | string | Filter by the start of the week. you can use either the number or the string | No | `today's date` |
|
||||
| weekEnd | string | Filter by the end of the week. you can use either the number or the string. Enum/or Integer: `"Saturday or 0"` `"Sunday or 1"` `"Monday or 2"` `"Tuesday or 3"` `"Wednesday or 4"` `"Thursday or 5"` `"Friday or 6"` | No | `today's date + 7 days` |
|
||||
| notYetAired | bool | The season the anime aired in. Bool: `true` `false` | No | `false` |
|
||||
|
||||
est Samples
|
||||
|
||||
<Tabs items={["JavaScript", "Python"]}>
|
||||
<Tab>
|
||||
<>
|
||||
```js
|
||||
import axios from "axios";
|
||||
|
||||
// Using the example query "demon", and looking at the first page of results.
|
||||
const url = "https://api.nganime.my.id/meta/anilist/airing-schedule";
|
||||
const data = async () => {
|
||||
try {
|
||||
const { data } = await axios.get(url, { params: { page: 1 } });
|
||||
return data;
|
||||
} catch (err) {
|
||||
throw new Error(err.message);
|
||||
}
|
||||
};
|
||||
|
||||
console.log(data);
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
<Tab>
|
||||
<>
|
||||
```python
|
||||
import requests
|
||||
|
||||
# Using the example query "demon", and looking at the first page of results.
|
||||
url = "https://api.nganime.my.id/meta/anilist/airing-schedule"
|
||||
response = requests.get(url, params={"page": 1})
|
||||
data = response.json()
|
||||
|
||||
print(data)
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Response Schema
|
||||
|
||||
<Tabs items={["200 OK"]}>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"currentPage": 1,
|
||||
"results": [
|
||||
{
|
||||
"id": "string",
|
||||
"title": "string",
|
||||
"image": "string",
|
||||
"type": "string",
|
||||
"rating": "number",
|
||||
"releaseDate": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
title: Anilist for Anime | Anime By Genres
|
||||
---
|
||||
|
||||
# Get Anime By Genres
|
@ -0,0 +1,159 @@
|
||||
---
|
||||
title: Anilist (Anime) | 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 anilist meta 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/meta/anilist/watch/{episodeId}
|
||||
```
|
||||
|
||||
## Path Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :----: | ------------------------------ | :-------: | :-----: |
|
||||
| episodeId | string | The ID of the selected episode | Yes | N/A |
|
||||
|
||||
## Request Samples
|
||||
|
||||
<Tabs items={["JavaScript", "Python"]}>
|
||||
<Tab>
|
||||
<>
|
||||
```js
|
||||
import axios from "axios";
|
||||
|
||||
/*
|
||||
Using the example episode ID of 'spy-x-family-episode-1',
|
||||
*/
|
||||
const url = "https://api.nganime.my.id/meta/anilist/watch/spy-x-family-episode-1";
|
||||
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 'spy-x-family-episode-1',
|
||||
"""
|
||||
url = "https://api.nganime.my.id/meta/anilist/watch/spy-x-family-episode-1"
|
||||
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
|
||||
{
|
||||
"id": "string",
|
||||
"title": "string[]",
|
||||
"malId": "integer",
|
||||
"trailer": {
|
||||
"id": "string",
|
||||
"site": "string",
|
||||
"thumbnail": "string"
|
||||
},
|
||||
"image": "string",
|
||||
"popularity": "number",
|
||||
"color": "string",
|
||||
"description": "string",
|
||||
"status": "string",
|
||||
"releaseDate": "integer",
|
||||
"startDate": {
|
||||
"year": "number",
|
||||
"month": "number",
|
||||
"day": "number"
|
||||
},
|
||||
"endDate": {
|
||||
"year": "number",
|
||||
"month": "number",
|
||||
"day": "number"
|
||||
},
|
||||
"rating": "integer",
|
||||
"genres": "string[]",
|
||||
"season": "string",
|
||||
"studios": "string[]",
|
||||
"type": "string",
|
||||
"recommendations": {
|
||||
"id": "string",
|
||||
"malId": "string",
|
||||
"title": "string[]",
|
||||
"status": "string",
|
||||
"episodes": "number",
|
||||
"image": "string",
|
||||
"cover": "string",
|
||||
"rating": "number",
|
||||
"type": "string",
|
||||
},
|
||||
"characters": {
|
||||
"id": "string",
|
||||
"role": "string",
|
||||
"name": "string[]",
|
||||
"image": "string",
|
||||
},
|
||||
"relations": {
|
||||
"id": "integer",
|
||||
"relationType": "string",
|
||||
"malId": "integer",
|
||||
"title": "string[]",
|
||||
"status": "string",
|
||||
"episodes": "integer",
|
||||
"image": "string",
|
||||
"color": "string",
|
||||
"type": "string",
|
||||
"cover": "string",
|
||||
"rating": "integer",
|
||||
},
|
||||
"episodes": {
|
||||
"id": "string",
|
||||
"title": "string",
|
||||
"chapter": "string",
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"message": "string"
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"message": "string"
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
164
pages/rest-api/Meta/anilist-anime/get-anime-info.mdx
Normal file
164
pages/rest-api/Meta/anilist-anime/get-anime-info.mdx
Normal file
@ -0,0 +1,164 @@
|
||||
---
|
||||
title: Anilist (Anime) | Info
|
||||
---
|
||||
|
||||
import { Tab, Tabs } from "nextra-theme-docs";
|
||||
|
||||
# Info
|
||||
|
||||
Technical details regarding the usage of the get anime info function for the Anilist Anime 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/meta/anilist/info/{id}?provider={provider}
|
||||
```
|
||||
|
||||
## Path Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :----: | ------------------- | :-------: | :-----: |
|
||||
| id | string | The anilist info id | Yes | `N/A` |
|
||||
|
||||
## Query Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :----: | --------------------------------------------------------------------------------------------------------------------------------------- | :-------: | :-----: |
|
||||
| provider | string | The provider you want to use. Enum: `9anime`, `animefox`, `animepahe`, `bilibili`, `crunchyroll`, `enime`, `gogoanime`, `marin`, `zoro` | No | `N/A` |
|
||||
|
||||
## Request Samples
|
||||
|
||||
<Tabs items={["JavaScript", "Python"]}>
|
||||
<Tab>
|
||||
<>
|
||||
```js
|
||||
import axios from "axios";
|
||||
|
||||
// Using the example id of "21" (one piece) and the query of "gogoanime"
|
||||
const url = "https://api.nganime.my.id/meta/anilist/info/21";
|
||||
const data = async () => {
|
||||
try {
|
||||
const { data } = await axios.get(url, { params: { provider: "gogoanime" } });
|
||||
return data;
|
||||
} catch (err) {
|
||||
throw new Error(err.message);
|
||||
}
|
||||
};
|
||||
|
||||
console.log(data);
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
<Tab>
|
||||
<>
|
||||
```python
|
||||
import requests
|
||||
|
||||
// Using the example id of "21" (one piece) and the query of "gogoanime"
|
||||
url = "https://api.nganime.my.id/meta/anilist/info/30013"
|
||||
response = requests.get(url, params={"provider": "gogoanime"})
|
||||
data = response.json()
|
||||
|
||||
print(data)
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Response Schema
|
||||
|
||||
<Tabs items={["200 OK", "400 Bad Request", "404 Not Found"]}>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"id": "string",
|
||||
"title": "string[]",
|
||||
"malId": "integer",
|
||||
"trailer": {
|
||||
"id": "string",
|
||||
"site": "string",
|
||||
"thumbnail": "string"
|
||||
},
|
||||
"image": "string",
|
||||
"popularity": "number",
|
||||
"color": "string",
|
||||
"description": "string",
|
||||
"status": "string",
|
||||
"releaseDate": "integer",
|
||||
"startDate": {
|
||||
"year": "number",
|
||||
"month": "number",
|
||||
"day": "number"
|
||||
},
|
||||
"endDate": {
|
||||
"year": "number",
|
||||
"month": "number",
|
||||
"day": "number"
|
||||
},
|
||||
"rating": "integer",
|
||||
"genres": "string[]",
|
||||
"season": "string",
|
||||
"studios": "string[]",
|
||||
"type": "string",
|
||||
"recommendations": {
|
||||
"id": "string",
|
||||
"malId": "string",
|
||||
"title": "string[]",
|
||||
"status": "string",
|
||||
"episodes": "number",
|
||||
"image": "string",
|
||||
"cover": "string",
|
||||
"rating": "number",
|
||||
"type": "string",
|
||||
},
|
||||
"characters": {
|
||||
"id": "string",
|
||||
"role": "string",
|
||||
"name": "string[]",
|
||||
"image": "string",
|
||||
},
|
||||
"relations": {
|
||||
"id": "integer",
|
||||
"relationType": "string",
|
||||
"malId": "integer",
|
||||
"title": "string[]",
|
||||
"status": "string",
|
||||
"episodes": "integer",
|
||||
"image": "string",
|
||||
"color": "string",
|
||||
"type": "string",
|
||||
"cover": "string",
|
||||
"rating": "integer",
|
||||
},
|
||||
"episodes": {
|
||||
"id": "string",
|
||||
"title": "string",
|
||||
"episode": "string",
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"message": "string"
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
|
||||
<Tab>
|
||||
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"message": "string"
|
||||
}
|
||||
```
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
92
pages/rest-api/Meta/anilist-anime/get-popular-anime.mdx
Normal file
92
pages/rest-api/Meta/anilist-anime/get-popular-anime.mdx
Normal file
@ -0,0 +1,92 @@
|
||||
---
|
||||
title: Anilist (Anime) | popular Anime
|
||||
---
|
||||
|
||||
import { Tab, Tabs } from "nextra-theme-docs";
|
||||
|
||||
# Search
|
||||
|
||||
Technical details regarding the usage of the search function for the anilist 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/meta/anilist/popular?page={page}&perPage={perPage}
|
||||
```
|
||||
|
||||
## Query Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :-----: | ----------------------------------------- | :-------: | :-----: |
|
||||
| page | integer | The page number of results to return. | No | `1` |
|
||||
| perPage | integer | The number of results per page to return. | No | `20` |
|
||||
|
||||
## Request Samples
|
||||
|
||||
<Tabs items={["JavaScript", "Python"]}>
|
||||
<Tab>
|
||||
<>
|
||||
```js
|
||||
import axios from "axios";
|
||||
|
||||
// Using the example query "demon", and looking at the first page of results.
|
||||
const url = "https://api.nganime.my.id/meta/anilist/popular";
|
||||
const data = async () => {
|
||||
try {
|
||||
const { data } = await axios.get(url, { params: {
|
||||
page: 1,
|
||||
perPage: 20
|
||||
} });
|
||||
return data;
|
||||
} catch (err) {
|
||||
throw new Error(err.message);
|
||||
}
|
||||
};
|
||||
|
||||
console.log(data);
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
<Tab>
|
||||
<>
|
||||
```python
|
||||
import requests
|
||||
|
||||
# Using the example query "demon", and looking at the first page of results.
|
||||
url = "https://api.nganime.my.id/meta/anilist/popular"
|
||||
response = requests.get(url, params={
|
||||
"page": 1,
|
||||
"perPage": 20
|
||||
})
|
||||
data = response.json()
|
||||
|
||||
print(data)
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Response Schema
|
||||
|
||||
<Tabs items={["200 OK"]}>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"currentPage": 1,
|
||||
"results": [
|
||||
{
|
||||
"id": "string",
|
||||
"title": "string",
|
||||
"image": "string",
|
||||
"type": "string",
|
||||
"rating": "number",
|
||||
"releaseDate": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
132
pages/rest-api/Meta/anilist-anime/get-random-anime.mdx
Normal file
132
pages/rest-api/Meta/anilist-anime/get-random-anime.mdx
Normal file
@ -0,0 +1,132 @@
|
||||
---
|
||||
title: Anilist (Anime) | random Anime
|
||||
---
|
||||
|
||||
import { Tab, Tabs } from "nextra-theme-docs";
|
||||
|
||||
# Search
|
||||
|
||||
Technical details regarding the usage of the search function for the anilist 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/meta/anilist/random-anime
|
||||
```
|
||||
|
||||
## Request Samples
|
||||
|
||||
<Tabs items={["JavaScript", "Python"]}>
|
||||
<Tab>
|
||||
<>
|
||||
```js
|
||||
import axios from "axios";
|
||||
|
||||
// Using the example query "demon", and looking at the first page of results.
|
||||
const url = "https://api.nganime.my.id/meta/anilist/random-anime";
|
||||
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 query "demon", and looking at the first page of results.
|
||||
url = "https://api.nganime.my.id/meta/anilist/random-anime"
|
||||
response = requests.get(url)
|
||||
data = response.json()
|
||||
|
||||
print(data)
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Response Schema
|
||||
|
||||
<Tabs items={["200 OK"]}>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"id": "string",
|
||||
"title": "string[]",
|
||||
"malId": "integer",
|
||||
"trailer": {
|
||||
"id": "string",
|
||||
"site": "string",
|
||||
"thumbnail": "string"
|
||||
},
|
||||
"image": "string",
|
||||
"popularity": "number",
|
||||
"color": "string",
|
||||
"description": "string",
|
||||
"status": "string",
|
||||
"releaseDate": "integer",
|
||||
"startDate": {
|
||||
"year": "number",
|
||||
"month": "number",
|
||||
"day": "number"
|
||||
},
|
||||
"endDate": {
|
||||
"year": "number",
|
||||
"month": "number",
|
||||
"day": "number"
|
||||
},
|
||||
"rating": "integer",
|
||||
"genres": "string[]",
|
||||
"season": "string",
|
||||
"studios": "string[]",
|
||||
"type": "string",
|
||||
"recommendations": {
|
||||
"id": "string",
|
||||
"malId": "string",
|
||||
"title": "string[]",
|
||||
"status": "string",
|
||||
"episodes": "number",
|
||||
"image": "string",
|
||||
"cover": "string",
|
||||
"rating": "number",
|
||||
"type": "string",
|
||||
},
|
||||
"characters": {
|
||||
"id": "string",
|
||||
"role": "string",
|
||||
"name": "string[]",
|
||||
"image": "string",
|
||||
},
|
||||
"relations": {
|
||||
"id": "integer",
|
||||
"relationType": "string",
|
||||
"malId": "integer",
|
||||
"title": "string[]",
|
||||
"status": "string",
|
||||
"episodes": "integer",
|
||||
"image": "string",
|
||||
"color": "string",
|
||||
"type": "string",
|
||||
"cover": "string",
|
||||
"rating": "integer",
|
||||
},
|
||||
"episodes": {
|
||||
"id": "string",
|
||||
"title": "string",
|
||||
"chapter": "string",
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
@ -0,0 +1,95 @@
|
||||
---
|
||||
title: Anilist (Anime) | recent-episodes Anime
|
||||
---
|
||||
|
||||
import { Tab, Tabs } from "nextra-theme-docs";
|
||||
|
||||
# Search
|
||||
|
||||
Technical details regarding the usage of the search function for the anilist 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/meta/anilist/recent-episodes?page={page}&perPage={perPage}&provider={provider}
|
||||
```
|
||||
|
||||
## Query Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :-----: | ------------------------------------------------------- | :-------: | :---------: |
|
||||
| page | integer | The page number of results to return. | No | `1` |
|
||||
| perPage | integer | The number of results per page to return. | No | `20` |
|
||||
| provider | string | the provider you want to fetch the recent episodes from | No | `gogoanime` |
|
||||
|
||||
## Request Samples
|
||||
|
||||
<Tabs items={["JavaScript", "Python"]}>
|
||||
<Tab>
|
||||
<>
|
||||
```js
|
||||
import axios from "axios";
|
||||
|
||||
// Using the example query "demon", and looking at the first page of results.
|
||||
const url = "https://api.nganime.my.id/meta/anilist/recent-episodes";
|
||||
const data = async () => {
|
||||
try {
|
||||
const { data } = await axios.get(url, { params: {
|
||||
page: 1,
|
||||
perPage: 20
|
||||
provider: "gogoanime"
|
||||
} });
|
||||
return data;
|
||||
} catch (err) {
|
||||
throw new Error(err.message);
|
||||
}
|
||||
};
|
||||
|
||||
console.log(data);
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
<Tab>
|
||||
<>
|
||||
```python
|
||||
import requests
|
||||
|
||||
# Using the example query "demon", and looking at the first page of results.
|
||||
url = "https://api.nganime.my.id/meta/anilist/recent-episodes"
|
||||
response = requests.get(url, params={
|
||||
"page": 1,
|
||||
"perPage": 20,
|
||||
"provider": "gogoanime"
|
||||
})
|
||||
data = response.json()
|
||||
|
||||
print(data)
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Response Schema
|
||||
|
||||
<Tabs items={["200 OK"]}>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"currentPage": 1,
|
||||
"results": [
|
||||
{
|
||||
"id": "string",
|
||||
"title": "string",
|
||||
"image": "string",
|
||||
"type": "string",
|
||||
"rating": "number",
|
||||
"releaseDate": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
92
pages/rest-api/Meta/anilist-anime/get-trending-anime.mdx
Normal file
92
pages/rest-api/Meta/anilist-anime/get-trending-anime.mdx
Normal file
@ -0,0 +1,92 @@
|
||||
---
|
||||
title: Anilist (Anime) | Trending Anime
|
||||
---
|
||||
|
||||
import { Tab, Tabs } from "nextra-theme-docs";
|
||||
|
||||
# Search
|
||||
|
||||
Technical details regarding the usage of the search function for the anilist 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/meta/anilist/trending?page={page}&perPage={perPage}
|
||||
```
|
||||
|
||||
## Query Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :-----: | --------------------------------------- | :-------: | :-----: |
|
||||
| page | integer | The page number of results to return. | No | `1` |
|
||||
| perPage | integer | The numb of results per page to return. | No | `20` |
|
||||
|
||||
## Request Samples
|
||||
|
||||
<Tabs items={["JavaScript", "Python"]}>
|
||||
<Tab>
|
||||
<>
|
||||
```js
|
||||
import axios from "axios";
|
||||
|
||||
// Using the example query "demon", and looking at the first page of results.
|
||||
const url = "https://api.nganime.my.id/meta/anilist/trending";
|
||||
const data = async () => {
|
||||
try {
|
||||
const { data } = await axios.get(url, { params: {
|
||||
page: 1,
|
||||
perPage: 20
|
||||
} });
|
||||
return data;
|
||||
} catch (err) {
|
||||
throw new Error(err.message);
|
||||
}
|
||||
};
|
||||
|
||||
console.log(data);
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
<Tab>
|
||||
<>
|
||||
```python
|
||||
import requests
|
||||
|
||||
# Using the example query "demon", and looking at the first page of results.
|
||||
url = "https://api.nganime.my.id/meta/anilist/trending"
|
||||
response = requests.get(url, params={
|
||||
"page": 1,
|
||||
"perPage": 20
|
||||
})
|
||||
data = response.json()
|
||||
|
||||
print(data)
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Response Schema
|
||||
|
||||
<Tabs items={["200 OK"]}>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"currentPage": 1,
|
||||
"results": [
|
||||
{
|
||||
"id": "string",
|
||||
"title": "string",
|
||||
"image": "string",
|
||||
"type": "string",
|
||||
"rating": "number",
|
||||
"releaseDate": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
91
pages/rest-api/Meta/anilist-anime/search.mdx
Normal file
91
pages/rest-api/Meta/anilist-anime/search.mdx
Normal file
@ -0,0 +1,91 @@
|
||||
---
|
||||
title: Anilist (Anime) | Search
|
||||
---
|
||||
|
||||
import { Tab, Tabs } from "nextra-theme-docs";
|
||||
|
||||
# Search
|
||||
|
||||
Technical details regarding the usage of the search function for the anilist 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/meta/anilist/{query}?page={page}
|
||||
```
|
||||
|
||||
## Path Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :----: | ----------------------------------------------------------------- | :-------: | :-----: |
|
||||
| query | string | The search query; i.e. the title of the item you are looking for. | Yes | `""` |
|
||||
|
||||
## Query Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :-----: | ------------------------------------- | :-------: | :-----: |
|
||||
| page | integer | The page number of results to return. | No | `1` |
|
||||
|
||||
## Request Samples
|
||||
|
||||
<Tabs items={["JavaScript", "Python"]}>
|
||||
<Tab>
|
||||
<>
|
||||
```js
|
||||
import axios from "axios";
|
||||
|
||||
// Using the example query "demon", and looking at the first page of results.
|
||||
const url = "https://api.nganime.my.id/meta/anilist/demon";
|
||||
const data = async () => {
|
||||
try {
|
||||
const { data } = await axios.get(url, { params: { page: 1 } });
|
||||
return data;
|
||||
} catch (err) {
|
||||
throw new Error(err.message);
|
||||
}
|
||||
};
|
||||
|
||||
console.log(data);
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
<Tab>
|
||||
<>
|
||||
```python
|
||||
import requests
|
||||
|
||||
# Using the example query "demon", and looking at the first page of results.
|
||||
url = "https://api.nganime.my.id/meta/anilist/demon"
|
||||
response = requests.get(url, params={"page": 1})
|
||||
data = response.json()
|
||||
|
||||
print(data)
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Response Schema
|
||||
|
||||
<Tabs items={["200 OK"]}>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"currentPage": 1,
|
||||
"results": [
|
||||
{
|
||||
"id": "string",
|
||||
"title": "string",
|
||||
"image": "string",
|
||||
"type": "string",
|
||||
"rating": "number",
|
||||
"releaseDate": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
100
pages/rest-api/Meta/anilist-manga/Search.mdx
Normal file
100
pages/rest-api/Meta/anilist-manga/Search.mdx
Normal file
@ -0,0 +1,100 @@
|
||||
---
|
||||
title: Anilist (Manga) | Search
|
||||
---
|
||||
|
||||
import { Tab, Tabs } from "nextra-theme-docs";
|
||||
|
||||
# Search
|
||||
|
||||
Technical details regarding the usage of the search function for the Anilist Manga 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/meta/anilist-manga/{query}
|
||||
```
|
||||
|
||||
## 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 query "one piece"
|
||||
const url = "https://api.nganime.my.id/meta/anilist-manga/one piece";
|
||||
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 query "one piece"
|
||||
url = "https://api.nganime.my.id/meta/anilist-manga/one piece"
|
||||
response = requests.get(url)
|
||||
data = response.json()
|
||||
|
||||
print(data)
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Response Schema
|
||||
|
||||
<Tabs items={["200 OK"]}>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"currentPage": 1,
|
||||
"results": [
|
||||
{
|
||||
"id": "string",
|
||||
"malId": "integer",
|
||||
"title": {
|
||||
"romaji": "string",
|
||||
"english": "string",
|
||||
"native": "string"
|
||||
},
|
||||
"status": "string",
|
||||
"image": "string",
|
||||
"cover": "string",
|
||||
"popularity": "integer",
|
||||
"description": "string",
|
||||
"rating": "integer",
|
||||
"genres": [
|
||||
"string"
|
||||
],
|
||||
"color": "string",
|
||||
"totalChapters": "integer",
|
||||
"volumes": "integer",
|
||||
"type": "string",
|
||||
"releaseDate": "string",
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
5
pages/rest-api/Meta/anilist-manga/_meta.json
Normal file
5
pages/rest-api/Meta/anilist-manga/_meta.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"Search": "Search",
|
||||
"info": "Get Manga Info",
|
||||
"read": "Read Manga"
|
||||
}
|
164
pages/rest-api/Meta/anilist-manga/info.mdx
Normal file
164
pages/rest-api/Meta/anilist-manga/info.mdx
Normal file
@ -0,0 +1,164 @@
|
||||
---
|
||||
title: Anilist (Manga) | Info
|
||||
---
|
||||
|
||||
import { Tab, Tabs } from "nextra-theme-docs";
|
||||
|
||||
# Info
|
||||
|
||||
Technical details regarding the usage of the get manga info function for the Anilist Manga 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/meta/anilist-manga/info/{id}?provider={provider}
|
||||
```
|
||||
|
||||
## Path Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :----: | ------------ | :-------: | :-----: |
|
||||
| id | string | The manga id | Yes | `N/A` |
|
||||
|
||||
## Query Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :----: | ----------------------------------------------------------------------------------------------------------------------------------- | :-------: | :-----: |
|
||||
| provider | string | The provider you want to use. Enum: `mangadex`, `mangahere`, `mangakakalot`, `mangapark`, `mangapill`, `mangareader`, `mangasee123` | Yes | `N/A` |
|
||||
|
||||
## Request Samples
|
||||
|
||||
<Tabs items={["JavaScript", "Python"]}>
|
||||
<Tab>
|
||||
<>
|
||||
```js
|
||||
import axios from "axios";
|
||||
|
||||
// Using the example id of "30013" and the query of "mangareader"
|
||||
const url = "https://api.nganime.my.id/meta/anilist-manga/info/30013";
|
||||
const data = async () => {
|
||||
try {
|
||||
const { data } = await axios.get(url, { params: { provider: "mangareader" } });
|
||||
return data;
|
||||
} catch (err) {
|
||||
throw new Error(err.message);
|
||||
}
|
||||
};
|
||||
|
||||
console.log(data);
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
<Tab>
|
||||
<>
|
||||
```python
|
||||
import requests
|
||||
|
||||
// Using the example id of "30013" and the query of "mangareader"
|
||||
url = "https://api.nganime.my.id/meta/anilist-manga/info/30013"
|
||||
response = requests.get(url, params={"provider": "mangareader"})
|
||||
data = response.json()
|
||||
|
||||
print(data)
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Response Schema
|
||||
|
||||
<Tabs items={["200 OK", "400 Bad Request", "404 Not Found"]}>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"id": "string",
|
||||
"title": "string[]",
|
||||
"malId": "integer",
|
||||
"trailer": {
|
||||
"id": "string",
|
||||
"site": "string",
|
||||
"thumbnail": "string"
|
||||
},
|
||||
"image": "string",
|
||||
"popularity": "number",
|
||||
"color": "string",
|
||||
"description": "string",
|
||||
"status": "string",
|
||||
"releaseDate": "integer",
|
||||
"startDate": {
|
||||
"year": "number",
|
||||
"month": "number",
|
||||
"day": "number"
|
||||
},
|
||||
"endDate": {
|
||||
"year": "number",
|
||||
"month": "number",
|
||||
"day": "number"
|
||||
},
|
||||
"rating": "integer",
|
||||
"genres": "string[]",
|
||||
"season": "string",
|
||||
"studios": "string[]",
|
||||
"type": "string",
|
||||
"recommendations": {
|
||||
"id": "string",
|
||||
"malId": "string",
|
||||
"title": "string[]",
|
||||
"status": "string",
|
||||
"chapters": "number",
|
||||
"image": "string",
|
||||
"cover": "string",
|
||||
"rating": "number",
|
||||
"type": "string",
|
||||
},
|
||||
"characters": {
|
||||
"id": "string",
|
||||
"role": "string",
|
||||
"name": "string[]",
|
||||
"image": "string",
|
||||
},
|
||||
"relations": {
|
||||
"id": "integer",
|
||||
"relationType": "string",
|
||||
"malId": "integer",
|
||||
"title": "string[]",
|
||||
"status": "string",
|
||||
"chapters": "integer",
|
||||
"image": "string",
|
||||
"color": "string",
|
||||
"type": "string",
|
||||
"cover": "string",
|
||||
"rating": "integer",
|
||||
},
|
||||
"chapters": {
|
||||
"id": "string",
|
||||
"title": "string",
|
||||
"chapter": "string",
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"message": "string"
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
|
||||
<Tab>
|
||||
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"message": "string"
|
||||
}
|
||||
```
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
97
pages/rest-api/Meta/anilist-manga/read.mdx
Normal file
97
pages/rest-api/Meta/anilist-manga/read.mdx
Normal file
@ -0,0 +1,97 @@
|
||||
---
|
||||
title: Anilist (Manga) | Read
|
||||
---
|
||||
|
||||
import { Tab, Tabs } from "nextra-theme-docs";
|
||||
|
||||
# Read
|
||||
|
||||
Technical details regarding the usage of the Read function for the Anilist Manga 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/meta/anilist-manga/read?chapterId={chapterId}&provider={provider}
|
||||
```
|
||||
|
||||
## Query Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :----: | ----------------------------------------------------------------------------------------------------------------------------------- | :-------: | :-----: |
|
||||
| chapterId | string | The ID of the selected chapter you want to read | Yes | `N/A` |
|
||||
| provider | string | The provider you want to use. Enum: `mangadex`, `mangahere`, `mangakakalot`, `mangapark`, `mangapill`, `mangareader`, `mangasee123` | no | `N/A` |
|
||||
|
||||
## Request Samples
|
||||
|
||||
<Tabs items={["JavaScript", "Python"]}>
|
||||
<Tab>
|
||||
<>
|
||||
```js
|
||||
import axios from "axios";
|
||||
|
||||
// Using the example id of "30013" and the query of "mangareader"
|
||||
const url = "https://api.nganime.my.id/meta/anilist-manga/read";
|
||||
const data = async () => {
|
||||
try {
|
||||
const { data } = await axios.get(url, { params: { chapterId: "one-piece-3/fr/chapter-1", provider: "mangareader" } });
|
||||
return data;
|
||||
} catch (err) {
|
||||
throw new Error(err.message);
|
||||
}
|
||||
};
|
||||
|
||||
console.log(data);
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
<Tab>
|
||||
<>
|
||||
```python
|
||||
import requests
|
||||
|
||||
// Using the example id of "30013" and the query of "mangareader"
|
||||
url = "https://api.nganime.my.id/meta/anilist-manga/read"
|
||||
response = requests.get(url, params={"chapterId": "one-piece-3/fr/chapter-1","provider": "mangareader" })
|
||||
data = response.json()
|
||||
|
||||
print(data)
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Response Schema
|
||||
|
||||
<Tabs items={["200 OK", "400 Bad Request", "404 Not Found"]}>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"img": "string",
|
||||
"page": "integer",
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"message": "string"
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
|
||||
<Tab>
|
||||
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"message": "string"
|
||||
}
|
||||
```
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
1
pages/rest-api/Meta/myanimelist/_meta.json
Normal file
1
pages/rest-api/Meta/myanimelist/_meta.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
5
pages/rest-api/Meta/the-movie-database/_meta.json
Normal file
5
pages/rest-api/Meta/the-movie-database/_meta.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"search": "Search",
|
||||
"get-movie-info": "Get Movie Info",
|
||||
"get-movie-episode-streaming-links": "Get Movie Episode Streaming Links"
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
---
|
||||
title: The Movie Database | 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 TMDB 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/meta/tmdb/watch/{episodeId}?id={showId}
|
||||
```
|
||||
|
||||
## Query Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :----: | ---------------------------------------------------------- | :-------: | :-----: |
|
||||
| episodeId | string | The ID of the selected episode | Yes | N/A |
|
||||
| showId | string | The id of the original media ie "tv/watch-the-flash-39535" | Yes | N/A |
|
||||
|
||||
## Request Samples
|
||||
|
||||
<Tabs items={["JavaScript", "Python"]}>
|
||||
<Tab>
|
||||
<>
|
||||
```js
|
||||
import axios from "axios";
|
||||
|
||||
/*
|
||||
Using the example episode ID of '2922' and the example show ID of 'tv/watch-the-flash-39535',
|
||||
|
||||
*/
|
||||
const url = "https://api.nganime.my.id/meta/tmdb/watch/2922";
|
||||
const data = async () => {
|
||||
try {
|
||||
const { data } = await axios.get(url, { params: { id: "tv/watch-the-flash-39535"} });
|
||||
return data;
|
||||
} catch (err) {
|
||||
throw new Error(err.message);
|
||||
}
|
||||
};
|
||||
|
||||
console.log(data);
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
<Tab>
|
||||
<>
|
||||
```python
|
||||
import requests
|
||||
|
||||
"""
|
||||
Using the example episode ID of '2922' and the example show ID of 'tv/watch-the-flash-39535',
|
||||
"""
|
||||
const url = "https://api.nganime.my.id/meta/tmdb/watch/2922";
|
||||
response = requests.get(url, params={"id": "tv/watch-the-flash-39535"})
|
||||
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
|
||||
{
|
||||
"headers": {
|
||||
"Referer": "string"
|
||||
},
|
||||
"sources": [
|
||||
{
|
||||
"url": "string",
|
||||
"quality": "string",
|
||||
"isM3U8": true
|
||||
}
|
||||
],
|
||||
"subtitles": [
|
||||
{
|
||||
"url": "string",
|
||||
"lang": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"message": "string"
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"message": "string"
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
113
pages/rest-api/Meta/the-movie-database/get-movie-info.mdx
Normal file
113
pages/rest-api/Meta/the-movie-database/get-movie-info.mdx
Normal file
@ -0,0 +1,113 @@
|
||||
---
|
||||
title: The Movie Database | Movie Info
|
||||
---
|
||||
|
||||
import { Tab, Tabs } from "nextra-theme-docs";
|
||||
|
||||
# Movie Info
|
||||
|
||||
Technical details regarding the usage of the get anime info function for the TMDB 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/meta/tmdb/info/{id}?type={media-type}
|
||||
```
|
||||
|
||||
## Path Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :----: | ------------------- | :-------: | :-----: |
|
||||
| id | string | The show / movie id | Yes | `N/A` |
|
||||
|
||||
## Query Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :----: | ---------------------------------------------------------------------------------------------------------------- | :-------: | :-----: |
|
||||
| type | string | The TMDB media type of the show / movie; i.e. provided by searching for said show and selecting the correct one. | Yes | `N/A` |
|
||||
|
||||
## Request Samples
|
||||
|
||||
<Tabs items={["JavaScript", "Python"]}>
|
||||
<Tab>
|
||||
<>
|
||||
```js
|
||||
import axios from "axios";
|
||||
|
||||
// Using the example id of "60735" and the query of "tv"
|
||||
const url = "https://api.nganime.my.id/meta/tmdb/info/60735";
|
||||
const data = async () => {
|
||||
try {
|
||||
const { data } = await axios.get(url, { params: { type: "tv" } });
|
||||
return data;
|
||||
} catch (err) {
|
||||
throw new Error(err.message);
|
||||
}
|
||||
};
|
||||
|
||||
console.log(data);
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
<Tab>
|
||||
<>
|
||||
```python
|
||||
import requests
|
||||
|
||||
// Using the example id of "60735" and the query of "tv"
|
||||
url = "https://api.nganime.my.id/meta/tmdb/info/60735"
|
||||
response = requests.get(url, params={"type": "tv"})
|
||||
data = response.json()
|
||||
|
||||
print(data)
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Response Schema
|
||||
|
||||
<Tabs items={["200 OK", "400 Bad Request", "404 Not Found"]}>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"cover": "string",
|
||||
"recommendations": "IMovieResult[]",
|
||||
"genres": "string[]",
|
||||
"description": "string",
|
||||
"rating": "number",
|
||||
"status": "MediaStatus",
|
||||
"duration": "string",
|
||||
"production": "string",
|
||||
"casts": "string[]",
|
||||
"tags": "string[]",
|
||||
"totalEpisodes": "number",
|
||||
"seasons": "{ season: number; image?: string; episodes: IMovieEpisode[] }[]",
|
||||
"episodes": "IMovieEpisode[]",
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"message": "string"
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
|
||||
<Tab>
|
||||
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"message": "string"
|
||||
}
|
||||
```
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
91
pages/rest-api/Meta/the-movie-database/search.mdx
Normal file
91
pages/rest-api/Meta/the-movie-database/search.mdx
Normal file
@ -0,0 +1,91 @@
|
||||
---
|
||||
title: The Movie Database | Search
|
||||
---
|
||||
|
||||
import { Tab, Tabs } from "nextra-theme-docs";
|
||||
|
||||
# Search
|
||||
|
||||
Technical details regarding the usage of the search function for the TMDB 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/meta/tmdb/{query}?page={page}
|
||||
```
|
||||
|
||||
## Path Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :----: | ----------------------------------------------------------------- | :-------: | :-----: |
|
||||
| query | string | The search query; i.e. the title of the item you are looking for. | Yes | `""` |
|
||||
|
||||
## Query Parameters
|
||||
|
||||
| Parameter | Type | Description | Required? | Default |
|
||||
| :-------: | :-----: | ------------------------------------- | :-------: | :-----: |
|
||||
| page | integer | The page number of results to return. | No | `1` |
|
||||
|
||||
## Request Samples
|
||||
|
||||
<Tabs items={["JavaScript", "Python"]}>
|
||||
<Tab>
|
||||
<>
|
||||
```js
|
||||
import axios from "axios";
|
||||
|
||||
// Using the example query "flash", and looking at the first page of results.
|
||||
const url = "https://api.nganime.my.id/meta/tmdb/flash";
|
||||
const data = async () => {
|
||||
try {
|
||||
const { data } = await axios.get(url, { params: { page: 1 } });
|
||||
return data;
|
||||
} catch (err) {
|
||||
throw new Error(err.message);
|
||||
}
|
||||
};
|
||||
|
||||
console.log(data);
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
<Tab>
|
||||
<>
|
||||
```python
|
||||
import requests
|
||||
|
||||
# Using the example query "flash", and looking at the first page of results.
|
||||
url = "https://api.nganime.my.id/meta/tmdb/flash"
|
||||
response = requests.get(url, params={"page": 1})
|
||||
data = response.json()
|
||||
|
||||
print(data)
|
||||
```
|
||||
</>
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Response Schema
|
||||
|
||||
<Tabs items={["200 OK"]}>
|
||||
<Tab>
|
||||
**MIME Type:** `application/json`
|
||||
```json copy=false
|
||||
{
|
||||
"currentPage": 1,
|
||||
"results": [
|
||||
{
|
||||
"id": "string",
|
||||
"title": "string",
|
||||
"image": "string",
|
||||
"type": "string",
|
||||
"rating": "number",
|
||||
"releaseDate": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
Loading…
x
Reference in New Issue
Block a user