# Bonanza Scraper - Online Marketplace Data (`lulzasaur/bonanza-scraper`) Actor

Scrape Bonanza marketplace listings by keyword. Extract prices, shipping costs, images, seller info, item condition, and more. Supports search results and full detail scraping for market research and price monitoring.

- **URL**: https://apify.com/lulzasaur/bonanza-scraper.md
- **Developed by:** [lulz bot](https://apify.com/lulzasaur) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Bonanza Scraper

Apify Actor for scraping Bonanza marketplace listings by keyword. Uses CheerioCrawler for fast, efficient HTML parsing without a browser.

### Features

- Search Bonanza marketplace by keyword
- Two modes: quick search results or full detail scraping
- Extracts prices with shipping costs from structured HTML markup
- Detail mode captures: full description, all images, seller info, item traits (condition, brand, model, category), and availability
- Handles pagination automatically (60 items per page)
- Identifies featured/promoted listings and top-rated sellers

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `searchQueries` | string\[] | `["vintage watch"]` | Search terms to scrape |
| `maxListings` | integer | `100` | Max listings per query (0=unlimited) |
| `scrapeDetails` | boolean | `false` | Visit each listing for full details |
| `proxyConfiguration` | object | `{}` | Proxy settings (optional for Bonanza) |

#### Example Input

```json
{
    "searchQueries": ["vintage watch", "leather bag"],
    "maxListings": 50,
    "scrapeDetails": true
}
```

### Output

#### Search-only mode (`scrapeDetails: false`)

```json
{
    "title": "Vintage Hamilton Quartz LCD Watch 14K Electroplated",
    "price": 59.99,
    "currency": "USD",
    "shipping": "$5.99 ship",
    "freeShipping": false,
    "imageUrl": "https://images-bucket.bonanzastatic.com/afu/images/.../s-l960.jpg",
    "thumbnailUrl": "https://images-bucket.bonanzastatic.com/afu/images/.../s-l960_thumb200.jpg",
    "url": "https://www.bonanza.com/listings/Vintage-Hamilton-Watch/1777932987",
    "itemId": "1777932987",
    "position": 1,
    "isFeatured": false,
    "hasVariations": false,
    "isTopSeller": true,
    "searchQuery": "vintage watch",
    "scrapedAt": "2026-03-17T12:00:00.000Z"
}
```

#### Detail mode (`scrapeDetails: true`)

```json
{
    "title": "Vintage Hamilton Quartz LCD Watch 14K Electroplated",
    "price": 59.99,
    "currency": "USD",
    "description": "Great condition vintage Hamilton watch...",
    "fullDescription": "Full seller-provided description text...",
    "images": [
        "https://images-bucket.bonanzastatic.com/afu/images/.../s-l960.jpg"
    ],
    "imageCount": 5,
    "condition": "Used",
    "conditionSchema": "Used",
    "category": "Wristwatches",
    "fullCategory": "Jewelry & Watches/Watches/Wristwatches",
    "brand": "Hamilton",
    "model": "Quartz LCD",
    "quantityAvailable": "Only one in stock, order soon",
    "availability": "Limited",
    "traits": {
        "Category": "Wristwatches",
        "Condition": "Used",
        "Brand": "Hamilton",
        "Model": "Quartz LCD"
    },
    "sellerName": "retrosupplyco",
    "sellerBoothId": "retrosupplyco",
    "sellerBoothUrl": "https://www.bonanza.com/booths/retrosupplyco",
    "isFeatured": false,
    "searchQuery": "vintage watch",
    "scrapedAt": "2026-03-17T12:00:00.000Z"
}
```

### How It Works

1. Builds search URLs for each query using Bonanza's Rails-style query params (`q[search_term]`)
2. Parses search results from server-rendered HTML (`div.search_result_item`)
3. Extracts prices from structured spans (`.money-whole`, `.money-decimal`)
4. Handles pagination via `q[page]` parameter (60 items per page, up to 34+ pages)
5. Optionally visits each listing detail page for rich data extraction
6. Detail pages are parsed via meta tags, schema.org markup, and HTML trait tables

### Quick Start

```bash
apify run --purge
```

### Deploy to Apify

```bash
apify login
apify push
```

### Related Scrapers

More marketplace scrapers and data tools by [lulzasaur](https://apify.com/lulzasaur):

- [AbeBooks Scraper](https://apify.com/lulzasaur/abebooks-scraper) — Rare and used books
- [Contractor License Verifier](https://apify.com/lulzasaur/contractor-license-scraper) — Multi-state license verification
- [Craigslist Scraper](https://apify.com/lulzasaur/craigslist-scraper) — Classifieds and for-sale posts
- [Goodreads Scraper](https://apify.com/lulzasaur/goodreads-scraper) — Book ratings and reviews
- [Grailed Scraper](https://apify.com/lulzasaur/grailed-scraper) — Luxury fashion resale
- [Houzz Scraper](https://apify.com/lulzasaur/houzz-scraper) — Home improvement professionals
- [IMDb Scraper](https://apify.com/lulzasaur/imdb-scraper) — Movie and TV show data
- [Nurse License Verifier](https://apify.com/lulzasaur/nurse-license-scraper) — State nursing board verification
- [OfferUp Scraper](https://apify.com/lulzasaur/offerup-scraper) — Local marketplace listings
- [Poshmark Scraper](https://apify.com/lulzasaur/poshmark-scraper) — Fashion resale marketplace
- [PSA Population Report](https://apify.com/lulzasaur/psa-pop-scraper) — Card grading data
- [Redfin Scraper](https://apify.com/lulzasaur/redfin-scraper) — Real estate listings and prices
- [Reverb Scraper](https://apify.com/lulzasaur/reverb-scraper) — Music gear marketplace
- [StubHub Scraper](https://apify.com/lulzasaur/stubhub-scraper) — Event ticket prices
- [Swappa Scraper](https://apify.com/lulzasaur/swappa-scraper) — Used electronics marketplace
- [TCGPlayer Scraper](https://apify.com/lulzasaur/tcgplayer-scraper) — Trading card prices
- [ThriftBooks Scraper](https://apify.com/lulzasaur/thriftbooks-scraper) — Used book prices
- [Thumbtack Scraper](https://apify.com/lulzasaur/thumbtack-scraper) — Local service professionals

# Actor input Schema

## `searchQueries` (type: `array`):

List of search terms to scrape (e.g., 'vintage watch', 'leather bag', 'pokemon cards'). Each query will produce a separate set of results.

## `maxListings` (type: `integer`):

Maximum number of listings to scrape per search query. Bonanza returns ~60 items per page. Set to 0 for unlimited.

## `scrapeDetails` (type: `boolean`):

If enabled, visits each listing page to get full description, all photos, seller info, item traits (condition, brand, model, category), and availability. Slower but much richer data. If disabled, only scrapes search result data (title, price, shipping, thumbnail).

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

Proxy settings. Required for Apify Cloud runs — Bonanza blocks datacenter IPs. Uses Apify Proxy datacenter group by default.

## Actor input object example

```json
{
  "searchQueries": [
    "vintage watch"
  ],
  "maxListings": 100,
  "scrapeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "searchQueries": [
        "vintage watch"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lulzasaur/bonanza-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 = { "searchQueries": ["vintage watch"] }

# Run the Actor and wait for it to finish
run = client.actor("lulzasaur/bonanza-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 '{
  "searchQueries": [
    "vintage watch"
  ]
}' |
apify call lulzasaur/bonanza-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lulzasaur/bonanza-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/NO5ugnJCw3mbhYG79/builds/yeZTUhEBZ5qT5AR0Y/openapi.json
