# Book Search (Open Library) (`he_work/book-data`) Actor

Searches books using the Open Library API. Returns title, author, publication year, ISBN, subjects, and cover image. Useful for publishing analytics and content research.

- **URL**: https://apify.com/he_work/book-data.md
- **Developed by:** [HE Work](https://apify.com/he_work) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.68 / 1,000 books

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Book Search (Open Library)

> ✅ **Checked daily.** An automated test runs this Actor on the Apify cloud every day and checks that it still returns real data, so if the website changes and something breaks, it's caught the same day and fixed.

Searches books using the Open Library API. Returns title, author, publication year, ISBN, subjects, and cover image. Useful for publishing analytics and content research.

Data comes from the public **Open Library** API, so results are fast and consistent.

### Use cases

- Feed fresh data into spreadsheets, dashboards and apps without writing an API client.
- Schedule it daily and get a dataset you can export as JSON, CSV or Excel.
- Combine it with other Actors in Apify workflows (Make, Zapier, n8n, webhooks).

### Input

| Field | Name | Default | Description |
|---|---|---|---|
| `queries` | Search Queries | `"python+programming,machine+learning"` | Book search queries (comma separated) |
| `limit` | Results per Query | `10` | Max results per query |

### Example input

```json
{
  "queries": "python+programming",
  "limit": 5
}
```

### Example output

One item from a real run (long texts shortened):

```json
{
  "title": "Black Hat Python",
  "author": "Justin Seitz",
  "firstPublishYear": 2014,
  "publisher": "",
  "isbn": "",
  "subjects": [],
  "coverUrl": "https://covers.openlibrary.org/b/id/8513526-L.jpg",
  "source": "openlibrary",
  "scrapedAt": "2026-11-05T07:35:03.599663+00:00"
}
```

### How it compares

| | This Actor | Typical alternative |
|---|---|---|
| Fields per result | 9 (see *Example output*) | Varies by actor |
| Freshness | Read live from the source when the run starts | Varies |
| Reliability | Tested daily by an automated run on the Apify cloud (see the top of this page) | — |
| Price | $0.80 per 1,000 books | No comparable Actor on the Apify Store (6 Nov 2026); the alternative is the source's own API or export, or collecting it by hand |

### Pricing

Pay per result, no monthly fee:

- **$0.80 per 1,000 books**: One book delivered to your dataset.
- $0.0005 per run (start).

Bronze plans pay 5% less, Silver 10% less, Gold and above 15% less.

**Examples:** 1,000 books = $0.80; 10,000 = $8.00.

### FAQ

**How do I run it on a schedule?** Create a task with your input and add a schedule in Apify Console (e.g. daily at 6 am). Each run writes a fresh dataset.

**How do I get the data?** Download the dataset as JSON, CSV, Excel, XML or HTML from the run page, or read it with the Apify API / Python and JavaScript clients. Integrations (Google Sheets, Make, Zapier, n8n, webhooks) work out of the box.

**Do I need proxies or an account on the site?** No. Proxies are handled inside the Actor and included in the price; no login is needed.

**What if a run returns fewer results than expected?** Check the run's key-value store `OUTPUT` record (when present) for a per-request report, then open an issue on the Issues tab with the run link and we'll look into it.

**Is it legal?** The Actor only collects publicly available data. You are responsible for using it in line with the website's terms, copyright and data-protection rules (GDPR, CCPA) — don't collect personal data you have no legal basis for.

# Actor input Schema

## `queries` (type: `string`):

Book search queries (comma separated)

## `limit` (type: `integer`):

Max results per query

## Actor input object example

```json
{
  "queries": "python+programming",
  "limit": 5
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset with one item per result.

## `storage` (type: `string`):

Key-value store of the run (run summary, if any).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": "python+programming,machine+learning"
};

// Run the Actor and wait for it to finish
const run = await client.actor("he_work/book-data").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "queries": "python+programming,machine+learning" }

# Run the Actor and wait for it to finish
run = client.actor("he_work/book-data").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": "python+programming,machine+learning"
}' |
apify call he_work/book-data --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,he_work/book-data"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ZtXAcINnBwW7XgMLs/builds/8hq2xOqkseRcoKqwa/openapi.json
