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