Welcome to the MangaFire API, a powerful and easy-to-use service for accessing a vast collection of manga. This API scrapes data from MangaFire, providing developers with a simple way to integrate manga content into their applications.
To get started with the MangaFire API, follow these simple steps to set up the project on your local machine.
Make sure you have the following installed:
-
Clone the repository:
git clone https://github.com/your-username/mangafire-api.git cd mangafire-api -
Install the dependencies:
npm install
-
Build the project:
npm run build
-
Start the server:
npm start
The API will be running at http://localhost:3000.
All endpoints are available under the /api path.
-
GET
/api/homeRetrieves the homepage data, including trending manga, new releases, and recently updated series.
-
GET
/api/search/:keyword?page=:pageSearches for manga based on a keyword. The
pageparameter is optional and defaults to1.
-
GET
/api/manga/:idFetches detailed information about a specific manga, including its description, genres, and author.
-
GET
/api/manga/:id/chapters/:lng?Retrieves the chapters for a specific manga and language. If the
lngparameter is omitted, it will return a list of available languages for the manga. -
GET
/api/chapter/:chapterIdGets the images for a specific chapter.
-
GET
/api/volumes/:id/:lang?Retrieves the volumes for a specific manga. The
langparameter is optional and defaults toen.
-
GET
/api/category/:category?page=:pageFetches manga from a specific category (e.g.,
manga,manhwa). -
GET
/api/genre/:genre?page=:pageRetrieves manga from a specific genre (e.g.,
action,romance).
-
GET
/api/:pageType?page=:pageFetches the latest manga based on the
pageType. Valid options areupdated,newest, andadded.
The API returns standard HTTP status codes to indicate the success or failure of a request. In case of an error, the response body will contain a JSON object with a descriptive error message.
{
"error": {
"message": "Invalid page type",
"status": 400
}
}Contributions are welcome! If you have any suggestions or want to improve the API, feel free to open an issue or submit a pull request.