GithubHelp home page GithubHelp logo

rickaym / freebooksapi Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 714 KB

A comprehensive (unofficial) API service for planet-ebooks, libgen/gen.lib.rus.ec, and libgen.lc, providing free access to APIs for book download URLs, publication metadata, and many more!

Home Page: https://freebooksapi.pyaesonemyo.dev/

License: MIT License

Batchfile 0.12% Python 98.25% Dockerfile 1.64%
api books download-books fastapi freeapi rapidapi

freebooksapi's Introduction

redoc-docs Discord

A comprehensive (unofficial) API service for planet-ebooks, gen.lib.rus.ec/libgen.rs, libgen.lc/libgen.li, providing API endpoints to retrieve download URLs, mirrors, and publication metadata.

The API implements the following features:

  • Searching for publications and books by name, author name, topic, and so on.
  • Retrieve download URLs for books and publications
  • Retrieve datadumps sites for libraries
  • Retrieve library aliases list

Tech Stack

hosted-on-vultr

load-balanced-with-nginx

built-with-docker

based-on-fastapi

Getting Started

Type URL
Base Url https://freebooksapi.pyaesonemyo.dev/api/
Versioned base url https://freebooksapi.pyaesonemyo.dev/api/v{major} (or) https://freebooksapi.pyaesonemyo.dev/api/latest/
Library selector https://freebooksapi.pyaesonemyo.dev/api/v{major}/{library}

To learn more about specific API endpoints, please read the api reference.

Searching Example

In this example we will search for a book from libgen library with the query "dostoyevsky" and a limit of just 1 record for the response.

Using the versioned base url with the library selected, we get the following curl command:

curl -X GET 'https://freebooksapi.pyaesonemyo.dev/api/latest/libgen/search?q=dostoyevsky&limit=1'
+ NOTE: You can follow along by pasting the `curl` command into the terminal.

Different Libraries

To search from different libraries, we will substituting the {library} url arg from our base url with an available library ID.

The exact same GET request for the above example using planetebooks would be:

curl -X GET 'https://freebooksapi.pyaesonemyo.dev/api/latest/planetebooks/search?q=dostoyevsky&limit=1'

A Python equivalent example using requests would simply be:

import requests

url = "https://freebooksapi.pyaesonemyo.dev/api/latest/libgen/search?q=dostoyevsky&limit=1"

response = requests.request("GET", url)

Support the Project

Kindly consider supporting this project through starring the repository or buying me a coffee to cover the server costs! Thanks a lot for using our API, it's always extremely gratifying seeing your work help other people.

Buy Me A Coffee

Contributions

For contributions: read contributions.

Made with <3 by the Collaborators

freebooksapi's People

Contributors

itsmejewel avatar lbirkert avatar protype8 avatar rickaym avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

freebooksapi's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.