docs(getNextEpisodeSchedule): add docs for /:animeId/next-episode-schedule endpoint

This commit is contained in:
Ritesh Ghosh
2025-04-15 00:10:53 +05:30
parent 8abdcb4e32
commit f9f045ccc5
+48
View File
@@ -82,6 +82,7 @@
- [GET Category Animes](#get-category-animes)
- [GET Estimated Schedules](#get-estimated-schedules)
- [GET Anime Episodes](#get-anime-episodes)
- [GET Anime Next Episode Schedule](#get-anime-next-episode-schedule)
- [GET Anime Episode Servers](#get-anime-episode-servers)
- [GET Anime Episode Streaming Links](#get-anime-episode-streaming-links)
- [Development](#development)
@@ -1146,6 +1147,53 @@ console.log(data);
<summary>
### `GET` Anime Next Episode Schedule
</summary>
#### Endpoint
```sh
/api/v2/hianime/anime/{animeId}/next-episode-schedule
```
#### Path Parameters
| Parameter | Type | Description | Required? | Default |
| :-------: | :----: | :------------------: | :-------: | :-----: |
| `animeId` | string | The unique anime id. | Yes | -- |
#### Request Sample
```javascript
const resp = await fetch(
"/api/v2/hianime/anime/steinsgate-3/next-episode-schedule"
);
const data = await resp.json();
console.log(data);
```
#### Response Schema
```javascript
{
success: true,
data: {
airingISOTimestamp: string | null,
airingTimestamp: number | null,
secondsUntilAiring: number | null
}
}
```
[🔼 Back to Top](#table-of-contents)
</details>
<details>
<summary>
### `GET` Anime Episode Servers
</summary>