# BBB Scraper — B2B Business Leads, Phones & Ratings (`logiover/bbb-scraper`) Actor

Extract Better Business Bureau (bbb.org) business directory listings across the US & Canada. Get unmasked phone numbers, addresses, BBB ratings, accreditation status, categories, coordinates, and profile URLs for B2B lead generation.

- **URL**: https://apify.com/logiover/bbb-scraper.md
- **Developed by:** [Logiover](https://apify.com/logiover) (community)
- **Categories:** Lead generation
- **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 results

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/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 Scraper — B2B Business Leads, Phones & Ratings

> **Disclaimer:** This Actor is an independent data extraction tool and is not affiliated with, endorsed by, or sponsored by the Better Business Bureau (BBB), the International Association of Better Business Bureaus, or its local bureaus. All trademarks belong to their respective owners.

**BBB Scraper** (`logiover/bbb-scraper`) is a high-throughput B2B directory extraction engine and **BBB API alternative** built to **scrape bbb.org without API key** credentials across both the United States (`USA`) and Canada (`CAN`). Whether you are building targeted outbound sales lists, underwriting small-business credit risk, enriching CRM accounts with trust signals, or verifying contractor accreditation across North American metro markets, this **bbb scraper** delivers clean, deduplicated business records with **unmasked phone numbers** (`99.5%` measured fill rate), street addresses, postal codes, BBB letter ratings (`A+` through `F` plus `NR`), numeric rating scores, accreditation flags, full category hierarchies, geographic coordinates, and local bureau metadata.

Designed for sales operations teams, RevOps engineers, lead generation agencies, and autonomous workflows, the Actor lets you **export BBB to CSV, Excel, JSON**, Parquet, or push directly into HubSpot, Salesforce, Pipedrive, Clay, Snowflake, BigQuery, n8n, Make, and Zapier. It is **AI agent & MCP ready** out of the box via the official Apify MCP Server (`https://mcp.apify.com?tools=logiover/bbb-scraper`), features deterministic canonical deduplication (`<bbbId>-<businessId>`), supports one-click nationwide metropolitan expansion across 80+ top US and Canadian cities (`expandLocations: true`), and enforces strict Pay-Per-Event (`apify-default-dataset-item`) budget protection so runs stop cleanly whenever your configured maximum cost per run is reached.

***

### At a Glance

| Capability | Specification |
| :--- | :--- |
| **Target Platform** | Better Business Bureau (`https://www.bbb.org`) |
| **Geographic Coverage** | United States (`USA` — all 50 states + DC) & Canada (`CAN` — all provinces & territories) |
| **Primary Extraction Inputs** | Keywords / Categories (`queries`), Cities / States / ZIPs (`locations`), Direct Search URLs (`startUrls`) |
| **Nationwide Bulk Mode** | Built-in `expandLocations: true` sweeps 65 top US metros + 15 top Canadian metros automatically |
| **Deduplication Key** | Canonical bureau + business ID (`id`, e.g., `"0825-1000223431"`) — **0% duplicate rows** |
| **Contact Data Policy** | **100% Unmasked** — primary `phone` + full `phones` array (`99.5%` measured fill across 11,500 leads) |
| **Output Fields** | **28 structured columns** per business record (ratings, accreditation, address, geo coordinates, categories, URLs) |
| **Measured Prefill Speed** | **30 unique leads in 2.4 seconds** (verified Apify run `nWyHxMLr9cZCUfj0J` on `2026-11-17`) |
| **Measured Bulk Scale** | **11,500 unique deduplicated leads in 172.0 seconds** across 1,034 pages (verified run `HG0td6hBSnNfam6Kc` on `2026-11-17`) |
| **Pricing Model** | Pay Per Event (`$3.00 / 1,000 results` on FREE down to `$2.00 / 1,000 results` on GOLD–DIAMOND) |
| **Export Formats** | JSON, JSONL, CSV, Excel (`.xlsx`), HTML Table, XML, RSS, API & MCP |
| **AI & Automation** | Official Apify MCP Server, LangChain, CrewAI, OpenAI Agents SDK, Claude Desktop, Cursor, n8n, Make, Zapier |

***

### Key Features & Extraction Modes

#### 1. Multi-Query × Multi-Location Matrix Extraction

Combine any number of industry keywords or BBB trade categories (`queries`) with any list of cities, states, provinces, ZIP codes, or Canadian postal codes (`locations`). Every `(query, location)` pair automatically paginates through all available directory pages and merges results into one clean, globally deduplicated dataset.

#### 2. One-Toggle Nationwide Metro Expansion (`expandLocations: true`)

Better Business Bureau caps any single search query view at 15 pages (`225` businesses). When you need **5,000 to 50,000+ unique B2B leads** across an entire vertical—such as roofing contractors, HVAC installers, commercial plumbers, auto body shops, or CPAs—simply set `"expandLocations": true`. The Actor automatically expands your keywords across **65 major US metropolitan areas** (`USA`), **15 major Canadian metropolitan areas** (`CAN`), or **all 80 North American metros** (`country: "ALL"`), plus automatic secondary sort-order slicing (`Relevance`, `AToZ`, `ZToA`, `Rating`) whenever `maxResults` exceeds single-slice depth.

#### 3. Unmasked B2B Phone Numbers & Multi-Line Arrays

Every phone number published in the Better Business Bureau directory is extracted unmasked and normalized:

- `phone`: Primary business telephone number ready for dialers and CRM phone fields (e.g., `"(512) 760-7790"`).
- `phones`: Complete array of all toll-free and local business lines registered on the BBB profile (e.g., `["(512) 330-0796", "(844) 468-4743"]`).

#### 4. Trust, Rating & Accreditation Signals

Unlike generic yellow-page directories, BBB records carry high-signal trust metadata ideal for lead scoring and vendor qualification:

- `bbbRating`: Official BBB letter grade (`A+`, `A`, `A-`, `B+`, `B`, `B-`, `C+`, `C`, `C-`, `D+`, `D`, `D-`, `F`, or `NR` for Not Rated).
- `ratingScore`: Numeric composite trust score (`0` to `100`, e.g., `99.18`).
- `isAccredited`: Boolean indicator (`true` / `false`) showing active paid BBB Accreditation (`bbbMember`).
- `quoteRequestEnabled`: Boolean showing whether the business actively accepts BBB "Request a Quote" inbound leads (`raqEnabled`).

#### 5. Built-In Qualification Filters Before You Pay

Because Pay-Per-Event billing only charges for items written to the default dataset, built-in server-side filters let you restrict dataset output to your exact Ideal Customer Profile (ICP) **before** items are saved:

- `accreditedOnly: true` — Only emit active BBB Accredited Businesses.
- `minRating: "A"` — Only emit businesses meeting or exceeding your minimum BBB letter grade threshold (`A+` down to `C-`).
- `requirePhone: true` — Skip any listing that lacks a published telephone number.

#### 6. Direct BBB Search URL Ingestion (`startUrls`)

Already crafted a filtered search on `https://www.bbb.org/search?...` in your browser? Paste one or more `bbb.org/search` URLs into `startUrls` and the Actor automatically translates them into paginated structured endpoints while preserving your query parameters.

***

### 12 High-ROI B2B, Sales, AI & Analytics Use Cases

1. **Home Services & Commercial Trades Outbound Prospecting:** Build hyper-targeted cold-calling and SMS/email enrichment lists of licensed plumbers, roofers, electricians, solar installers, pest control operators, and general contractors across US and Canadian metros.
2. **SaaS Vertical Market Sizing & Territory Assignment:** Quantify active, accredited SMBs per metro area and assign balanced regional territories to SDRs in vertical SaaS (field service management, scheduling software, VoIP, fleet telematics, construction ERP).
3. **Reputation Management & Agency Lead Generation:** Filter for established local businesses that are **not** yet BBB Accredited (`isAccredited: false`) or carry mid-tier ratings (`B-` to `C-`) to pitch review management, local SEO, and customer experience consulting.
4. **B2B Credit Underwriting & KYB (Know Your Business) Verification:** Cross-check merchant applications against active BBB bureau records, accreditation status, rating scores, physical street addresses, and multi-county service areas.
5. **Commercial Insurance & Surety Bond Prospecting:** Identify newly listed or expanding specialty contractors (`Commercial Electrician`, `Retaining Wall Contractors`, `Asbestos Abatement`) operating across multiple counties (`serviceAreas`).
6. **Franchise & Multi-Location Competitive Mapping:** Plot `latitude` and `longitude` coordinates plus `serviceAreas` arrays across states and provinces to identify underserved metro pockets for new franchise openings.
7. **M\&A Roll-Up & Private Equity Deal Sourcing:** Discover long-standing, `A+` rated local businesses in fragmented service industries (HVAC, landscaping, fire protection, dental practices, accounting firms) for SMB acquisition pipelines.
8. **CRM Data Hygiene & Phone Number Enrichment:** Enrich stale HubSpot or Salesforce company records with verified local and toll-free phone numbers, standardized 9-digit ZIP+4 postal codes (`78759-7247`), and category taxonomies.
9. **Wholesale & Industrial Distributor Channel Expansion:** Locate regional installers, dealers, and repair centers (`Tankless Water Heaters`, `Auto Transmission Repair`, `Commercial Refrigeration`) to onboard as authorized wholesale buyers.
10. **Canadian B2B Market Expansion:** Switch `country` to `"CAN"` (or `"ALL"`) to extract Canadian businesses across Ontario, British Columbia, Quebec, Alberta, Manitoba, Nova Scotia, and beyond with automatic province recognition.
11. **AI Sales Agent Live Lookup via MCP:** Connect Claude, Cursor, or custom OpenAI/LangGraph agents to `logiover/bbb-scraper` through the Apify MCP Server so AI assistants can verify businesses and pull live contractor shortlists on demand.
12. **Directory & Marketplace Seeding:** Populate niche B2B vendor directories, homeowner quote marketplaces, and municipal procurement registries with clean, HTML-stripped business names, categories, logos, and profile links.

***

### Copy-Paste JSON Input Recipes

#### Recipe 1: Fast Metro Trade Lead List (Default / Quick Evaluation)

Pull 30 plumbing businesses in Austin, TX in ~2.5 seconds.

```json
{
  "queries": ["Plumber"],
  "locations": ["Austin, TX"],
  "country": "USA",
  "sortBy": "Relevance",
  "maxResults": 30
}
```

#### Recipe 2: 10,000+ Nationwide US & Canada Home Services Mega-Run

Sweep 10 high-value contractor trades across 80 major US and Canadian metro markets (`expandLocations: true`) to collect **11,500+ unique deduplicated B2B leads** in under 3 minutes.

```json
{
  "queries": [
    "Plumber",
    "Roofing",
    "Electrician",
    "HVAC",
    "General Contractor",
    "Auto Repair",
    "Landscaping",
    "Pest Control",
    "Painting Contractors",
    "Concrete Contractors"
  ],
  "locations": ["Austin, TX"],
  "expandLocations": true,
  "country": "ALL",
  "requirePhone": true,
  "maxResults": 11500,
  "concurrency": 14
}
```

#### Recipe 3: A+ Accredited-Only Legal & Financial Firms Across Texas & Florida

Target high-trust, actively accredited professional service firms with guaranteed phone numbers.

```json
{
  "queries": [
    "Certified Public Accountant",
    "Tax Return Preparation",
    "Estate Planning Attorney",
    "Financial Planning Consultants"
  ],
  "locations": [
    "Houston, TX",
    "Dallas, TX",
    "Austin, TX",
    "San Antonio, TX",
    "Miami, FL",
    "Tampa, FL",
    "Orlando, FL",
    "Jacksonville, FL"
  ],
  "country": "USA",
  "accreditedOnly": true,
  "minRating": "A",
  "requirePhone": true,
  "maxResults": 1500
}
```

#### Recipe 4: Canadian B2B Commercial Contractors Sweep (`country: "CAN"`)

Extract verified Canadian businesses across Toronto, Vancouver, Montreal, Calgary, Edmonton, Ottawa, and 9 more Canadian metros.

```json
{
  "queries": [
    "General Contractor",
    "Roofing Contractors",
    "Heating Contractors",
    "Electrical Contractors"
  ],
  "locations": [
    "Toronto, ON",
    "Vancouver, BC",
    "Calgary, AB",
    "Ottawa, ON"
  ],
  "expandLocations": true,
  "country": "CAN",
  "requirePhone": true,
  "maxResults": 3000
}
```

#### Recipe 5: Reputation Management Agency Prospecting (Mid-Rated Businesses)

Collect businesses in competitive metros without restricting to accredited members—then filter in your CRM or Clay table for `isAccredited === false` or `bbbRating` below `A` to pitch reputation consulting.

```json
{
  "queries": [
    "Moving Companies",
    "Used Car Dealers",
    "Property Management",
    "Towing Automotive"
  ],
  "locations": [
    "Los Angeles, CA",
    "Phoenix, AZ",
    "Atlanta, GA",
    "Chicago, IL",
    "Las Vegas, NV"
  ],
  "sortBy": "Relevance",
  "requirePhone": true,
  "maxResults": 2000
}
```

#### Recipe 6: ZIP-Code Hyper-Local Territory Extraction

Search specific 5-digit US ZIP codes or Canadian FSA postal codes sorted by nearest distance.

```json
{
  "queries": ["Dentist", "Chiropractors", "Optometrist"],
  "locations": ["90210", "10001", "60611", "78701", "33139"],
  "country": "USA",
  "sortBy": "Distance",
  "requirePhone": true,
  "maxResults": 600
}
```

#### Recipe 7: Alphabetical Deep-Slice Extraction on a Single Metro

When extracting every possible company in one large city for a broad keyword (`maxResults: 800`), the Actor automatically combines `Relevance`, `AToZ`, `ZToA`, and `Rating` sort slices to surpass BBB's 15-page per-sort window.

```json
{
  "queries": ["Construction"],
  "locations": ["Chicago, IL"],
  "country": "USA",
  "sortBy": "AToZ",
  "maxResults": 800
}
```

#### Recipe 8: Direct BBB Search URL Scraping (`startUrls`)

Pass pre-built `bbb.org/search` URLs directly from your browser.

```json
{
  "startUrls": [
    "https://www.bbb.org/search?find_country=USA&find_text=solar+energy+equipment&find_loc=San+Diego%2C+CA",
    "https://www.bbb.org/search?find_country=USA&find_text=commercial+cleaning&find_loc=Denver%2C+CO"
  ],
  "maxResults": 400
}
```

***

### Full Input Reference

| Parameter | Type | Default / Prefill | Description |
| :--- | :--- | :--- | :--- |
| `queries` | `array<string>` | `["Plumber"]` | Business categories, trades, or company keywords to search on `bbb.org` (e.g., `"Plumber"`, `"Roofing"`, `"HVAC"`, `"CPA"`, `"Auto Repair"`). |
| `locations` | `array<string>` | `["Austin, TX"]` | Target cities (`"City, ST"`), US ZIP codes (`"78701"`), or Canadian locations (`"Toronto, ON"`, `"M5V 2T6"`). |
| `expandLocations` | `boolean` | `false` | When `true`, automatically appends 65 major US cities and/or 15 major Canadian cities to sweep nationwide B2B leads at 10,000+ scale. |
| `country` | `string` | `"USA"` | Directory region: `"USA"` (United States), `"CAN"` (Canada), or `"ALL"` (both US & Canada). Canadian province suffixes (`ON`, `BC`, `AB`, `QC`, etc.) are also auto-detected. |
| `sortBy` | `string` | `"Relevance"` | Primary search sort order: `"Relevance"`, `"Rating"`, `"AToZ"`, `"ZToA"`, or `"Distance"`. Additional sort orders are automatically queued when high `maxResults` requires deeper slicing. |
| `accreditedOnly` | `boolean` | `false` | When `true`, filters both the BBB query (`touched=1`) and output stream to active BBB Accredited Businesses (`isAccredited === true`). |
| `minRating` | `string` | `"ANY"` | Minimum BBB letter grade required to emit a record: `"ANY"`, `"A+"`, `"A"`, `"A-"`, `"B+"`, `"B"`, `"B-"`, `"C+"`, `"C"`, or `"C-"`. |
| `requirePhone` | `boolean` | `false` | When `true`, skips any listing that does not publish at least one phone number. |
| `startUrls` | `array<string>` | `[]` | Optional direct `https://www.bbb.org/search?...` or `https://www.bbb.org/api/search?...` URLs to scrape alongside or instead of `queries` + `locations`. |
| `maxResults` | `integer` | `200` (prefill `30`) | Maximum number of unique deduplicated business records to save (`1` to `100,000`). Enforced with zero-race synchronous reservation. |
| `concurrency` | `integer` | `8` (prefill `6`) | Number of parallel HTTP search workers (`1` to `20`). Automatically scaled down on tiny `maxResults` runs to avoid unnecessary requests. |
| `proxyConfiguration` | `object` | `{"useApifyProxy": true}` | Standard Apify Proxy configuration. Works reliably with default Datacenter proxy and automatic fallback. |

***

### Complete Data Dictionary & Measured Fill Rates

Fill rates below were measured directly on Apify platform scale run **`HG0td6hBSnNfam6Kc`** (**`11,500` unique deduplicated North American B2B businesses** extracted on `2026-11-17`, **0 empty columns**):

| Field | Type | Measured Fill (`11.5k` Run) | Description & Example |
| :--- | :--- | :--- | :--- |
| `id` | `string \| null` | **100.0%** | Canonical globally unique BBB record identifier combining bureau ID and business ID (`"0825-1000223431"`). |
| `businessId` | `string \| null` | **100.0%** | Official BBB numeric business entity ID (`"1000223431"`). |
| `bbbId` | `string \| null` | **100.0%** | Four-digit local Better Business Bureau chapter code (`"0825"`). |
| `bbbName` | `string \| null` | **100.0%** | Name of the supervising regional BBB chapter (`"BBB Heart of Texas"`). |
| `businessName` | `string \| null` | **100.0%** | Clean, HTML-stripped legal or DBA business name (`"RVJ Electrical LLC"`). |
| `primaryCategory` | `string \| null` | **100.0%** | Primary BBB Type-of-Business (`tobText`) classification (`"Electrical Contractors"`). |
| `primaryCategoryId` | `string \| null` | **100.0%** | Official BBB Type-of-Business taxonomy code (`"10035-500"`). |
| `categories` | `array<string> \| null` | **100.0%** | Deduplicated list of all BBB business categories assigned to the company. |
| `bbbRating` | `string \| null` | **100.0%** | Official BBB letter rating (`"A+"` through `"F"`, or `"NR"` if Not Rated). |
| `ratingScore` | `number \| null` | **100.0%** | Numeric BBB rating score (`0` to `100`, e.g., `97.85`). |
| `isAccredited` | `boolean \| null` | **100.0%** | `true` when the company holds active BBB Accreditation (`bbbMember`). |
| `phone` | `string \| null` | **99.5%** | Primary **unmasked** business telephone number (`"(512) 760-7790"`). |
| `phones` | `array<string> \| null` | **99.5%** | Array of all **unmasked** local and toll-free telephone numbers on the listing. |
| `address` | `string \| null` | **77.8%** | Physical street address (`"8911 N Capital of Texas Hwy"`; `null` when mobile/service-area business hides street number). |
| `city` | `string \| null` | **100.0%** | Business city or municipality (`"Austin"`). |
| `state` | `string \| null` | **100.0%** | Two-letter US state or Canadian province code (`"TX"`, `"ON"`, `"BC"`). |
| `postalCode` | `string \| null` | **100.0%** | US ZIP / ZIP+4 code or Canadian postal code (`"78759-7247"`). |
| `country` | `string \| null` | **100.0%** | ISO-3 country code (`"USA"` or `"CAN"`). |
| `latitude` | `number \| null` | **100.0%** | WGS84 latitude coordinate (`30.3`). |
| `longitude` | `number \| null` | **100.0%** | WGS84 longitude coordinate (`-97.76`). |
| `serviceAreas` | `array<string> \| null` | **100.0%** | Counties, cities, states, or regions served by the business (`["Travis County, TX", "Williamson County, TX"]`). |
| `logoUrl` | `string \| null` | **42.7%** | Direct CDN URL to the company's uploaded BBB profile logo when present. |
| `quoteRequestEnabled` | `boolean \| null` | **100.0%** | `true` when the business accepts inbound quote requests on `bbb.org`. |
| `bbbProfileUrl` | `string \| null` | **100.0%** | Canonical URL to the company's full BBB business profile page. |
| `leaveReviewUrl` | `string \| null` | **100.0%** | Direct URL to the company's BBB customer review submission page. |
| `searchQuery` | `string \| null` | **100.0%** | Search keyword or category slice that matched this record (`"Electrician"`). |
| `searchLocation` | `string \| null` | **100.0%** | Geographic location query that matched this record (`"Austin, TX"`). |
| `scrapedAt` | `string \| null` | **100.0%** | UTC ISO-8601 extraction timestamp (`"2026-11-17T10:49:34.620Z"`). |

#### Real Unmasked JSON Output Sample (Live Platform Run `HG0td6hBSnNfam6Kc`)

```json
[
  {
    "id": "0825-1000223431",
    "businessId": "1000223431",
    "bbbId": "0825",
    "bbbName": "BBB Heart of Texas",
    "businessName": "RVJ Electrical LLC",
    "primaryCategory": "Electrical Contractors",
    "primaryCategoryId": "10035-500",
    "categories": [
      "Electrical Contractors",
      "Electrician",
      "Landscape Lighting",
      "Commercial Electrician"
    ],
    "bbbRating": "A+",
    "ratingScore": 97.85,
    "isAccredited": true,
    "phone": "(512) 760-7790",
    "phones": [
      "(512) 760-7790"
    ],
    "address": "8911 N Capital of Texas Hwy",
    "city": "Austin",
    "state": "TX",
    "postalCode": "78759-7247",
    "country": "USA",
    "latitude": 30.3,
    "longitude": -97.76,
    "serviceAreas": [
      "Austin County, TX",
      "Blanco County, TX",
      "Burnet County, TX",
      "Hays County, TX",
      "Travis County, TX",
      "Williamson County, TX",
      "TX"
    ],
    "logoUrl": null,
    "quoteRequestEnabled": true,
    "bbbProfileUrl": "https://www.bbb.org/us/tx/austin/profile/electrical-contractors/rvj-electrical-llc-0825-1000223431",
    "leaveReviewUrl": "https://www.bbb.org/us/tx/austin/profile/electrical-contractors/rvj-electrical-llc-0825-1000223431/leave-a-review",
    "searchQuery": "Electrician",
    "searchLocation": "Austin, TX",
    "scrapedAt": "2026-11-17T10:49:34.620Z"
  },
  {
    "id": "0825-1000223803",
    "businessId": "1000223803",
    "bbbId": "0825",
    "bbbName": "BBB Heart of Texas",
    "businessName": "Calixto Plumbing",
    "primaryCategory": "Plumber",
    "primaryCategoryId": "10113-000",
    "categories": [
      "Plumber",
      "Plumbing Renovation",
      "Commercial Plumber",
      "Plumbing Plan"
    ],
    "bbbRating": "A+",
    "ratingScore": 99.18,
    "isAccredited": true,
    "phone": "(512) 945-3143",
    "phones": [
      "(512) 945-3143"
    ],
    "address": "8410 Georgian Dr # B",
    "city": "Austin",
    "state": "TX",
    "postalCode": "78753-6003",
    "country": "USA",
    "latitude": 30.3,
    "longitude": -97.76,
    "serviceAreas": [
      "Bell County, TX",
      "Burnet County, TX",
      "Lee County, TX",
      "Milam County, TX",
      "Travis County, TX",
      "Williamson County, TX"
    ],
    "logoUrl": "https://m.bbb.org/prod/ProfileImages/2024/1f7a8bd4-fdd2-45ca-8963-5c246e1d3b85.png",
    "quoteRequestEnabled": true,
    "bbbProfileUrl": "https://www.bbb.org/us/tx/austin/profile/plumber/calixto-plumbing-0825-1000223803",
    "leaveReviewUrl": "https://www.bbb.org/us/tx/austin/profile/plumber/calixto-plumbing-0825-1000223803/leave-a-review",
    "searchQuery": "Plumber",
    "searchLocation": "Austin, TX",
    "scrapedAt": "2026-11-17T10:48:54.428Z"
  }
]
```

***

### Measured Performance & Scale Proof (Verified `2026-11-17`)

Every benchmark below was executed live on the Apify cloud platform on **`2026-11-17`** and verified via independent dataset uniqueness and fill-rate audits:

| Benchmark Profile | Apify Run ID | Status | Unique Rows | Duplicates | Failed Pages | Peak Memory | Wall-Clock Duration | Throughput |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| **Prefill / Daily QC Run** (`Plumber` in `Austin, TX`, `maxResults: 30`) | `nWyHxMLr9cZCUfj0J` | `SUCCEEDED` | **30** | `0` | `0 / 4` | `51 MB` | **2.4s** (`1.21s` active) | `~750 rows/min` |
| **Nationwide Scale Run** (10 trades × US & CA metros, `expandLocations: true`, `maxResults: 11500`) | `HG0td6hBSnNfam6Kc` | `SUCCEEDED` | **11,500** | `0` | `0 / 1,034` | `121 MB` | **172.0s** (`2m 52s`) | **`~4,011 unique leads/min`** |
| **PPE Max-Cost Cap Proof** (`maxTotalChargeUsd: $0.05`) | `GuzthXs1cInDsGxtD` | `SUCCEEDED` | **18** | `0` | `0 / 2` | `49 MB` | **2.1s** | Clean budget stop |

**Key Telemetry Highlights (`SUMMARY` key-value store record):**

- Every run writes a structured `SUMMARY` JSON object to the default Key-Value Store containing `queriesCount`, `maxResults`, `accepted`, `pushed`, `rawItemsSeen`, `duplicatesSkipped` (`3,665` overlapping metro/category duplicates automatically filtered out during the `11,500`-row scale run!), `filteredOut`, `requestsSent`, `pagesSucceeded`, `pagesFailed`, and `durationSecs`.

***

### Pricing — What You Pay (`PAY_PER_EVENT`)

This Actor uses transparent **Pay-Per-Event (`apify-default-dataset-item`)** pricing. You only pay for unique, qualified BBB business leads delivered to your dataset, with automatic volume discounts based on your Apify Store subscription tier:

| Apify Plan Tier | Price per Result | Price per 1,000 Leads | Example: 2,500 Leads | Example: 10,000 Leads |
| :--- | :--- | :--- | :--- | :--- |
| **FREE** | `$0.003000` | **$3.00 / 1k** | `$7.50` | `$30.00` |
| **BRONZE** | `$0.002667` | **$2.67 / 1k** | `$6.67` | `$26.67` |
| **SILVER** | `$0.002333` | **$2.33 / 1k** | `$5.83` | `$23.33` |
| **GOLD** | `$0.002000` | **$2.00 / 1k** | `$5.00` | `$20.00` |
| **PLATINUM** | `$0.002000` | **$2.00 / 1k** | `$5.00` | `$20.00` |
| **DIAMOND** | `$0.002000` | **$2.00 / 1k** | `$5.00` | `$20.00` |

#### Controlling Spend with "Maximum Cost per Run"

You have two independent, deterministic controls over run billing:

1. **Set `maxResults` in Input:** Caps the exact number of deduplicated business leads pushed to the dataset (e.g., `"maxResults": 1000` equals `$3.00` on FREE or `$2.00` on GOLD+).
2. **Set "Maximum cost per run" in Apify Console or API (`maxTotalChargeUsd`):** Our built-in runtime budget guard inspects your remaining event budget before every dataset push, slices the final batch cleanly at your exact ceiling, writes `SUMMARY` to the Key-Value Store, and exits with status `SUCCEEDED`—never stranding partial data or aborting unexpectedly.

***

### AI Agent & Official Apify MCP Server Integration

**BBB Scraper** is ready for Model Context Protocol (MCP) clients including **Claude Desktop**, **Cursor**, **Windsurf**, **VS Code Copilot**, **OpenAI Agents SDK**, and **LangGraph**. Point your MCP client at the official hosted Apify MCP endpoint scoped to `logiover/bbb-scraper`:

```
https://mcp.apify.com?tools=logiover/bbb-scraper
```

#### Claude Desktop / Cursor (`mcp.json`) Configuration

```json
{
  "mcpServers": {
    "bbb-scraper": {
      "url": "https://mcp.apify.com?tools=logiover/bbb-scraper",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

**Example Agent Prompts Once Connected:**

- *"Use `bbb-scraper` to find 50 A+ rated, BBB Accredited commercial roofing contractors in Dallas, TX and Houston, TX with phone numbers, and format them as a prospect table."*
- *"Verify whether 'Calixto Plumbing' in Austin, TX is BBB Accredited and check its rating score and service areas."*

***

### Code & Workflow Automation Examples

#### Node.js (`apify-client`)

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

const client = new ApifyClient({ token: process.env.APIFY_API_TOKEN });

const run = await client.actor('logiover/bbb-scraper').call(
  {
    queries: ['HVAC', 'Plumber', 'Electrician'],
    locations: ['Phoenix, AZ', 'Tucson, AZ', 'Scottsdale, AZ'],
    country: 'USA',
    accreditedOnly: true,
    requirePhone: true,
    maxResults: 500,
  },
  { maxTotalChargeUsd: 2.00 }
);

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Retrieved ${items.length} BBB leads:`, items[0]);
```

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

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_API_TOKEN"])

run = client.actor("logiover/bbb-scraper").call(
    run_input={
        "queries": ["Roofing", "General Contractor"],
        "locations": ["Austin, TX"],
        "expandLocations": True,
        "country": "USA",
        "minRating": "A",
        "requirePhone": True,
        "maxResults": 2500,
    },
    max_total_charge_usd=10.00,
)

items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(f"Fetched {len(items)} deduplicated BBB leads.")
```

#### cURL (Synchronous Run & Dataset JSON Stream)

```bash
curl -X POST "https://api.apify.com/v2/acts/logiover~bbb-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN&maxTotalChargeUsd=1.50" \
  -H "Content-Type: application/json" \
  -d '{
    "queries": ["Auto Repair"],
    "locations": ["Denver, CO", "Aurora, CO"],
    "requirePhone": true,
    "maxResults": 150
  }'
```

#### n8n / Make / Zapier / Clay Integration

- **n8n:** Add the official **Apify** node (`Run an Actor and get dataset`) -> select `logiover/bbb-scraper` -> map `phone`, `businessName`, `bbbRating`, `isAccredited`, `address`, `city`, `state`, and `bbbProfileUrl` directly into HubSpot, Pipedrive, Instantly, Smartlead, or Airtable.
- **Clay:** Use the native Apify enrichment column in Clay to trigger `logiover/bbb-scraper` per target territory or enrich company rows with BBB ratings and accreditation status.
- **Make & Zapier:** Trigger scheduled weekly runs via the Apify app module and route new `A+` accredited businesses into Google Sheets or Slack deal channels.

***

### Troubleshooting & Best Practices

- **Getting More Than 225 Leads for a Single Keyword + City:** BBB limits any single `(query, location, sort)` view to 15 pages (`225` businesses). To collect thousands of leads, either add neighboring cities/ZIP codes to `locations`, enable `"expandLocations": true` (which adds 65 US / 15 Canadian metros automatically), or set `maxResults > 225` so the Actor automatically sweeps additional sort orders (`AToZ`, `ZToA`, `Rating`).
- **Why `address` Is Occasionally `null` (~22% of Contractors):** Service-area trades (mobile locksmiths, residential plumbers, electricians working out of home offices) frequently choose BBB's privacy option to hide their street line while still publishing `city`, `state`, `postalCode`, `phone`, and `serviceAreas`.
- **Searching Canadian Businesses:** Pass `"country": "CAN"` (or `"ALL"`) or include two-letter Canadian province codes (`"Toronto, ON"`, `"Vancouver, BC"`, `"Calgary, AB"`), which the Actor automatically routes to `find_country=CAN`.
- **Zero Matching Items Returned:** If you combine very strict filters (e.g., `accreditedOnly: true` + `minRating: "A+"` on an ultra-niche keyword in a small town), the Actor finishes cleanly (`SUCCEEDED`) with `0` items and logs the number of directory pages inspected in `SUMMARY`.

#### Support, Bug Reports & Feature Requests

- **Report Issues / Request Features:** [Open a ticket on the Actor Issues tab](https://apify.com/logiover/bbb-scraper/issues)
- **Leave Feedback:** If this Actor saves your team engineering hours, [leaving a quick review on Apify Store](https://apify.com/logiover/bbb-scraper/reviews) helps us prioritize new features and directory enhancements!

***

### Frequently Asked Questions (FAQ)

#### Do I need a Better Business Bureau API key or account to use BBB Scraper?

No. **BBB Scraper** works out of the box with zero API keys, zero browser cookies, and zero BBB developer registration—allowing you to scrape `bbb.org` public directory listings immediately.

#### Are phone numbers masked or redacted in the output?

No. Every public business phone number listed on Better Business Bureau is returned **100% unmasked** in both the `phone` (primary line) and `phones` (all local and toll-free lines) fields. Across our 11,500-row benchmark run, **99.5%** of extracted businesses included at least one unmasked phone number.

#### Does BBB Scraper cover both the United States and Canada?

Yes. Set `country` to `"USA"` for all 50 US states, `"CAN"` for all Canadian provinces and territories, or `"ALL"` to sweep both countries in a single run. Canadian postal codes and province abbreviations (`ON`, `BC`, `QC`, `AB`, etc.) are also detected automatically.

#### How can I extract 10,000+ unique B2B business leads in a single run?

Pass 5–10 related category keywords in `queries`, enable `"expandLocations": true`, and set `"maxResults": 10000` (or higher, up to `100,000`). In our verified live benchmark (`HG0td6hBSnNfam6Kc`), this configuration extracted **11,500 unique deduplicated leads** in **172 seconds**.

#### How does deduplication work when businesses appear in multiple cities or categories?

Many regional contractors serve 5–10 neighboring counties and rank under multiple trade categories (e.g., both `"Plumber"` and `"HVAC"`). The Actor constructs a canonical unique key (`<bbbId>-<businessId>`, such as `"0825-1000223431"`) and deduplicates synchronously in memory before pushing to the dataset, guaranteeing **0 duplicate charges and 0 duplicate rows**.

#### Why does a single city search return around 225 results unless expanded?

Better Business Bureau's public search engine paginates up to 15 pages of 15 results (`225` listings) per query/location/sort slice. When `maxResults` is higher, our Actor automatically adds `AToZ`, `ZToA`, and `Rating` sort slices and—when `expandLocations` is enabled—sweeps 80+ major metropolitan areas.

#### Can I filter for only BBB Accredited Businesses (`isAccredited: true`)?

Yes. Enable `"accreditedOnly": true` in your input. Non-accredited businesses are filtered out before dataset insertion so you only pay for verified BBB Accredited leads.

#### Can I filter by minimum BBB letter grade such as `A+` or `A`?

Yes. Set `minRating` to `"A+"`, `"A"`, `"A-"`, `"B+"`, `"B"`, `"B-"`, `"C+"`, `"C"`, or `"C-"`. Businesses with `"NR"` (Not Rated) or lower grades are excluded automatically when `minRating` is set above `"ANY"`.

#### What does `"NR"` mean in the `bbbRating` field?

`"NR"` stands for **Not Rated**—meaning the local Better Business Bureau is either updating the file or does not yet have sufficient operating history to assign a letter grade (`A+` through `F`), even though the company may already be registered or accredited.

#### Are HTML tags like `<em>` removed from business names?

Yes. BBB's raw search payloads wrap matched keywords in `<em>...</em>` tags and HTML entities (`&amp;`, `&#39;`). **BBB Scraper** strips all HTML markup and decodes entities automatically so `businessName` and `categories` are clean and CRM-ready.

#### How much does it cost to scrape 1,000 or 10,000 BBB leads?

Under Pay-Per-Event pricing, 1,000 leads cost **$3.00** on the FREE plan, **$2.67** on BRONZE, **$2.33** on SILVER, and **$2.00** on GOLD, PLATINUM, and DIAMOND plans. Scraping 10,000 leads costs **$20.00** on GOLD+ plans (`$30.00` on FREE).

#### What happens if my run hits the "Maximum cost per run" budget limit?

The built-in runtime guard detects your remaining event budget via Apify's charging manager, saves the exact slice of items your budget covers, writes a final `SUMMARY` record (`reason: "max_cost_per_run_reached"`), and finishes with status **`SUCCEEDED`** rather than aborting.

#### Can I export BBB business leads directly to CSV or Excel?

Yes. Every Apify run dataset can be downloaded in one click from the Apify Console or REST API in **CSV, Excel (`.xlsx`), JSON, JSONL, XML, or HTML** format.

#### Can I pass direct `bbb.org/search` URLs instead of keywords?

Yes. Paste any `https://www.bbb.org/search?...` URL(s) into the `startUrls` input field, and the Actor will paginate through all matching listings automatically.

#### Does this Actor work with AI agents and the Apify MCP Server?

Yes. Connect any MCP-compatible client (Claude Desktop, Cursor, Windsurf, OpenAI Agents SDK) to `https://mcp.apify.com?tools=logiover/bbb-scraper` with your Apify token to give your AI assistant live North American B2B directory lookup capabilities.

#### Which proxy settings should I use?

Leave `proxyConfiguration` at its default (`{"useApifyProxy": true}`). The Actor runs reliably over default Apify Datacenter proxies with automatic session rotation and fallback—expensive residential or unblocker proxies are not required.

#### How fast is the default prefill / quick test run?

With default prefill settings (`maxResults: 30`), the Actor finishes in **2 to 4 seconds** (`2.4s` measured on live platform run `nWyHxMLr9cZCUfj0J`).

#### Is scraping public Better Business Bureau directory listings legal?

This Actor only accesses publicly available business directory information published on `bbb.org` without logging in or bypassing authentication controls. Users are responsible for complying with applicable laws (such as TCPA, CAN-SPAM, CASL, and privacy regulations) when contacting businesses.

# Changelog

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

# Actor input Schema

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

Business categories, trades, or company keywords to search on Better Business Bureau (e.g., Plumber, Roofing, HVAC, Electrician, Auto Repair, Lawyer, Accounting).

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

US or Canadian locations to search (e.g., 'Austin, TX', 'Los Angeles, CA', '78701', 'Toronto, ON'). Leave empty or enable 'Expand Across Major Metro Cities' for nationwide B2B extraction.

## `expandLocations` (type: `boolean`):

Automatically sweep 70+ top US & Canadian metropolitan areas in addition to your specified locations so a single run can collect 10,000+ unique B2B business leads.

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

Filter Better Business Bureau directory by country (United States, Canada, or Both).

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

Sort order for BBB search results. In high-volume runs, additional sort slices are automatically used when needed to maximize depth.

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

Only output businesses that hold active BBB Accreditation (bbbMember = true).

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

Filter results to businesses meeting at least this BBB letter grade.

## `requirePhone` (type: `boolean`):

Skip listings that do not publish at least one phone number.

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

Optional direct bbb.org/search or bbb.org/api/search URLs to scrape alongside or instead of keyword + location inputs.

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

Maximum number of unique deduplicated B2B business records to collect across the run.

## `concurrency` (type: `integer`):

Number of parallel search requests.

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

Proxy settings for HTTP requests. Uses Apify Datacenter Proxy by default with automatic fallback.

## Actor input object example

```json
{
  "queries": [
    "Plumber"
  ],
  "locations": [
    "Austin, TX"
  ],
  "expandLocations": false,
  "country": "USA",
  "sortBy": "Relevance",
  "accreditedOnly": false,
  "minRating": "ANY",
  "requirePhone": false,
  "maxResults": 30,
  "concurrency": 6,
  "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 = {
    "queries": [
        "Plumber"
    ],
    "locations": [
        "Austin, TX"
    ],
    "maxResults": 30,
    "concurrency": 6
};

// Run the Actor and wait for it to finish
const run = await client.actor("logiover/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 = {
    "queries": ["Plumber"],
    "locations": ["Austin, TX"],
    "maxResults": 30,
    "concurrency": 6,
}

# Run the Actor and wait for it to finish
run = client.actor("logiover/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 '{
  "queries": [
    "Plumber"
  ],
  "locations": [
    "Austin, TX"
  ],
  "maxResults": 30,
  "concurrency": 6
}' |
apify call logiover/bbb-scraper --silent --output-dataset

```

## MCP server setup

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