# B-Stock Liquidation Auction Scraper - Pallets & Truckloads (`lulzasaur/bstock-scraper`) Actor

Scrape live B-Stock liquidation auctions: wholesale pallet & truckload lots of returns/overstock from Amazon, Walmart, Target & 65+ retailers. Per lot: bid, MSRP, bid/MSRP ratio, cost-per-unit, units, condition, retailer, location, close time, image, URL. Filter by category, inventory type & price.

- **URL**: https://apify.com/lulzasaur/bstock-scraper.md
- **Developed by:** [lulz bot](https://apify.com/lulzasaur) (community)
- **Categories:** Other
- **Stats:** 13 total users, 2 monthly users, 100.0% runs succeeded, 0 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

## B-Stock Liquidation Auction Scraper

Scrape **live B-Stock liquidation auctions** — wholesale **pallet and truckload lots** of customer
returns and overstock inventory from **Amazon, Walmart, Target** and **65+ other retailers**.

B-Stock's "All Auctions" marketplace aggregates thousands of open auctions across its network of
retailer liquidation marketplaces. This actor pulls that catalog directly from B-Stock's own search
service and returns clean, structured, per-lot data for resellers, flippers, arbitrage buyers and
analysts.

### What you get per lot

| Field | Description |
| --- | --- |
| `lotId` | B-Stock listing ID |
| `title` | Lot title (e.g. "4 Pallets of Floorcare, Hot Beverage Makers & More, 48 Pieces") |
| `currentBid` | Current winning/leading bid |
| `msrp` | Total retail value (MSRP) of the lot |
| `bidToMsrpRatio` | Current bid as a fraction of MSRP — your discount signal (e.g. `0.05` = bid is 5% of retail) |
| `unitCount` | Number of units/pieces in the lot |
| `costPerUnit` | Current bid ÷ units |
| `condition` | Displayed condition (New, Used Good, Salvage, Device Grade A…) |
| `sourceRetailer` | Storefront / retailer the inventory came from |
| `location` | Seller city, province, country |
| `closeTime` | Auction close time (ISO 8601) |
| `listingUrl` | Direct link to the auction |
| `imageUrl` | Primary lot image |
| `currency`, `numberOfBids`, `inventoryType`, `category`, `scrapedAt` | Extra context |

### Input

| Field | Type | Description |
| --- | --- | --- |
| `search` | string | Free-text across titles AND retailer names (e.g. `Amazon`, `Walmart`, `iPhone`). |
| `maxResults` | integer | Max lots to return (0 = all, up to 2000). Default 50. |
| `category` | enum | Restrict to one product category. |
| `inventoryType` | enum | Customer Returns, Overstock, Refurbished, etc. |
| `minBidValue` / `maxBidValue` | integer | Filter by current bid (budget cap). |
| `minRetailPrice` / `maxRetailPrice` | integer | Filter by MSRP. |
| `sortBy` / `sortOrder` | enum | Sort by close time, recommended, retail price or current bid. |
| `proxyConfiguration` | object | Apify proxy (datacenter is fine — no anti-bot on the API). |

#### Example: cheap Amazon electronics pallets closing soon

```json
{
  "search": "Amazon",
  "category": "Electronics",
  "inventoryType": "Customer Returns",
  "maxResults": 100,
  "sortBy": "endTime",
  "sortOrder": "asc"
}
```

### How it works

The actor calls B-Stock's public cross-marketplace search service
(`search.bstock.com`), paginating through results and normalizing each lot.
No login required. Fast and lightweight (plain JSON, no headless browser).

### Notes

- Bid values are live and change as auctions progress — re-run to refresh.
- `bidToMsrpRatio` and `costPerUnit` are computed to help you spot deals quickly.
- This is an unofficial scraper and is not affiliated with or endorsed by B-Stock.

# Actor input Schema

## `search` (type: `string`):

Free-text search across lot titles AND retailer names. Use a retailer like 'Amazon', 'Walmart' or 'Target' to focus on a source, or a product term like 'iPhone' or 'furniture'. Leave blank to scan all live auctions.

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

Maximum auction lots to return (0 = all matching lots, up to a safety cap of 2000). Pagination is handled automatically.

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

Optionally restrict to a single product category.

## `inventoryType` (type: `string`):

Optionally restrict to a single inventory type (e.g. Customer Returns, Overstock).

## `minBidValue` (type: `integer`):

Only return lots with a current bid at or above this amount. Leave blank for no minimum.

## `maxBidValue` (type: `integer`):

Only return lots with a current bid at or below this amount (your budget cap). Leave blank for no maximum.

## `minRetailPrice` (type: `integer`):

Only return lots with a total retail/MSRP value at or above this amount. Leave blank for no minimum.

## `maxRetailPrice` (type: `integer`):

Only return lots with a total retail/MSRP value at or below this amount. Leave blank for no maximum.

## `sortBy` (type: `string`):

Field to sort auction lots by.

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

Ascending or descending. With 'Closing Time' + ascending you get lots closing soonest first.

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

Apify proxy settings. B-Stock's search API has no anti-bot, so the default datacenter proxy is plenty.

## Actor input object example

```json
{
  "search": "Amazon",
  "maxResults": 50,
  "category": "",
  "inventoryType": "",
  "sortBy": "endTime",
  "sortOrder": "asc",
  "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 = {
    "search": "Amazon"
};

// Run the Actor and wait for it to finish
const run = await client.actor("lulzasaur/bstock-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 = { "search": "Amazon" }

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

```

## MCP server setup

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