mirror of
https://github.com/MinazukiAmane/Nganime-Docs.git
synced 2025-03-16 20:25:56 +08:00
97 lines
2.6 KiB
Plaintext
97 lines
2.6 KiB
Plaintext
---
|
|
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> |