asmindev / anichin-api

Unofficial API from anichin site wrapped in python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Anichin API

AniChin API adalah sebuah proyek yang dikembangkan untuk memudahkan developer dalam mengakses data-data anime dan manga. Proyek ini menggunakan teknologi RESTful API sehingga memudahkan developer dalam mengakses data-data yang dibutuhkan.

API Reference

FastAPI Donghua API

FastAPI Logo

This is a FastAPI-based API for fetching information about donghua (Chinese animation). It provides various endpoints to retrieve donghua data based on different criteria.

Endpoints

Endpoint Description Parameters Response
GET / Get home page page (optional) - int: The page number for pagination JSON containing donghua data
GET /search Search donghua by query q - string (required): The search query JSON containing search results
GET /info/{slug} Show detail of donghua slug - string (required): The unique identifier (slug) of the donghua JSON containing detailed information about the specified donghua
GET /genres Show list of genres None JSON containing the list of genres
GET /genre/{slug} Show list of donghua by genre slug - string (required): The slug of the genre JSON containing the list of donghua for the specified genre
page (optional) - int: The page number for pagination
GET /episode/{slug} Get detail of episode slug - string (required): The slug of the episode JSON containing the detail of the specified episode
GET /video-source/{slug} Show list of video source

Error Handling

The API handles various error scenarios and returns appropriate error responses in JSON format.

HTTP Status Code Description
400 Bad Request - Invalid request or missing query parameters
404 Not Found - The requested resource is not found
500 Internal Server Error - An internal server error occurs

Run Locally

Clone the project

  git clone https://github.com/asmindev/anichin-api

Go to the project directory

  cd my-project

Install dependencies

  pip install -r requirements.txt

Start the server

  uvicorn main:app --reload

Authors

About

Unofficial API from anichin site wrapped in python


Languages

Language:Python 100.0%