Search Books
search_booksSearch books by title, author, or free text using the Open Library API and get matching book records with title, authors, publish year, and edition count.
Instructions
Search books by title, author, or free text via the Open Library search API and return a list of matching book records.
Queries Open Library over the network (no browser or authentication required). Returns a list of dicts, each typically containing: title (str), author_names (list of str), first_publish_year (int or None), edition_count (int), and the Open Library work key (str, e.g. "/works/OL45804W"). Fields missing upstream are omitted or None. Returns an empty list when the query matches nothing. Read-only: no local files or state are modified.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Title, author, or free-text search string. Type: string. Example: "the hobbit tolkien". Required, no default. | |
| max_results | No | Maximum number of books to return. Type: integer. Example: 10. Default: 20. Allowed: any positive integer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| count | No | ||
| errors | No | ||
| scraper | No | ||
| source_urls | No |