# HiBid Auctions, Lots & Sold Prices Scraper (MCP) (`clearbid-data/hibid-auctions-lots-scraper`) Actor

Extract live bids, closed hammer prices, buyer's premium all-in totals, shipping flags, gallery photos, and auctioneer emails/phones from HiBid.com (USA & Canada) via fast pure HTTP. Built-in deal-sniping filters & incremental alerts for MCP & n8n.

- **URL**: https://apify.com/clearbid-data/hibid-auctions-lots-scraper.md
- **Developed by:** [ClearBid Data](https://apify.com/clearbid-data) (community)
- **Categories:** AI, Lead generation, E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.85 / 1,000 validated auction lot records

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/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

## HiBid Auctions, Lots & Sold Prices Scraper

**Actor:** [`clearbid-data/hibid-auctions-lots-scraper`](https://apify.com/clearbid-data/hibid-auctions-lots-scraper)
**MCP:** <https://mcp.apify.com/?tools=clearbid-data/hibid-auctions-lots-scraper>

> Store #3 under the **clearbid-data** brand. Fast pure-HTTP GraphQL scraper for
> [HiBid.com](https://hibid.com) — the largest US & Canadian auction marketplace —
> built for resellers, liquidators, AI agents (MCP) and hourly n8n deal-sniping crons.

### Why this Actor beats the abandoned alternatives

| | `clearbid-data/hibid-auctions-lots-scraper` | `solidcode/hibid-scraper` (abandoned since 07/2026) |
|---|---|---|
| Method | Pure HTTP GraphQL (~350 ms / page) | Headless browser (512 MB RAM, timeout failures) |
| Start fee | **$0.002** — 60% cheaper, built for hourly crons | $0.005 per start |
| Listing fee | **$1.00 / 1k** validated lots | per-result pricing |
| Full enrichment | **+$1.00 / 1k** (gallery, 4-level categories, terms, increments) | — |
| Buyer's premium all-in pricing | ✅ `allInCurrentPrice` | ❌ |
| Cross-run dedup (`onlyNewSinceLastRun`) | ✅ | ❌ |
| Deal-sniping filters | ✅ `maxCurrentBid`, `closingWithinHours`, `excludeKeywords` | ❌ |
| Anti-loss billing guard | ✅ stops instantly on spend limit / WAF / breaker | ❌ |

### Coverage

- **USA & Canada** — all 50 states + DC + PR, and all 13 Canadian provinces/territories.
- **Live open lots**, closing-soon lots, and **closed/archived lots** (sold hammer prices for comps).
- Auctioneer **name, phone, email, website**, auction city/state/ZIP, pickup & payment terms.

### Pricing (Pay-Per-Event)

| Event | Price | Charged when |
|---|---|---|
| `actor-start` | $0.002 | once per run, after input validation |
| `lot-listed` | $0.001 | once per **Zod-validated** lot pushed to the dataset |
| `lot-detail-enriched` | $0.001 | once per lot enriched via `GetLotDetails` |

A run of 50 fully-enriched lots costs ≈ **$0.102** ($0.002 + 50×$0.002).
Everything is validated with a strict Zod schema *before* push & charge — you never pay for a malformed row.

### Quick start

```bash
apify run                      # local run with ./storage/input default
apify call clearbid-data/hibid-auctions-lots-scraper \
  --input '{"status":"open","keywords":"generator","country":"USA","state":"TX","sortOrder":"closing_soonest","maxItems":50,"includeDetails":true}'
```

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `status` | select | `open` | `open` / `closing` / `closed` / `all` |
| `keywords` | string | `generator` | e.g. `generator`, `MacBook`, `silver dollar`, `DeWalt` |
| `country` | select | `all` | `USA` / `Canada` / `all` |
| `state` | string | — | `TX`, `Ontario`, `AB`, … |
| `zip` + `miles` | string/int | — | proximity radius search (5–500 mi) |
| `category` | string | — | HiBid category name or numeric ID |
| `shippingOfferedOnly` | boolean | `false` | only auctioneers who ship |
| `sortOrder` | select | `relevance` | `closing_soonest` (best for sniping), `bid_count_desc`, `high_bid_desc`, `lot_number` |
| `directUrls` | string\[] | `[]` | lot URLs, catalog URLs (`https://hibid.com/catalog/797200/...`) or raw auction IDs — overrides keyword search |
| `maxItems` | int | `50` | 1–5000 validated records |
| `includeDetails` | boolean | `true` | full gallery + 4-level categories + shipping/payment terms + bid increments |
| `maxCurrentBid` | number | — | skip lots whose current bid exceeds this (**before** detail fetch & billing) |
| `minCurrentBid` | number | — | skip lots below this floor |
| `closingWithinHours` | number | — | sniper window: only lots closing within N hours |
| `mustIncludeKeywords` | string\[] | `[]` | post-enrichment whitelist (any-of, case-insensitive) |
| `excludeKeywords` | string\[] | `[]` | e.g. `["for parts","broken","untested","reference photo"]` |
| `onlyNewSinceLastRun` | boolean | `false` | **incremental alert mode** — persist seen lot IDs in KV store `CLEARBID-HIBID-STATE` and deliver each matching lot exactly once |
| `alertStateKey` | string | `default` | separate dedup state per workflow/channel |
| `requestDelayMs` | int | `200` | polite delay 100–5000 ms |

### Output (per lot)

Core: `lotId`, `lotNumber`, `status` (OPEN/CLOSING/CLOSED/POSTED/LIVE), `title`, `description`,
`currentBid`, `minNextBid`, `bidCount`, `buyNowPrice`, `priceRealized` (hammer price on closed lots),
`reserveSatisfied`, `estimateRaw/Low/High`, `quantity`, `currency`, `shippingOffered`,
`closingAtIso` (UTC ISO-8601, correct across month/year rollovers **and Newfoundland NST/NDT -3.5 h zones**),
`hoursRemaining`, `lotUrl`, `scrapedAt`.

**All-in economics:** `buyerPremiumRaw` → `buyerPremiumPct` (parsed from free text like
`"18% BP, 15% Cash/Check"`, `"ONLINE Buyer's Premium 14%"`, `"No Buyer's Premium Sale"`) →
**`allInCurrentPrice`** = your real out-of-pocket price including the buyer's premium.

Enrichment (`includeDetails: true`): `imageUrls` (full dedup gallery), `categories` +
`primaryCategory` (4-level hierarchy, e.g. *Construction & Farm - Power Systems - Generators - Portable*),
`shippingAndPickupInfo`, `paymentInfo`, `biddingNotice`, `bidIncrements`, `auctionAddress`,
`auctioneerId/Name/Country/Phone/Email/Website`.

### Deal-sniping & anti-loss design

1. Every row/batch/page loop checks `guard.shouldStop()` — the crawl halts the moment the
   **PPE spend limit** (`eventChargeLimitReached`), a **HiBid WAF/Cloudflare challenge**,
   the **4-error network circuit breaker**, or the **8-minute wall-clock budget** trips.
2. Filters (`maxCurrentBid`, `minCurrentBid`, `closingWithinHours`, `excludeKeywords`) run
   **before** the detail fetch and **before** any charge — dead lots cost $0.
3. `onlyNewSinceLastRun` keeps the last 20 000 delivered lot IDs per `alertStateKey`, and
   pagination stops early after 2 consecutive 100%-already-seen pages (`caught_up_to_previous_run`).
4. A `RUN_SUMMARY` (stop reason, filter stats, charged counts) lands in the default key-value store after every run.

### Hourly n8n Deal Sniper

Import [`integrations/n8n-hibid-deal-sniper-alert.json`](integrations/n8n-hibid-deal-sniper-alert.json):

```
Schedule Trigger (Every Hour)
  → Alert Config (keywords, state, max deal price, Slack channel, sheet)
  → HTTP POST https://api.apify.com/v2/acts/clearbid-data~hibid-auctions-lots-scraper/run-sync-get-dataset-items
      { onlyNewSinceLastRun: true, closingWithinHours: 24, maxCurrentBid: 100, includeDetails: true }
  → Filter (allInCurrentPrice ≤ max deal price & still open)
  → Slack Deal Alert  +  Google Sheets Comps Log
```

Add your Apify token as n8n credential/query param `token`, plus Slack & Google Sheets credentials — then every hour you get only the brand-new deals inside your budget, each delivered exactly once.

### MCP / AI-agent usage

The actor is MCP-ready:

```txt
https://mcp.apify.com/?tools=clearbid-data/hibid-auctions-lots-scraper
```

Tools expose search (status/keywords/state/zip/category/shipping), catalog & lot URL scraping, and
sold-price comps (`status: "closed"`) — responses are the same strict-schema records as the dataset.

### Development

```bash
npm install
npm test          # 97 offline tests: 6 live-captured GraphQL fixtures, normalizers, schema, billing guard
npm run test:live # live pure-HTTP smoke test against hibid.com (needs network)
```

Project layout:

```
src/
  main.js                  # orchestrator: search/catalog/lot modes, filters, dedup, billing
  lib/hibid-client.js      # live-verified GraphQL client (Chrome headers, retries, WAF detection)
  lib/billing.js           # BillingGuard: PPE charge + circuit breakers (DO NOT BREAK)
  parsers/lot-parser.js    # normalizeLotNode / parseSearchResponse / parseDetailResponse / merge
  schemas/record-schema.js # strict Zod LotRecordSchema + describeLotRecordError
  utils/normalizers.js     # cleanText, NST/NDT-aware timestamps, estimates, premiums, all-in math
samples/                   # 6 real GraphQL fixtures captured live from https://hibid.com/graphql
tests/                     # node:test suites (offline + live smoke)
integrations/              # ready-to-import n8n hourly deal-sniper workflow
```

### License

MIT © clearbid-data

# Actor input Schema

## `status` (type: `string`):

Filter by active open lots, lots closing soon, closed/archived lots (for sold hammer price comps), or all.

## `keywords` (type: `string`):

Keywords matched against lot title and description (e.g. 'generator', 'skid steer', 'MacBook', 'silver dollar', 'DeWalt', 'rolex'). Leave empty when scraping by state/category/catalog.

## `country` (type: `string`):

Filter auctions server-side to United States only, Canada only, or both.

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

Optional 2-letter postal code or full state/province name (e.g. 'TX', 'Texas', 'CA', 'ON', 'Ontario'). Leave empty for nationwide.

## `zip` (type: `string`):

Optional US ZIP or Canadian postal code for radius proximity search (e.g. '75201').

## `miles` (type: `integer`):

Search radius in miles around ZIP code when ZIP is provided (10 to 500 miles).

## `category` (type: `string`):

Optional HiBid category name or numeric ID (e.g. 'Construction & Farm', 'Business & Industrial', 'Cars & Vehicles', 'Tools', 'Computers & Electronics', 'Coins & Currency', 'Jewelry', 'Antiques & Collectibles').

## `shippingOfferedOnly` (type: `boolean`):

When enabled, only returns lots where the auctioneer explicitly offers shipping.

## `sortOrder` (type: `string`):

Sort results by relevance, closing soonest (best for sniping), highest bid count, highest bid, or lot number.

## `directUrls` (type: `array`):

Optional list of HiBid catalog URLs (https://hibid.com/catalog/797200/...), lot URLs (https://hibid.com/lot/332522244/...), or numeric auction IDs. Overrides keyword search when provided.

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

Maximum number of validated lot records to return (1 to 5000).

## `includeDetails` (type: `boolean`):

Fetch full lot details to add the complete multi-photo gallery, 4-level category hierarchy, shipping/pickup instructions, payment rules, and bid increment schedule.

## `maxCurrentBid` (type: `number`):

Optional deal-sniper ceiling: skip lots whose current high bid exceeds this amount (evaluated before detail enrichment and billing).

## `minCurrentBid` (type: `number`):

Optional floor: skip lots whose current high bid is below this amount.

## `closingWithinHours` (type: `number`):

Optional sniping filter (e.g. 24): only emit active lots closing within the next N hours (evaluated before detail enrichment and billing).

## `mustIncludeKeywords` (type: `array`):

Optional case-insensitive terms where at least one must match title/description before billing.

## `excludeKeywords` (type: `array`):

Optional negative terms (e.g. \['for parts', 'broken', 'untested', 'reference photo']) — matching lots are skipped without billing.

## `onlyNewSinceLastRun` (type: `boolean`):

Persist seen lotIds in a named Apify Key-Value Store across scheduled runs so each matching lot is delivered and billed only once.

## `alertStateKey` (type: `string`):

Optional key separating deduplication state across multiple scheduled workflows (default: 'default').

## `requestDelayMs` (type: `integer`):

Polite delay in milliseconds between HTTP batches (100 to 5000 ms).

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

HiBid public GraphQL queries work via direct HTTP without proxies by default.

## Actor input object example

```json
{
  "status": "open",
  "keywords": "generator",
  "country": "USA",
  "state": "",
  "zip": "",
  "miles": 50,
  "category": "",
  "shippingOfferedOnly": false,
  "sortOrder": "closing_soonest",
  "directUrls": [],
  "maxItems": 25,
  "includeDetails": true,
  "mustIncludeKeywords": [],
  "excludeKeywords": [],
  "onlyNewSinceLastRun": false,
  "alertStateKey": "default",
  "requestDelayMs": 200,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Normalized HiBid auction lots with current bids, all-in prices, shipping flags, and auctioneer contacts.

## `runSummary` (type: `string`):

Execution statistics, sniping filter counts, and Pay-Per-Event summary.

# 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 = {
    "status": "open",
    "keywords": "generator",
    "country": "USA",
    "shippingOfferedOnly": false,
    "sortOrder": "closing_soonest",
    "maxItems": 25,
    "includeDetails": true,
    "onlyNewSinceLastRun": false,
    "requestDelayMs": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("clearbid-data/hibid-auctions-lots-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 = {
    "status": "open",
    "keywords": "generator",
    "country": "USA",
    "shippingOfferedOnly": False,
    "sortOrder": "closing_soonest",
    "maxItems": 25,
    "includeDetails": True,
    "onlyNewSinceLastRun": False,
    "requestDelayMs": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("clearbid-data/hibid-auctions-lots-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 '{
  "status": "open",
  "keywords": "generator",
  "country": "USA",
  "shippingOfferedOnly": false,
  "sortOrder": "closing_soonest",
  "maxItems": 25,
  "includeDetails": true,
  "onlyNewSinceLastRun": false,
  "requestDelayMs": 200
}' |
apify call clearbid-data/hibid-auctions-lots-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,clearbid-data/hibid-auctions-lots-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/HuQfdzhHSn7XxPTd9/builds/r5HyK8liqmHLHmNz0/openapi.json
