# BBB Scraper — Better Business Bureau Leads, Owners & Phones (`foxlabs/bbb-scraper`) Actor

Extract US & Canada B2B business leads from Better Business Bureau (BBB.org) including phone numbers, A+ accreditation ratings, addresses, owner/principal names, corporate websites, complaint history, and public emails.

- **URL**: https://apify.com/foxlabs/bbb-scraper.md
- **Developed by:** [Berkan Kaplan](https://apify.com/foxlabs) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 bbb business directory leads

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

![BBB Better Business Bureau Scraper Banner](https://data.foxlabs.com.tr/img/bbb-scraper-banner.svg)

## BBB Scraper — Better Business Bureau US & Canada Leads, Owners/Principals, Phones & Emails

Extract verified local and mid-market business leads across the **United States and Canada** from the **Better Business Bureau (`BBB.org`)** — including **direct business phone numbers, BBB letter ratings (`A+` to `F`), active BBB Accreditation status, street addresses & GPS coordinates, company owners/principals (`Owner`, `President`, `Managing Member`), verified corporate websites, legal entity types (`LLC`/`Corp`), complaint history, and public website emails**.

> **AI Agent Quick-Start:** Start with: `{"country":"USA","queries":["roofing"],"locations":["Dallas, TX"],"maxBusinessesPerSearch":30}`

***

### 1. What Does BBB Scraper Do?

With over `6,500,000+` vetted company profiles across North America, the Better Business Bureau is one of the highest-signal B2B directories because **BBB profiles list actual company owners/principals (`Owner/Manager`, `President`, `CEO`) alongside verified phone numbers and accreditation dates** — data rarely exposed on Google Maps or Yelp.

- **2-in-1 Search + Owner/Website Enrichment:** While competing Store tools split BBB search and BBB details into two separate actors, **`foxlabs/bbb-scraper`** combines fast directory search (`$2.00/1K`) and deep owner/website/email enrichment (`$6.00/1K`) in a single workflow.
- **Direct Phones & Accreditation on Fast Search:** Even with `includeProfileDetails: false`, every `business` record already includes `phone` / `phones[]`, `bbbRating`, `ratingScore`, `isAccredited`, `address`, `city`, `state`, `postalCode`, `latitude`, `longitude`, and `categories[]`.
- **Decision-Maker Names + Corporate Website Emails (`includeProfileDetails: true`):** Extracts `primaryContactName`, `primaryContactTitle`, `principals[]`, `websiteUrl`, `domain`, `entityType`, `yearsInBusiness`, `complaintsTotal`, and scans the company's website for `emails[]`, LinkedIn, Facebook, Instagram, and X/Twitter.

***

### 2. Why Choose `foxlabs/bbb-scraper`?

| Capability | Typical BBB Scrapers | `foxlabs/bbb-scraper` |
| :--- | :--- | :--- |
| **Search + Detail Workflow** | Split across 2 separate actors | **Unified Search + Profile + Website Contact Enrichment** |
| **Decision-Maker / Owner Names** | Often omitted | **Structured `primaryContactName`, `primaryContactTitle` & `principals[]`** |
| **Website Emails & Socials** | BBB profile fields only | **Optional corporate website scan (`emails[]`, LinkedIn, FB, IG, X)** |
| **Accreditation & Grade Filters** | Post-filtering charges everything | **Pre-charge `accreditedOnly` & `minRating` (`A+`, `A`, `B+`...) at `$0` waste** |
| **US + Canada Support** | US only | **Both `USA` and `CAN` directories supported** |

***

### 3. Who Uses This Data?

1. **B2B Agencies & SaaS Sales Teams:** Target high-intent home-services, legal, medical, insurance, HVAC, solar, and construction SMBs (`accreditedOnly: true` identifies businesses actively investing in marketing & trust badges) with the **actual owner's name** for personalized cold outreach.
2. **Commercial Lending, Insurance & Payroll Brokers:** Segment established LLCs and Corporations by `yearsInBusiness`, `entityType`, `accreditedSinceDate`, and clean complaint records (`complaintsTotal === 0`).
3. **Vendor KYB & Compliance Teams:** Screen contractors and suppliers against BBB accreditation, rating scores, out-of-business flags, and 12-month / 3-year closed complaint counts.
4. **Local Lead Marketplaces:** Maintain verified North American contractor directories via scheduled runs or real-time Standby HTTP calls.

***

### 4. Transparent Pay-Per-Event Pricing

Billing is tied strictly to delivered business records via `Actor.getChargingManager()` — **no monthly rental, no actor-start fee, and $0 charge on filtered-out or diagnostic `status` rows**:

| Event Name | Price | Per 1,000 Records | When Charged |
| :--- | :---: | :---: | :--- |
| `business` | **$0.0020** | **$2.00 / 1K** | Each unique business extracted in fast search mode (`includeProfileDetails: false`) |
| `business-detail` | **$0.0060** | **$6.00 / 1K** | Each unique business enriched with owners/principals, website, entity dates, complaints & website contacts |
| `status` | **$0.0000** | **Free** | Diagnostic note emitted only on empty input or zero matches |

*Each business emits either `business` OR `business-detail` — never both on the same record.*

***

### 5. Input Parameters

| Parameter | Type | Default | Description |
| :--- | :---: | :---: | :--- |
| `country` | `string` | `"USA"` | `"USA"` (United States) or `"CAN"` (Canada). |
| `queries` | `string[]` | `["roofing"]` | Business categories, trades, or company names. |
| `locations` | `string[]` | `["Dallas, TX"]` | Cities/states or ZIP/postal codes paired with `queries`. |
| `profileUrls` | `string[]` | `[]` | Direct `bbb.org/.../profile/...` URLs to enrich. |
| `accreditedOnly` | `boolean` | `false` | Retain active BBB Accredited Members (`isAccredited: true`) only. |
| `minRating` | `string` | `"ANY"` | Minimum BBB letter grade (`"ANY"`, `"A+"`, `"A"`, `"A-"`, `"B+"`, `"B"`, `"B-"`, `"C"`). |
| `includeProfileDetails` | `boolean` | `false` | Visit BBB profile pages for owners/principals, corporate website, entity type & complaints (`business-detail`). |
| `extractWebsiteContacts` | `boolean` | `true` | When `includeProfileDetails: true` (or `profileUrls` used), scan corporate website for emails & socials. |
| `maxBusinessesPerSearch` | `integer` | `30` | Max unique businesses per `query + location` pair (`1–250`). |
| `maxTotalBusinesses` | `integer` | `100` | Global run cap on billable business records (`1–25000`). |
| `proxyConfiguration` | `object` | `{"useApifyProxy":true}` | Managed automatically out of the box. |

***

### 6. Quick-Start Examples

#### Fast Local SMB Phone & Accreditation List (`$2.00 / 1K`)

```json
{
  "country": "USA",
  "queries": ["roofing", "hvac", "plumbing"],
  "locations": ["Dallas, TX", "Austin, TX", "Houston, TX"],
  "accreditedOnly": true,
  "minRating": "A-",
  "maxBusinessesPerSearch": 45,
  "maxTotalBusinesses": 150
}
```

#### Deep Owner Name + Website + Email Enrichment (`$6.00 / 1K`)

```json
{
  "country": "USA",
  "queries": ["solar installation"],
  "locations": ["Phoenix, AZ"],
  "accreditedOnly": true,
  "includeProfileDetails": true,
  "extractWebsiteContacts": true,
  "maxBusinessesPerSearch": 15
}
```

***

### 7. Sample Output Record

```json
{
  "rowType": "business-detail",
  "rowKey": "bbb:0875-91349575",
  "bbbUniqueId": "0875_91349575_183511",
  "bbbId": "0875",
  "businessId": "91349575",
  "bbbOfficeName": "BBB serving North Central Texas",
  "businessName": "Home Integrity Solutions LLC",
  "bbbRating": "A",
  "ratingScore": 95.33,
  "isAccredited": true,
  "phone": "(214) 498-6458",
  "phones": ["(214) 498-6458"],
  "city": "Dallas",
  "state": "TX",
  "postalCode": "75205-5565",
  "country": "USA",
  "latitude": 32.825031,
  "longitude": -96.788742,
  "primaryCategory": "Roofing Contractors",
  "categories": ["Roofing Contractors", "Home Renovation", "Roof Inspection", "Roof Replacement"],
  "websiteUrl": "https://www.homeintegritysolutions.com/",
  "domain": "homeintegritysolutions.com",
  "primaryContactName": "Mr. Andrew Lewis",
  "primaryContactTitle": "Owner/Manager",
  "principals": [
    {
      "name": "Mr. Andrew Lewis",
      "title": "Owner/Manager",
      "isPrincipal": true,
      "isManagement": true,
      "isPrimary": true
    }
  ],
  "entityType": "Limited Liability Company (LLC)",
  "yearsInBusiness": 2,
  "businessStartedDate": "2024-06-25T00:00:00",
  "accreditedSinceDate": "2025-06-16T00:00:00",
  "customerReviewsCount": 1,
  "averageReviewRating": 5,
  "complaintsTotal": 0,
  "complaintsClosedLast12Months": 0,
  "emails": ["info@homeintegritysolutions.com"],
  "profileUrl": "https://www.bbb.org/us/tx/dallas/profile/roofing-contractors/home-integrity-solutions-llc-0875-91349575",
  "scrapedAt": "2026-11-23T00:00:00.000Z"
}
```

***

### 8. Output Schema Reference

- **Core Identity & Trust:** `rowType` (`business` | `business-detail` | `status`), `rowKey` (`bbb:<bbbId>-<businessId>`), `bbbUniqueId`, `bbbId`, `businessId`, `bbbOfficeName`, `businessName`, `bbbRating`, `ratingScore`, `isAccredited`, `isOutOfBusiness`, `profileUrl`, `logoUrl`.
- **Location \&Phones:** `phone`, `phones[]`, `address`, `city`, `state`, `postalCode`, `country`, `latitude`, `longitude`, `primaryCategory`, `categories[]`, `categoriesText`, `serviceArea`.
- **Owners, Licenses, Hours & Entity (`business-detail`):** `alternateNames[]`, `websiteUrl`, `domain`, `additionalWebsites[]`, `primaryContactName`, `primaryContactTitle`, `principals[]`, `faxNumbers[]`, `licenses[]` (`{licenseNumber, agency, issuedDate, expirationDate, status}`), `operatingHours` (`monday`..`sunday`), `isHeadquarters`, `locationsCount`, `servingAreas[]`, `entityType`, `organizationDescription`, `paymentMethods[]`, `ratingReasons[]`, `yearsInBusiness`, `numEmployees`, `businessStartedDate`, `incorporatedDate`, `bbbFileOpenedDate`, `accreditedSinceDate`, `accreditationRevokedDate`.
- **Reviews, Complaints & Contacts (`business-detail`):** `customerReviewsCount`, `averageReviewRating`, `complaintsTotal`, `complaintsClosedLast12Months`, `complaintsClosedLast3Years`, `latestReviews[]`, `emails[]`, `linkedInUrl`, `facebookUrl`, `instagramUrl`, `twitterUrl`.

***

### 9. API & SDK Integration

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/foxlabs~bbb-scraper/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"country":"USA","queries":["roofing"],"locations":["Dallas, TX"],"maxBusinessesPerSearch":30}'
```

#### JavaScript (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('foxlabs/bbb-scraper').call({"country":"USA","queries":["roofing"],"locations":["Dallas, TX"],"maxBusinessesPerSearch":30});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("foxlabs/bbb-scraper").call(run_input={"country":"USA","queries":["roofing"],"locations":["Dallas, TX"],"maxBusinessesPerSearch":30})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(len(items))
```

***

### 10. Real-Time Standby HTTP Mode

When executed in Apify Standby mode, the container exposes synchronous HTTP endpoints:

- `GET /` — Readiness and health probe.
- `POST /scrape` — Accepts the same JSON input payload and returns `{"ok": true, "count": N, "items": [...]}` synchronously.

***

### 11. Deduplication & Crash Recovery

Multi-category contractors (`roofing`, `siding`, `gutters`) often rank under multiple queries in the same metro area. Every company is keyed by `rowKey: "bbb:<bbbId>-<businessId>"` and deduplicated across queries and restarts via `readAlreadyDelivered()`.

***

### 12. Anti-Bleed Filter Protection

Pre-charge `accreditedOnly` and `minRating` filters run before `pushRow` (and before firing any profile detail requests!), halting pagination after `2` consecutive zero-match pages.

***

### 13. Combining With Other foXLabs Actors

Pair `bbb-scraper` with:

- **`foxlabs/yelp-business-scraper`** & **`foxlabs/yellowpages-scraper`** for complete US local SMB coverage.
- **`foxlabs/us-business-license-verification`** & **`foxlabs/open-corporates-intelligence`** for statutory contractor license and corporate filing verification.

***

### 14. Performance & Memory Footprint

Pure Node.js 22 `undici` HTTP client + balanced state JSON extraction (zero headless browser overhead), running inside **`256 MB` RAM**.

***

### 15. Handling Empty Results & Diagnostics (`SOURCE_REPORT`)

- Empty inputs or strict filter combinations that match zero businesses finish cleanly (`SUCCEEDED`) with one free `rowType: "status"` explanation row.
- Full search/profile/website request telemetry is saved to `SOURCE_REPORT` in the default Key-Value Store.

***

### 16. Known Limitations

- BBB's search API returns up to `15` pages (`~225` businesses) per single `query + location` pair. To collect thousands of leads across a state, pass multiple cities or ZIP codes in `locations`.
- Corporate websites are only available when `includeProfileDetails: true` (or `profileUrls` is used), because BBB omits external website URLs from search result cards.

***

### 17. Frequently Asked Questions (FAQ)

#### 1. Does fast search (`$2.00/1K`) already include business phone numbers and ratings?

Yes! Fast search (`includeProfileDetails: false`) returns `phone` / `phones[]`, `bbbRating` (`A+`..`F`), `ratingScore`, `isAccredited`, full street address, city/state/ZIP, GPS coordinates, and categories at ultra-fast API speed.

#### 2. How do I get the business owner's name, corporate website, and email?

Enable `includeProfileDetails: true` (`business-detail`, `$6.00/1K`). The actor visits each matched BBB profile to extract `primaryContactName`, `primaryContactTitle`, `principals[]`, `websiteUrl`, `domain`, `entityType`, `yearsInBusiness`, and complaint counts, and when `extractWebsiteContacts: true` is enabled, scans the company's website for `emails[]` and social links.

#### 3. Why filter for `accreditedOnly: true` in B2B cold outreach?

BBB Accredited Businesses pay annual BBB membership dues to maintain trust badges, making them proven buyers of B2B marketing, reputation, insurance, and software services.

#### 4. Am I charged for non-accredited businesses when `accreditedOnly: true` is set?

No. Non-matching records are skipped before `pushRow` (and before profile enrichment), costing `$0.00`.

#### 5. Does BBB Scraper support Canadian businesses?

Yes. Set `country: "CAN"` and pass Canadian cities or provinces in `locations` (e.g., `"Toronto, ON"`, `"Vancouver, BC"`).

#### 6. Can I enrich a list of known BBB profile URLs directly?

Yes. Pass full `https://www.bbb.org/.../profile/...` URLs in `profileUrls`.

#### 7. Do I need custom residential proxies or cookies?

No. Search requests run over fast Datacenter proxies and profile requests automatically route through managed anti-bot proxies out of the box.

#### 8. How do I scale beyond 225 results in a large metro area?

Pass granular suburbs or ZIP codes in `locations` (for example `["Dallas, TX", "Plano, TX", "Frisco, TX", "Irving, TX", "Arlington, TX"]`). `rowKey` deduplication ensures overlapping businesses are never billed twice.

#### 9. What does `averageReviewRating: null` mean?

When a business has `0` customer reviews on BBB, `averageReviewRating` is emitted as `null` rather than a misleading `0` so downstream averages are never distorted.

#### 10. How does `maxTotalChargeUsd` spending cap work?

`Actor.getChargingManager()` is checked prior to every search page and every 3-item profile enrichment batch, stopping cleanly when your budget limit is reached.

***

### 18. Support & Feedback

Open an issue on the Actor page in Apify Console with your Run ID or `SOURCE_REPORT` summary for rapid assistance.

***

### 19. Legal & Responsible Use

This actor extracts publicly available business accreditation and directory records for B2B market research, vendor verification, and commercial outreach. Users are responsible for complying with applicable outreach regulations.

# Changelog

This Actor's version history is a separate document: https://apify.com/foxlabs/bbb-scraper/changelog.md

# Actor input Schema

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

Target BBB country directory.

## `queries` (type: `array`):

Business types, categories, or company names to search (e.g. 'roofing', 'plumber', 'hvac', 'solar', 'personal injury lawyer').

## `locations` (type: `array`):

Target locations paired with queries (e.g. 'Dallas, TX', 'Miami, FL', 'Toronto, ON', '90210'). Leave empty for nationwide search.

## `profileUrls` (type: `array`):

Specific BBB.org business profile URLs to enrich directly (e.g. 'https://www.bbb.org/us/tx/dallas/profile/...').

## `accreditedOnly` (type: `boolean`):

Keep only active BBB Accredited Members (isAccredited: true). Filtered-out rows cost $0.

## `minRating` (type: `string`):

Optional minimum BBB letter grade threshold.

## `includeProfileDetails` (type: `boolean`):

Visits each matched BBB profile page to extract owner/principal names & titles, verified corporate website/domain, entity type (LLC/Corp), years in business, dates, and complaint counts ('business-detail' event).

## `extractWebsiteContacts` (type: `boolean`):

When enabled alongside includeProfileDetails (or profileUrls), scans the company's verified website over free Datacenter proxies for public emails, LinkedIn, Facebook, Instagram, and X/Twitter.

## `maxBusinessesPerSearch` (type: `integer`):

Maximum unique businesses extracted per query/location combination (~15 per search page, up to 225 per single query).

## `maxTotalBusinesses` (type: `integer`):

Global ceiling on total billable business records across the run.

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

Apify Proxy configuration. Automatically uses fast Datacenter proxies for search and smart routing for profile pages.

## Actor input object example

```json
{
  "country": "USA",
  "queries": [
    "roofing"
  ],
  "locations": [
    "Dallas, TX"
  ],
  "accreditedOnly": false,
  "minRating": "ANY",
  "includeProfileDetails": false,
  "extractWebsiteContacts": true,
  "maxBusinessesPerSearch": 30,
  "maxTotalBusinesses": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `businesses` (type: `string`):

No description

## `sourceReport` (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 = {
    "country": "USA",
    "queries": [
        "roofing"
    ],
    "locations": [
        "Dallas, TX"
    ],
    "maxBusinessesPerSearch": 30,
    "maxTotalBusinesses": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("foxlabs/bbb-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 = {
    "country": "USA",
    "queries": ["roofing"],
    "locations": ["Dallas, TX"],
    "maxBusinessesPerSearch": 30,
    "maxTotalBusinesses": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("foxlabs/bbb-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 '{
  "country": "USA",
  "queries": [
    "roofing"
  ],
  "locations": [
    "Dallas, TX"
  ],
  "maxBusinessesPerSearch": 30,
  "maxTotalBusinesses": 100
}' |
apify call foxlabs/bbb-scraper --silent --output-dataset

```

## MCP server setup

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