Discover Animes
The Discover Animes endpoint provides a powerful way to find animes stored in our database. You can search through a wide array of animes using specific criteria such as genre, release year, and user ratings. This endpoint is perfect for creating dynamic anime discovery features in your applications.
Endpoint Information
Endpoint URL
{baseUrl}/animes/discoverQuery Parameters
Enhance your anime discovery by using the following query parameters to filter search results. These parameters allow you to tailor the anime data retrieved from our database, ensuring that the results meet your specific needs or the preferences of your application's users:
- genre: Filter animes by specific genres such as action, romance, sci-fi, etc.
- year: Retrieve animes released in a particular year to focus on new releases or classic series.
- page: Specify the page number for paginated results. Default is 1.
- limit: Set the number of animes to return per page. Default is 10.
Example Responses
200 OK - Successful Response
This response indicates that the request was successful and the animes were retrieved.
{
"statusCode": 200,
"status": "success",
"message": "Animes fetched successfully",
"results": {
"animes": [],
"totalPages": 0,
"currentPage": 0
}
}404 Not Found - No Animes Found
This response is returned when no animes match the search criteria in the database.
{
"statusCode": 404,
"status": "error",
"message": "No animes found",
"results": []
}500 Internal Server Error - Server Failure
This response indicates that there was an internal server error that prevented the request from being fulfilled.
{
"statusCode": 500,
"status": "error",
"message": "Failed to fetch animes",
"results": []
}API Demonstration
Try out the Discover Animes API with this interactive demonstration. Enter the query parameters 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/animes/discover?genre=&year=&page=1&limit=10&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.