Get Character Info
Technical details regarding the usage of the get character 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.consumet.org/meta/anilist/character/{id}Path Parameters
| Parameter | Type | Description | Required? | Default |
|---|---|---|---|---|
| id | string | The anilist character id | Yes | N/A |
Request Samples
import axios from "axios";
// Using the example character id of "5"
const url = "https://api.consumet.org/meta/anilist/character/5";
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
{
"id": "string",
"name": {
"first": "string",
"last": "string",
"full": "string",
"native": "string",
"userPreferred": "string"
},
"image": "string",
"description": "string",
"gender": "string",
"dateOfBirth": {
"year": "number",
"month": "number",
"day": "number"
},
"bloodType": "string",
"appearances": "string[]",
"relations": {
"id": "string",
"role": "string",
"name": "string",
"image": "string"
}
}