Anime Details

This section provides detailed information about animes from our database. You can view extensive details such as title, URL stream, synopsis, and rating. This feature is designed to offer in-depth insights into each anime, enhancing the user's experience by providing all necessary information in one place.

Endpoint Information

Endpoint URL

{baseUrl}/anime/:id
GET

Required Parameter

To fetch the details of a specific anime, the id parameter is required. This ID should be passed in the URL as shown in the endpoint information above.

Example URL with ID

{baseUrl}/animes/123

Example Response

200 OK - Successful Response

This response indicates that the request was successful and the anime details were retrieved.

{
  "statusCode": 200,
  "status": "success",
  "message": "Anime fetched successfully",
  "results": {
    "id": "123",
    "title": "Attack on Titan",
    "genre": "Action, Dark Fantasy",
    "year": 2013,
    "rating": "R - 17+",
    "synopsis": "In a world where humanity lives inside cities surrounded by enormous walls due to the Titans, gigantic humanoid creatures who devour humans seemingly without reason, a young boy named Eren Yeager joins the military with his childhood friends to fight the Titans.",
    "urlStream": "https://example.com/stream/attack-on-titan"
  }
}

400 Bad Request - Invalid Anime ID Format

This response is returned when the anime ID provided does not meet the expected format.

{
  "statusCode": 400,
  "status": "error",
  "message": "Invalid anime ID format",
  "results": null
}

404 Not Found - Anime Not Found

This response is returned when no anime matches the ID provided in the database.

{
  "statusCode": 404,
  "status": "error",
  "message": "Anime not found",
  "results": null
}

API Demonstration

Try out the Anime Details API with this interactive demonstration. Enter an anime ID below and click the button to make an API call.

API Call Example

import axios from 'axios';

const fetchMovies = async () => {
  try {
    const response = await axios.get('{baseUrl}/api/v1/anime/?id=&api_token=undefined');
    console.log(response.data);
  } catch (error) {
    console.error('Error fetching movies:', error);
  }
};

fetchMovies();

Please sign in and obtain an API token to use this demonstration.