Open Library

Connect to Open Library using the Wolfram Language to retrieve information about books.

Connecting & Authenticating

ServiceConnect["OpenLibrary"] creates a connection to the Open Library API. If a previously saved connection can be found, it will be used; otherwise, a new authentication request will be launched.

Requests

ServiceExecute["OpenLibrary","request",params] sends a request to the Open Library API, using parameters params. The following give possible requests.

Search Books

Request:

"BookSearch" search books by title or author

Parameters:
  • "Query"Nonequery string
    "Author"Noneauthor name
    "Title"Nonebook title
    "Subject"Nonesubject
    MaxItems100maximum number of items returned
    "StartIndex"0start index
  • Book Information

    Request:

    "BookSummary" information about a single book edition

    "BookInformation" information about readable versions of a single book edition

    Parameters:
  • "BibKeys"(required)key(s) identifying specific book edition(s)
    "ShowThumbnails"Falsewhether to include cover thumbnail in results
  • Request:

    "BookText" full text of a book

    Parameters:
  • "BibKeys"(required)
  • key(s) identifying specific book edition(s)
  • Examples

    Basic Examples  (1)

    Create a new connection by launching an authentication dialog:

    In[1]:=
    Click for copyable input
    Out[1]=

    Search books by author:

    In[2]:=
    Click for copyable input
    Out[2]=

    Search books by author and subject:

    In[3]:=
    Click for copyable input
    In[4]:=
    Click for copyable input
    Out[4]=

    Analyze data from search results:

    In[5]:=
    Click for copyable input
    Out[5]=
    In[6]:=
    Click for copyable input
    Out[6]=

    Get information on a specific edition of a book:

    In[7]:=
    Click for copyable input
    Out[7]=
    In[8]:=
    Click for copyable input
    Out[8]=
    In[9]:=
    Click for copyable input
    Out[9]=

    Get the full text of a book:

    In[10]:=
    Click for copyable input
    In[11]:=
    Click for copyable input
    Out[11]=