# AuctionNinja Scraper - Estate Sales & Online Auctions (`lulzasaur/auctionninja-scraper`) Actor

Scrape estate sales and online auctions from AuctionNinja.com. Extract auction items, current bids, lot details, images, dates, and locations. For resellers, collectors, and estate sale enthusiasts.

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

## Pricing

from $5.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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## AuctionNinja Estate Sale & Auction Scraper

Scrape **estate sales and online auctions** from [AuctionNinja](https://www.auctionninja.com) — a fast-growing marketplace for estate sale companies and auctioneers. Extract individual **auction lots** with current bids, item URLs, seller/auctioneer info, location, end dates, category, and images.

Perfect for **resellers, collectors, estate-sale hunters, and price-comparison tools**.

### What it does

- Browses AuctionNinja's marketplace by sale type, US state, or ZIP + radius
- Optionally opens each auction and extracts **every visible lot** (title, current bid, lot #, image)
- Filters records by one or more **search keywords**
- Returns clean, structured JSON — one record per lot (or per auction)

### Input

| Field | Type | Description |
|-------|------|-------------|
| `searchQueries` | array | Keywords to filter lots by (matches ANY). Empty = everything. |
| `scrapeDetails` | boolean | `true` = per-lot output (default). `false` = per-auction (faster). |
| `saleType` | string | `All`, `Online`, or `Estate`. |
| `state` | string | US state code (e.g. `NY`, `CA`). |
| `zipCode` | string | ZIP for location-based search. |
| `searchRadius` | integer | Miles from ZIP (5–500). |
| `maxResults` | integer | Max records to return (1–2000). |
| `proxyConfiguration` | object | Proxy settings (Apify Proxy on by default). |

#### Example input

```json
{
  "searchQueries": ["coins", "sterling silver"],
  "scrapeDetails": true,
  "saleType": "Online",
  "maxResults": 100,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

### Output

Each lot record looks like:

```json
{
  "recordType": "lot",
  "title": "1922 Peace Silver Dollar",
  "lotNumber": 42,
  "itemUrl": "https://www.auctionninja.com/.../item/....html",
  "currentBid": "$25.00",
  "bidAmount": 25,
  "auctioneer": "Ryder's Auction",
  "sellerUrl": "https://www.auctionninja.com/ryders-auction",
  "auctionTitle": "This, That, & The Other Auction",
  "auctionUrl": "https://www.auctionninja.com/.../sales/details/....html",
  "location": "Newington, CT",
  "city": "Newington",
  "stateRegion": "CT",
  "postalCode": "06111",
  "endDate": "2026-07-03T17:00:00-04:00",
  "startDate": "2026-06-26T12:00:00-04:00",
  "category": "Online Auction",
  "image": "https://www.auctionninja.com/.../123.jpg",
  "shippingInfo": "Shipping Available",
  "scrapedAt": "2026-07-03T00:00:00.000Z"
}
```

When `scrapeDetails: false`, records are auction-level (`recordType: "auction"`) with `title`, `auctioneer`, `location`, `endDate`, and `image`.

### How it works

The scraper calls AuctionNinja's marketplace endpoint (`marketplace_ajax.php`) to list auctions, then parses each auction's detail page for lots and JSON-LD `SaleEvent` metadata (dates, address). No browser needed — fast HTTP + Cheerio.

### Notes

- Keyword filtering is applied to lot titles (and auction titles/category as fallback).
- Bids are live and change over time; `scrapedAt` marks capture time.
- Use residential proxies via `proxyConfiguration` if you hit rate limits.

### Legal

Scrapes only publicly available listing data. Respect AuctionNinja's Terms of Service and use responsibly.

# Actor input Schema

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

Keywords to filter auction lots by (e.g. "coins", "vintage watch", "pottery"). A record matches if it contains ANY keyword. Leave empty to return everything in the selected marketplace.

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

If true, visit each auction detail page and output individual LOTS (title, current bid, lot #, image, dates). If false, output one record per AUCTION (faster).

## `saleType` (type: `string`):

Type of sale to browse.

## `state` (type: `string`):

Filter by US state code (e.g. NY, CA, TX). Leave empty for all states.

## `zipCode` (type: `string`):

ZIP code for location-based search. Combine with Search Radius.

## `searchRadius` (type: `integer`):

Search radius in miles from ZIP code.

## `maxResults` (type: `integer`):

Maximum number of records (lots or auctions) to scrape.

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

Proxy settings. Residential proxies recommended if you hit rate limits.

## Actor input object example

```json
{
  "searchQueries": [],
  "scrapeDetails": true,
  "saleType": "All",
  "state": "",
  "zipCode": "",
  "searchRadius": 50,
  "maxResults": 40,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (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": [],
    "scrapeDetails": false,
    "maxResults": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("lulzasaur/auctionninja-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": [],
    "scrapeDetails": False,
    "maxResults": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("lulzasaur/auctionninja-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": [],
  "scrapeDetails": false,
  "maxResults": 40
}' |
apify call lulzasaur/auctionninja-scraper --silent --output-dataset

```

## MCP server setup

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