The Anime API is a RESTful web service built with Flask and Python. It allows users to retrieve information about anime using the AniList GraphQL API. The API provides endpoints to fetch anime details, such as title, synopsis, poster, genres, episodes, duration, start date, end date, and average score.
- Retrieve anime information by ID
- Fetch anime details including title, synopsis, poster, genres, episodes, duration, start date, end date, and average score
- Python 3.7 or above
- Flask
- Requests
- Clone the repository:
git clone https://github.com/soheru/anime-api.git - Navigate to the project directory:
cd anime-api - Install the dependencies:
pip install -r requirements.txt
-
Start the Flask server:
python app.py -
Access the API documentation at: http://localhost:5000
-
Use the following endpoint to retrieve anime information:
GET /anime/info/{anime_id}Replace
{anime_id}with the ID of the anime you want to fetch.
To retrieve information about an anime with ID 123:
The API documentation provides detailed information about the endpoints and their usage. It can be accessed by visiting the root URL http://localhost:5000 when the server is running.
This project is licensed under the MIT License. See the LICENSE file for more details.
For any inquiries or suggestions, please contact Soheru.