Get Anime Info
Technical details regarding the usage of the get anime info function for the animeunity provider can be found below. Example code is provided for both JavaScript and Python, along with a response schema.
Route Schema (URL)
https://api.consumet.org/anime/animeunity/info/{id}Path Parameters
| Parameter | Type | Description | Required? | Default |
|---|---|---|---|---|
| id | string | The animeunity ID of the anime; i.e. provided by searching for said anime and selecting the correct one. Format: {animeId}-{slug} | Yes |
Query Parameters
| Parameter | Type | Description | Required? | Default |
|---|---|---|---|---|
| page | integer | The page number of episodes to return (120 episodes per page). | No | 1 |
Request Samples
import axios from "axios";
// Using the example ID of "7221-demon-slayer-kimetsu-no-yaiba".
const url = "https://api.consumet.org/anime/animeunity/info/7221-demon-slayer-kimetsu-no-yaiba";
const data = async () => {
try {
const { data } = await axios.get(url);
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);Response Schema
MIME Type: application/json
{
"currentPage": 1,
"hasNextPage": false,
"totalPages": 1,
"id": "string",
"title": "string",
"url": "string",
"alID": "string", // AniList ID
"genres": [
"string"
],
"totalEpisodes": 0,
"image": "string",
"cover": "string",
"description": "string",
"episodes": [
{
"id": "string",
"number": 0,
"url": "string"
}
]
}