# Barnes and Noble Product Scraper (`lexis-solutions/barnesandnoble-scraper`) Actor

Gather product details with the Barnes and Noble Product Scraper. Extract titles, authors, prices, and ISBNs directly from Barnes and Noble. Optimize your e-commerce strategy with accurate, up-to-date data.

- **URL**: https://apify.com/lexis-solutions/barnesandnoble-scraper.md
- **Developed by:** [Lexis Solutions](https://apify.com/lexis-solutions) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 25 total users, 0 monthly users, 100.0% runs succeeded, 14 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $6.40 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## Barnes & Noble Scraper

![banner](https://lexis-solutions-apify.fra1.cdn.digitaloceanspaces.com/banners/barnesandnoble.png)

An Apify actor to scrape ebooks from [barnesandnoble.com](https://www.barnesandnoble.com/). This actor extracts details about books and ebooks, including titles, authors, prices, descriptions, and more.

### Features

- Scrapes detailed information about books and ebooks.
- Extracts data such as title, author, price, description, genre, and more.
- Can handle pagination and fetch data from multiple pages.
- Output data in JSON format for easy integration and analysis.

### Input Parameters

The actor accepts the following input parameters:

- `startUrls` (array) - List of URLs to start scraping from.
- `maxItems` (integer, optional) - Maximum number of items to scrape.
- `proxyConfiguration` (object, optional) - Proxy configuration settings.

Example:

```json
{
  "startUrls": [
    {
      "url": "https://www.barnesandnoble.com/s/50%20ideas%20you%20really%20need%20to%20know%20series"
    }
  ],
  "maxItems": 12,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

### Output

The output of this actor is a JSON file with the following structure:

```json
{
  "title": "50 Economics Ideas You Really Need to Know",
  "imgUrl": "https://prodimage.images-bn.com/pimages/9781529425130_p0_v1_s600x595.jpg",
  "price": 12.99,
  "description": "In a series of 50 accessible essays, Ed Conway introduces...",
  "author": "Edmund Conway"
}
```

### Need to scrape more data?

👉 Scrape Alibaba with [Alibaba Scraper](https://apify.com/lexis-solutions/alibaba-scraper)

👉 Scrape Michaels.com with [Michaels.com Scraper](https://apify.com/lexis-solutions/michaels-scraper)

👉 Scrape BizBuySell with [BizBuySell Scraper](https://apify.com/lexis-solutions/bizubuysell)

### Notes and Limitations

- The actor relies on the structure of the Barnes & Noble website. If the website structure changes, the actor may need to be updated.
- Ensure you comply with the terms of service of barnesandnoble.com when using this actor.
- For large-scale scraping, use Apify's proxy services to avoid IP blocking.

***

👀 p.s.

Got feedback or need an extension?

Lexis Solutions is a [certified Apify Partner](https://apify.com/partners/find). We can help you with custom solutions or data extraction projects.

Contact us on our [website](https://www.lexis.solutions/?ref=apify-profile), [Email](mailto:scraping@lexis.solutions), or [LinkedIn](https://www.linkedin.com/company/lexis-solutions).

# Actor input Schema

## `startUrls` (type: `array`):

One or more URLs of the pages where the crawler will start. Note that the Actor will additionally only crawl sub-pages of these URLs. For example, for the start URL `https://www.example.com/blog`, it will crawl pages like `https://example.com/blog/article-1`, but will skip `https://example.com/docs/something-else`.

## `maxItems` (type: `integer`):

The maximum number items to crawl.

## `proxyConfiguration` (type: `object`):

Your proxy configuration from Apify

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.barnesandnoble.com/s/50%20ideas%20you%20really%20need%20to%20know%20series"
    }
  ],
  "maxItems": 12,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": []
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {
    "startUrls": [
        {
            "url": "https://www.barnesandnoble.com/s/50%20ideas%20you%20really%20need%20to%20know%20series"
        }
    ],
    "maxItems": 12
};

// Run the Actor and wait for it to finish
const run = await client.actor("lexis-solutions/barnesandnoble-scraper").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 = {
    "startUrls": [{ "url": "https://www.barnesandnoble.com/s/50%20ideas%20you%20really%20need%20to%20know%20series" }],
    "maxItems": 12,
}

# Run the Actor and wait for it to finish
run = client.actor("lexis-solutions/barnesandnoble-scraper").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 '{
  "startUrls": [
    {
      "url": "https://www.barnesandnoble.com/s/50%20ideas%20you%20really%20need%20to%20know%20series"
    }
  ],
  "maxItems": 12
}' |
apify call lexis-solutions/barnesandnoble-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lexis-solutions/barnesandnoble-scraper"
        }
    }
}
```

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/akOZkYAzhWDh4WVOG/builds/nnaa41VHTtUS6Pua3/openapi.json
