Freebooks API

FREEMIUM
By H2PLabs | Updated a month ago | Data
Popularity

8.7 / 10

Latency

2,224ms

Service Level

97%

Health Check

100%

README

The FreeBooks API is a powerful and efficient tool for developers looking to integrate a vast library of eBooks into their applications. Leveraging the capabilities of the Libgen scraper, this API provides comprehensive access to eBook lists and detailed summaries.

Key features include:

eBook Fetching: With the title, author, or genre of a book, you can fetch an array of eBooks. The response includes valuable information such as the image URL, number of pages, size, year of publication, publisher, language, title, type, authors, and bookID. This feature can be particularly useful for online libraries, eBook retailers, or any application where users might want to discover new reading material.

Download URL: We have added the feature to download ebooks in pdf or epub format. Simply provide the BookID to access the download URL. To obtain the BookID, start by using the fetchEbooks endpoint.

Book Summaries: By simply providing a book ID, you can retrieve a detailed summary of the book. This feature can be a great asset for applications focusing on book reviews, recommendations, or study aids.

Please note that the functionality of the Freebooks API is contingent upon the availability of the Libgen database. If Libgen is inaccessible or a specific book is not available on Libgen, the API may not be able to provide the desired results.

Below is the API documentation for reference:

{
    "openapi": "3.0.1",
    "info": {
        "title": "Freebooks API",
        "description": "Libgen Scraper API to get Ebook list and Summary",
        "contact": {
            "name": "h2plabs",
            "email": "h2plabs@gmail.com"
        },
        "version": "v1"
    },
    "tags": [
        {
            "name": "Freebooks Controller",
            "description": "Search Books and Get Summary"
        }
    ],
    "paths": {
        "/getBookSummary/{bookId}": {
            "get": {
                "tags": [
                    "Freebooks Controller"
                ],
                "operationId": "getSummary",
                "parameters": [
                    {
                        "name": "bookId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "maxLength": 50,
                            "minLength": 1,
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/GetBookSummaryResponse"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/fetchEbooks/{title}": {
            "get": {
                "tags": [
                    "Freebooks Controller"
                ],
                "operationId": "getEbooks",
                "parameters": [
                    {
                        "name": "title",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "maxLength": 100,
                            "minLength": 1,
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/FetchEbooksResponse"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/fetchEbooks/{title}/{page}": {
            "get": {
                "tags": [
                    "Freebooks Controller"
                ],
                "operationId": "getEbooksWithPage",
                "parameters": [
                    {
                        "name": "title",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "maxLength": 100,
                            "minLength": 1,
                            "type": "string"
                        }
                    },
                    {
                        "name": "page",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "maximum": 100,
                            "minimum": 1,
                            "type": "integer",
                            "format": "int32"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/FetchEbooksResponse"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/fetchDownloadUrl/{bookId}": {
            "get": {
                "tags": [
                    "Freebooks Controller"
                ],
                "operationId": "getEbookDownloadUrl",
                "parameters": [
                    {
                        "name": "bookId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/FetchDownloadUrlResponse"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "GetBookSummaryResponse": {
                "type": "object",
                "properties": {
                    "summary": {
                        "type": "string"
                    }
                }
            },
            "FetchEbooksResponse": {
                "type": "object",
                "properties": {
                    "imgUrl": {
                        "type": "string"
                    },
                    "pages": {
                        "type": "string"
                    },
                    "size": {
                        "type": "string"
                    },
                    "year": {
                        "type": "string"
                    },
                    "publisher": {
                        "type": "string"
                    },
                    "language": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "authors": {
                        "type": "string"
                    },
                    "bookId": {
                        "type": "string"
                    }
                }
            },
            "FetchDownloadUrlResponse": {
                "type": "object",
                "properties": {
                    "bookId": {
                        "type": "string"
                    },
                    "mirror1": {
                        "type": "string"
                    },
                    "mirror2": {
                        "type": "string"
                    },
                    "mirror3": {
                        "type": "string"
                    }
                }
            }
        }
    }
}
Followers: 0
Resources:
Terms of use
API Creator:
Rapid account: H 2 P Labs
H2PLabs
happy2purchase
Log In to Rate API
Rating: 5 - Votes: 1