# BizQuest Scraper (`crawlerbros/bizquest-scraper`) Actor

Scrape business-for-sale listings from BizQuest.com. Supports URL-based input and filter-based input (keyword, location). Optional per-listing detail enrichment.

- **URL**: https://apify.com/crawlerbros/bizquest-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** E-commerce, Other, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 20 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.00 / 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## BizQuest Scraper

Scrape business-for-sale listings from [BizQuest](https://www.bizquest.com) — no account or subscription required. Supports filters for keyword and US state, plus direct URL pasting for any custom filter combination. Access 50+ listings per run, with optional enrichment of each listing's detail page.

### What This Scraper Does

This actor fetches BizQuest listing pages and extracts publicly visible data: listing title, asking price, cash flow, gross revenue, city, state, industry, listing ID, images, and more. With **Fetch Listing Details** enabled, it retrieves additional fields from each listing's detail page (full description, financial breakdowns, broker info, photo gallery).

### Input

Two input modes — use either or both:

#### Mode 1: Paste BizQuest URLs (Start URLs)

Apply filters on BizQuest.com (state, city, industry, price range, etc.), then copy the URL from your browser and paste it as a Start URL.

**Examples:**
- All California businesses: `https://www.bizquest.com/businesses-for-sale-in-california-ca/`
- Miami businesses: `https://www.bizquest.com/businesses-for-sale-in-miami-fl/`
- Restaurants nationwide: `https://www.bizquest.com/restaurants-for-sale/`
- California restaurants: `https://www.bizquest.com/restaurants-for-sale-in-california-ca/`
- A single listing: `https://www.bizquest.com/business-for-sale/thriving-turnkey-daycare-center/BW2417284/`

#### Mode 2: Use Filter Fields

Provide any combination of:
- **Keyword** — `"pizza"`, `"franchise"`, `"daycare"`
- **Location** — US state full name (`"California"`) or 2-letter abbreviation (`"CA"`)

For city/county/industry/price filters, use Mode 1.

#### Input Fields

| Field | Type | Description |
|---|---|---|
| **Start URLs** | List of strings | BizQuest search or listing URLs. Default: `["https://www.bizquest.com/businesses-for-sale/"]`. |
| **Keyword** | String (optional) | Keyword search term. |
| **Location** | String (optional) | US state name or 2-letter abbreviation. |
| **Fetch Listing Details** | Boolean | If `true`, fetches each listing's detail page for richer output. Doubles HTTP requests. Default: `false`. |
| **Max Items** | Integer | Maximum listings to return (1–10,000). Default: 50. |
| **Proxy Configuration** | Proxy object | Apify proxy. **Residential proxy required for reliable detail-page fetching** — BizQuest uses Akamai bot protection that blocks datacenter IPs. |

### Output

Each record represents one business listing. Fields marked `?` are optional and appear only when BizQuest publishes the data.

#### Core Fields (always when available)

| Field | Type | Description |
|---|---|---|
| `url` | string | Canonical detail URL |
| `listingId` | string | BizQuest ID (e.g. `"BW2398228"`) |
| `title` | string | Listing title |
| `priceLabel` | string? | Formatted price as shown (e.g. `"$485,000"` or `"Contact for Price"`) |
| `askingPrice` | integer? | Price in USD (omitted for "Undisclosed") |
| `cashFlowLabel` | string? | Formatted cash flow / EBITDA label |
| `cashFlow` | integer? | Cash flow in USD (omitted when "Sign In to View" or undisclosed) |
| `location` | string? | Full location label (e.g. `"Miami, FL"`) |
| `city` | string? | City |
| `state` | string? | 2-letter US state abbreviation |
| `shortDescription` | string? | Teaser text from listing card |
| `thumbnail` | string? | Primary image URL |
| `scrapedAt` | string | ISO 8601 UTC timestamp |

#### Additional Fields (when **Fetch Listing Details** is enabled)

| Field | Type | Description |
|---|---|---|
| `description` | string? | Full listing description |
| `reasonForSelling` | string? | |
| `grossRevenue` | integer? | USD |
| `ebitda` | integer? | USD |
| `inventoryValue` | integer? | USD |
| `ffeValue` | integer? | Furniture, fixtures & equipment |
| `realEstateValue` | integer? | USD |
| `monthlyRent` | integer? | USD |
| `yearEstablished` | integer? | |
| `employees` | string? | |
| `sellerFinancing` | boolean? | |
| `buildingSqft` | integer? | |
| `lotSize` | string? | |
| `franchiseBrand` | string? | |
| `trainingOffered` | string? | |
| `support` | string? | |
| `brokerName` | string? | |
| `brokerCompany` | string? | |
| `brokerPhone` | string? | Only when publicly visible |
| `photos` | string[]? | Array of image URLs |
| `listingType` | string? | `"business"` or `"franchise"` |

Fields are included only when BizQuest returns data — no nulls in the output.

#### Error Records

If a URL can't be fetched/parsed, the record contains:

| Field | Description |
|---|---|
| `inputUrl` | The attempted URL |
| `error` | Human-readable error message |
| `scrapedAt` | Timestamp |

### Frequently Asked Questions

**Do I need a BizQuest account?**
No. The scraper only uses publicly visible listing data.

**Is a proxy required?**
Strongly recommended. BizQuest uses Akamai bot protection that blocks Apify datacenter IPs more aggressively than residential IPs. The actor defaults to Apify Residential proxy — no extra configuration needed. Local testing may work without proxy depending on your IP, but detail-page fetches are especially prone to blocks.

**Why are some prices "Undisclosed" or "Sign In to View"?**
Sellers often choose not to publish asking price, cash flow, or EBITDA publicly — or BizQuest requires an account to see them. The scraper preserves BizQuest's label in `priceLabel` / `cashFlowLabel` and omits the numeric field when the value isn't a real number.

**How many listings can I get?**
BizQuest shows ~50 listings per search page. The scraper paginates automatically via BizQuest's `/page-N/` URLs. Typical state-level searches return 100–2,000+ listings. Use `maxItems` to cap.

**What's the difference between Start URLs and Filters?**
- **Start URLs** — paste any BizQuest URL (search or detail). Supports every filter combination BizQuest offers.
- **Filters** — convenience fields for keyword + US state. Builds the search URL internally.
- Both can be combined in one run.

**Can I filter by city or industry?**
Yes, but via Start URLs. On BizQuest.com, navigate to your desired city/industry/combination, copy the URL, paste it as a Start URL. E.g. `https://www.bizquest.com/restaurants-for-sale-in-california-ca/`.

**Can I filter by price or cash flow range?**
Apply the filters on BizQuest.com's search UI, then paste the resulting URL into Start URLs.

**How fresh is the data?**
Near real-time. BizQuest publishes listings as sellers submit them.

**Difference vs. BizBuySell actor?**
Different source websites with partially overlapping listing pools. Some brokers post to both; many list on only one. Run both scrapers if you need comprehensive coverage.

**Why is broker phone sometimes missing?**
BizQuest brokers often hide their phone behind a "Contact Broker" form. The scraper only extracts publicly visible contact info.

**Can I run this on a schedule?**
Yes. Set up an Apify Schedule (daily/hourly) and dedupe downstream by `listingId`.

# Actor input Schema

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

BizQuest search result URLs (e.g. https://www.bizquest.com/businesses-for-sale-in-california-ca/) or individual listing URLs. Apply filters on BizQuest.com first, then paste the URL here.
## `keyword` (type: `string`):

Optional keyword filter (e.g. 'pizza'). NOTE: BizQuest's own search often ignores the ?q= parameter on the default browse URL — results may be the same regardless. For reliable keyword search, use a BizQuest industry URL in Start URLs (e.g. '/restaurants-for-sale/') which filters by category.
## `location` (type: `string`):

Optional US state filter — full name ('California') or 2-letter abbreviation ('CA'). For city/county filters, paste the URL from BizQuest directly into Start URLs.
## `fetchDetails` (type: `boolean`):

EXPERIMENTAL — attempts to fetch each listing's detail page for additional fields (description, broker info, photos, financials). BizQuest's Akamai bot protection currently blocks most detail-page fetches even from residential proxies; when a fetch fails the record is emitted with card-level data only. Doubles HTTP request count. Default: false.
## `maxItems` (type: `integer`):

Maximum number of listings to return (1–10,000).
## `proxyConfiguration` (type: `object`):

Proxy configuration. BizQuest uses Akamai bot protection. Residential proxy is strongly recommended — detail pages often fail from datacenter IPs.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.bizquest.com/businesses-for-sale/"
  ],
  "fetchDetails": false,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
````

# 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": [
        "https://www.bizquest.com/businesses-for-sale/"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/bizquest-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": ["https://www.bizquest.com/businesses-for-sale/"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/bizquest-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    "https://www.bizquest.com/businesses-for-sale/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call crawlerbros/bizquest-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=crawlerbros/bizquest-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "BizQuest Scraper",
        "description": "Scrape business-for-sale listings from BizQuest.com. Supports URL-based input and filter-based input (keyword, location). Optional per-listing detail enrichment.",
        "version": "0.0",
        "x-build-id": "hSDdnVwb2aoWgU2Va"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawlerbros~bizquest-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawlerbros-bizquest-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/crawlerbros~bizquest-scraper/runs": {
            "post": {
                "operationId": "runs-sync-crawlerbros-bizquest-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/crawlerbros~bizquest-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-crawlerbros-bizquest-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "BizQuest search result URLs (e.g. https://www.bizquest.com/businesses-for-sale-in-california-ca/) or individual listing URLs. Apply filters on BizQuest.com first, then paste the URL here.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "keyword": {
                        "title": "Keyword (optional, limited)",
                        "type": "string",
                        "description": "Optional keyword filter (e.g. 'pizza'). NOTE: BizQuest's own search often ignores the ?q= parameter on the default browse URL — results may be the same regardless. For reliable keyword search, use a BizQuest industry URL in Start URLs (e.g. '/restaurants-for-sale/') which filters by category."
                    },
                    "location": {
                        "title": "Location (optional)",
                        "type": "string",
                        "description": "Optional US state filter — full name ('California') or 2-letter abbreviation ('CA'). For city/county filters, paste the URL from BizQuest directly into Start URLs."
                    },
                    "fetchDetails": {
                        "title": "Fetch Listing Details (experimental)",
                        "type": "boolean",
                        "description": "EXPERIMENTAL — attempts to fetch each listing's detail page for additional fields (description, broker info, photos, financials). BizQuest's Akamai bot protection currently blocks most detail-page fetches even from residential proxies; when a fetch fails the record is emitted with card-level data only. Doubles HTTP request count. Default: false.",
                        "default": false
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of listings to return (1–10,000).",
                        "default": 50
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy configuration. BizQuest uses Akamai bot protection. Residential proxy is strongly recommended — detail pages often fail from datacenter IPs."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
