Algobook
- The developer's handbook
mode-switch
back-button
Buy Me A Coffee

E-book API

Our E-book API lets you search for books using either ISBN, author or title of the book. The API is using Google Books as data source.

  • Searching with ISBN will only return one book (if found)
  • Searching for title and author will return an array of books since they are using fuzzy search

Documentation

The API has three endpoints:

GET https://api.algobook.info/v1/ebooks/isbn/:isbn GET https://api.algobook.info/v1/ebooks/title/:title GET https://api.algobook.info/v1/ebooks/author/:author

Below we will share examples in JavaScript on how the API can be consumed.

GET /ebooks/isbn/:isbn

If we search for ISBN, it will match directly to the ISBN you input, so it will not find a partial ISBN.

const response = await fetch( "https://api.algobook.info/v1/ebooks/isbn/9780385504218" ); const data = await response.json(); console.log(data);

Response

{ "title": "The Da Vinci Code", "authors": ["Dan Brown"], "localizedDescription": "MORE THAN 80 MILLION COPIES SOLD Nominated as one of America’s best-loved novels by PBS’s The Great American Read While in Paris, Harvard symbologist Robert Langdon is awakened by a phone call in the dead of the night. The elderly curator of the Louvre has been murdered inside the museum, his body covered in baffling symbols. As Langdon and gifted French cryptologist Sophie Neveu sort through the bizarre riddles, they are stunned to discover a trail of clues hidden in the works of Leonardo da Vinci—clues visible for all to see and yet ingeniously disguised by the painter. Even more startling, the late curator was involved in the Priory of Sion—a secret society whose members included Sir Isaac Newton, Victor Hugo, and Da Vinci—and he guarded a breathtaking historical secret. Unless Langdon and Neveu can decipher the labyrinthine puzzle—while avoiding the faceless adversary who shadows their every move—the explosive, ancient truth will be lost forever.", "pages": 466, "language": "en", "imgUrl": "http://books.google.com/books/content?id=ohZ1wcYifLsC&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api", "publisher": "Anchor", "published": "2003-03-18", "categories": ["Fiction"], "identifiers": [ { "type": "ISBN_13", "identifier": "9780385504218" }, { "type": "ISBN_10", "identifier": "0385504217" } ] }

GET /ebooks/title/:title

The title search will return all books that has a title that are matching the search word

const response = await fetch( "https://api.algobook.info/v1/ebooks/title/Harry potter" ); const data = await response.json(); console.log(data);

Response

[ { "title": "Harry Potter and the Half-Blood Prince", "authors": ["J.K. Rowling"], "localizedDescription": "There it was, hanging in the sky above the school: the blazing green skull with a serpent tongue, the mark Death Eaters left behind whenever they had entered a building... wherever they had murdered... When Dumbledore arrives at Privet Drive one summer night to collect Harry Potter, his wand hand is blackened and shrivelled, but he does not reveal why. Secrets and suspicion are spreading through the wizarding world, and Hogwarts itself is not safe. Harry is convinced that Malfoy bears the Dark Mark: there is a Death Eater amongst them. Harry will need powerful magic and true friends as he explores Voldemort's darkest secrets, and Dumbledore prepares him to face his destiny... Having become classics of our time, the Harry Potter eBooks never fail to bring comfort and escapism. With their message of hope, belonging and the enduring power of truth and love, the story of the Boy Who Lived continues to delight generations of new readers.", "pages": 662, "language": "en", "imgUrl": "http://books.google.com/books/content?id=R7YsowJI9-IC&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api", "publisher": "Pottermore Publishing", "published": "2015-12-08", "categories": ["Fiction"], "identifiers": [ { "type": "ISBN_13", "identifier": "9781781100547" }, { "type": "ISBN_10", "identifier": "1781100543" } ] }, { "title": "Harry Potter and the Half-Blood Prince - Slytherin Edition", "authors": ["J. K. Rowling"], "pages": 560, "language": "en", "imgUrl": "http://books.google.com/books/content?id=7a2wzQEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", "publisher": "Bloomsbury Children's Books", "published": "2021-01-21", "categories": ["Juvenile Fiction"], "identifiers": [ { "type": "ISBN_10", "identifier": "152661829X" }, { "type": "ISBN_13", "identifier": "9781526618290" } ] } ]

GET /ebooks/author/:author

As with title search, the author search will return all books that have an author that are matching the search word

const response = await fetch( "https://api.algobook.info/v1/ebooks/author/David Goggins" ); const data = await response.json(); console.log(data);

Response

[ { "title": "Can't Hurt Me", "authors": ["David Goggins"], "localizedDescription": "\"For David Goggins, childhood was a nightmare. Poverty, prejudice, and physical abuse colored his days and haunted his nights. But through self-discipline, mental toughness, and hard work, Goggins transformed himself from a depressed, overweight young man with no future into a U.S. Armed Forces icon and one of the world's top endurance athletes. The only man in history to complete elite training as a Navy SEAL, Army Ranger, and Air Force Tactical Air Controller, he went on to set records in numerous endurance events, inspiring Outside magazine to name him 'The Fittest (Real) Man in America.'. In Can't Hurt Me, he shares his astonishing life story and reveals that most of us tap into only 40% of our capabilities. Goggins calls this The 40% Rule, and his story illuminates a path that anyone can follow to push past pain, demolish fear, and reach their full potential\"--Publisher's description.", "pages": 363, "language": "en", "published": "2018", "categories": ["Athletes"], "identifiers": [ { "type": "ISBN_10", "identifier": "1544512287" }, { "type": "ISBN_13", "identifier": "9781544512280" } ] }, .... ]

Feedback

If you have any feedback or feature requests for the API, you are very welcome to contact us here with anything that you feel can improve the API.

signature
See all our articlesSee all our open source projects