# BBB Business Scraper · Ratings, accreditation · $2/1K (`mlg14/bbb-scraper`) Actor

Search Better Business Bureau (BBB) listings for local lead generation, business verification and market research. Ratings, accreditation, categories, phones, addresses and profile links by keyword and city. $2/1K businesses, below typical $3-4/1K BBB scrapers.

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

## Pricing

$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.

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

Scrape BBB business search listings for ratings, accreditation, categories, phone numbers, addresses, and profile links. Export BBB data to JSON or CSV for local market research, directory analysis, and business verification; this is an API alternative for publicly visible search-result data.

Enter a keyword and location, paste a BBB search URL, or supply a direct business profile URL. Each dataset item represents one distinct business. The scraper uses the structured search endpoint behind the public search page and preserves the business and bureau IDs needed to recognize the same listing across searches.

### What data can you extract from BBB?

The output represents the information returned in BBB search results. It does not claim to contain every field visible on a business profile. A value can be `null` or an empty array when the search result does not provide it. The two IDs together identify a listing more reliably than its display name, which may change.

| Field | Description | Example |
|---|---|---|
| `type` | Record kind | `business` |
| `bbbId` | Local bureau identifier | `1216` |
| `businessId` | Business identifier | `1000040787` |
| `profileUrl` | Link to the public profile | `/profile/...` path on the site |
| `name` | Business display name | Published listing name |
| `bbbRating` | Letter rating shown in search | `A+` |
| `ratingScore` | Numeric score returned by search | `100` |
| `isAccredited` | Accreditation flag in search | `true` |
| `accreditationStatus` | Extra status, if supplied | `null` |
| `primaryCategory` | Main category | `Hydro Jetting` |
| `categories` | All listed categories | `['Hydro Jetting', 'Plumber']` |
| `phone` | First listed number | `(213) 285-7769` |
| `additionalPhones` | Remaining listed numbers | `[]` |
| `addressLine1` | Street or mailing line | `PO Box 70268` |
| `city` | Listed city | `Los Angeles` |
| `stateCode` | State or province code | `CA` |
| `zipCode` | Postal code | `90070-0268` |
| `formattedAddress` | Combined address fields | City and region string |
| `latitude` | Approximate search coordinate | `34.04` |
| `longitude` | Approximate search coordinate | `-118.3` |
| `servingAreas` | Published service area summary | `['Los Angeles, CA', 'CA', 'USA']` |
| `isOutOfBusiness` | Closure status, if supplied | `null` |
| `localBbbName` | Bureau named in the listing | Published bureau name |
| `logoUrl` | Listed logo link, if supplied | `null` |
| `requestQuoteUrl` | Quote request link, if present | Site URL |
| `leaveReviewUrl` | Review submission link | Site URL |
| `searchTerm` | Keyword that found the row | `plumber` |
| `searchLocation` | Location used for the row | `Los Angeles, CA` |
| `scrapedAt` | Collection time in UTC | ISO timestamp |

`phone` and `additionalPhones` use the order supplied by the search endpoint. A listing with no phone number has `phone: null` and an empty `additionalPhones` array. The address fields preserve the site's spelling and postal code; `formattedAddress` simply joins those fields for convenient export. Search coordinates may be rounded and should not be treated as a precise building entrance.

The accreditation flag is the value attached to the listing. The letter grade and numeric score are separate source values; the scraper does not calculate one from the other. `accreditationStatus`, `logoUrl`, and `isOutOfBusiness` are often absent in ordinary search results. Null means the source did not provide a value, not that an accreditation was revoked, a logo does not exist, or the business is operating.

### How to scrape BBB

1. Enter one or more terms such as `plumber`, `roofing`, or `heating`. Set `location` to a city and state or province when you want a local result set. A direct BBB search URL can also be pasted into `startUrls`.
2. Choose a country, sort order, optional distance, and whether to keep only accredited businesses. Set `maxItems` to the largest dataset you need for this run.
3. Run the actor. It fetches result pages, follows the site's 15-page search limit, and uses available category filters as additional result slices when the unsliced result set exceeds that limit. Repeated business IDs are saved once.
4. Open the default dataset to inspect the rows. Download JSON for programmatic use or CSV for a spreadsheet and filter on rating, category, accreditation, or geography.

For a specific profile, paste its URL into `startUrls`. The actor extracts its business and bureau IDs, searches the public listings using the URL's business slug and location, and returns the matching listing. This route returns search-listing fields. It may return no row if the listing is no longer searchable or if the slug does not match an indexed name.

### Input

| Name | Type | Default | Description |
|---|---|---|---|
| `searchTerms` | String array | UI prefill: `['plumber']` | Keywords or business categories; each term creates a search. |
| `location` | String | UI prefill: `Los Angeles, CA` | City and state or province. Empty permits a broader country search. |
| `country` | Select | `USA` | `USA` or `CAN` for keyword searches. |
| `sort` | Select | `Relevance` | `Relevance`, `Rating`, `Distance`, `AToZ`, or `ZToA`. |
| `distance` | Integer | Unset | Optional search radius in miles. Use with a location. |
| `startUrls` | String array | Empty | BBB search URLs and business profile URLs; may be mixed with terms. |
| `accreditedOnly` | Boolean | `false` | Apply the site's accreditation filter and check each saved listing. |
| `maxItems` | Integer | `100` | Hard cap on unique business rows saved across all input targets. |
| `proxyConfiguration` | Object | Site proxy | Override proxy access when your account has a suitable configuration. |

A small local search can start with:

```json
{
  "searchTerms": ["plumber"],
  "location": "Los Angeles, CA",
  "country": "USA",
  "maxItems": 30
}
```

To use a public search URL, put the full URL in `startUrls`. Query parameters already in that URL are kept. The selected sort, distance, and accreditation options are added where the URL does not specify them. A run can combine several keyword searches and URLs. Matching bureau and business IDs are deduplicated across the whole run, so overlapping queries do not inflate the final dataset.

`maxItems` counts saved businesses, not fetched pages. A filtered search can require more pages to fill a given item cap. The actor stops collecting when the cap is reached or the result slices are exhausted. A direct profile lookup normally returns at most one row, regardless of a larger `maxItems` value.

### Output example

This abbreviated item is from the 30-row verification run. The identifying business name and links are omitted from this display; the actual dataset contains them.

```json
{
  "type": "business",
  "bbbId": "1216",
  "businessId": "1000040787",
  "bbbRating": "A+",
  "ratingScore": 100,
  "isAccredited": true,
  "primaryCategory": "Hydro Jetting",
  "categories": ["Hydro Jetting", "Plumber"],
  "phone": "(213) 285-7769",
  "additionalPhones": [],
  "addressLine1": "PO Box 70268",
  "city": "Los Angeles",
  "stateCode": "CA",
  "zipCode": "90070-0268",
  "latitude": 34.04,
  "longitude": -118.3,
  "searchTerm": "plumber",
  "searchLocation": "Los Angeles, CA"
}
```

In that run, all 30 rows had business IDs, bureau IDs, profile URLs, names, ratings, categories, cities, and state codes. Twenty-eight of 30 had a phone number. That is a property of the sampled search, not a guaranteed fill rate for another category or region. The dataset schema documents every emitted field, including fields that can legitimately be null.

### Use cases

- **Local market mapping:** collect listings for a trade in a city, then count published categories and compare the mix of accredited and other businesses.
- **Business verification:** check a supplied profile URL or search for a business name and retain its bureau ID, business ID, rating, and public profile link with a collection timestamp.
- **Directory enrichment:** add a listed phone number, postal code, category, and BBB profile link to an existing business directory, matching on more than the business name alone.
- **Territory planning:** run the same category in several cities or with different distance filters to compare which listings appear within each service area.
- **Rating monitoring:** schedule repeated searches and compare the published letter rating and accreditation flag for the same pair of IDs over time.
- **Export preparation:** create a flat dataset with consistent camelCase fields for downstream filtering, deduplication, or reporting.

These uses rely on public listing data. A listing's presence is not proof of licensing, current trading status, or ownership. Confirm important decisions against the linked source record and other relevant evidence.

### How much does it cost to scrape BBB?

The actor is configured at **$2 per 1,000 saved business rows**, or **$0.002 per row**, which is below the $3-4 per 1,000 that other BBB scrapers typically charge (this actor returns search-result fields only, not full profile details). The charge is based on rows delivered to the dataset, rather than pages requested. A 30-row run is $0.06, 100 rows are $0.20, and 1,000 rows are $2.00 at that rate. The run interface shows the applicable price before execution; any account-specific platform charges are displayed there separately.

Searches that overlap do not charge twice for the same business within one run because repeated bureau and business ID pairs are removed before saving. Filtering to accredited businesses can reduce the number of charged rows. Raising `maxItems` authorizes more results but does not guarantee that many: search coverage, filters, and the site's page cap can yield fewer.

Large searches may fetch multiple pages and category slices to find unique results. Page fetches affect run time even when they add no new business. If you only need a quick sample, keep `maxItems` near 30 or 50. If you need a larger regional list, use a more focused keyword, location, and category strategy, then combine runs using the two IDs.

### Tips for best results

Use a clear category term and a specific city. A broad nationwide keyword can have thousands of matches while the search endpoint exposes only 15 pages for any single query. The actor tries category filters exposed by the first page to recover more distinct businesses. Those categories overlap, and not every listing belongs to a displayed category, so the union may still be incomplete.

If you already have a search URL that gives useful results in your browser, paste it into `startUrls`. This preserves its query choices and makes the run easier to reproduce. Set `maxItems` to the number of rows you actually need. For a direct profile URL, include the canonical business URL with its numeric IDs; quote pages or unrelated site sections are not valid profile inputs.

Use `accreditedOnly` when your workflow specifically needs the accreditation flag. The filter is applied to the request and checked again before a row is saved. A missing rating should not be interpreted as a low rating; filter or inspect it separately. Likewise, a blank phone number means it was not published in that search result.

Keep the exported `bbbId` and `businessId` fields. Names, punctuation, category labels, and URLs can change, while the ID pair gives a more stable deduplication key. Store `scrapedAt` if you compare snapshots, because ratings and accreditation can change after collection.

### Limits

**Search depth:** the tested search endpoint returned 15 results per page and 15 pages for a query, even when it reported thousands of total matches. A request for page 16 returned an error. Category slicing can reach additional listings, but it cannot guarantee a complete census of every matching business. A highly specific query may return fewer than 15 total results.

**Profile detail:** direct profile pages returned access-denied responses during development, including with residential browser access. The actor therefore uses the public search endpoint even for supplied profile URLs. It does not extract website, email, owner, license, hours, detailed business description, customer reviews, or complaint records. It does not infer or fabricate those values. Use the `profileUrl` to inspect such details manually when needed.

**Direct URL lookup:** a profile URL is resolved by searching its URL slug and location, then matching the numeric IDs. A renamed, delisted, or poorly indexed business may not be found. In that case the run logs the failed lookup and emits no substitute business. A direct URL does not bypass the site's search cap.

**Data completeness:** some search listings omit phone, street address, logo, quote link, or status. Geographic coordinates in search may be approximate. Local bureau and category names are returned as published, and some businesses have multiple categories or service areas. The scraper stores the source value where available and uses null or an empty array otherwise.

**Access conditions:** the site can change endpoint behavior or block a proxy session. Requests begin with lower-cost access and can escalate after blocks. If a search fails, the run log identifies the failed term; there is no guarantee that every target in a multi-search input can be served at all times.

### Use with automated workflows

Two example requests for a workflow client are: “Collect 50 plumbing listings around Los Angeles and return name, rating, accreditation, phone, and profile URL”; and “Given this BBB profile URL, return its searchable listing and stable IDs.” Use the exact input property names in the table above. Read the default dataset after the run completes, and handle a zero-row result as a missing search match rather than as proof that a business does not exist.

For repeated checks, save the input JSON with your workflow and compare output rows by the ID pair. The timestamp tells you when a snapshot was collected. If you need only accredited businesses, set `accreditedOnly` in the request instead of applying a client-side filter after payment. If you need a small sample, set an explicit `maxItems` rather than relying on the 100-row default.

### FAQ

**Is the data public?** The actor uses the search data available to unauthenticated visitors. Check the site's terms and applicable privacy rules before using or redistributing records. Do not use contact details for misuse or assume a listing grants permission for unrelated outreach.

**Do I need a proxy?** The default configuration starts with datacenter access and can escalate to residential access when blocked. The public search endpoint has worked through this path. Account proxy availability and site defenses can change, so a custom proxy may be useful for a particular region.

**How fast is a run?** The verified 30-row search completed in roughly 22 seconds of run time after build. Larger runs depend on the number of pages and category slices fetched, proxy retries, and the site's response time. Use the run log for the actual duration.

**Can I schedule repeated searches?** Yes. Save an input and schedule runs through the actor platform. Compare snapshots with `bbbId`, `businessId`, and `scrapedAt`, and account for businesses entering or leaving search results.

**Can I export to a spreadsheet?** Yes. Download the dataset as CSV and open it in a spreadsheet application. Arrays such as `categories` and `servingAreas` may appear as serialized values in a CSV cell; JSON keeps their array structure.

**Why is a field empty?** The public search record may omit it, or the business may not have that field. Null and empty arrays are intentional. The actor does not fetch blocked profile pages to fill them and does not guess missing values.

**Will one broad search return every matching business?** No. The endpoint caps a single query at 15 pages of 15 results. Category slices improve reach but may overlap or miss listings. Use narrower terms, locations, and multiple runs when coverage matters, and deduplicate exported rows by the two IDs.

### Use with AI agents (MCP)

Add this actor to any MCP client (Claude, Cursor, VS Code, n8n and others) with one URL:

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

The actor returns one dataset item per business (BBB rating, accreditation, categories, phone, address, coordinates, profile URL). Keep `maxItems` small: BBB rows are priced at $2 per 1,000.

**Prompt 1:** "Find 30 plumbers in Los Angeles with their BBB ratings."

```json
{
  "searchTerms": [
    "plumber"
  ],
  "location": "Los Angeles, CA",
  "country": "USA",
  "maxItems": 30
}
```

**Prompt 2:** "Get 25 BBB accredited roofing contractors in Toronto, best rated first."

```json
{
  "searchTerms": [
    "roofing contractor"
  ],
  "location": "Toronto, ON",
  "country": "CAN",
  "sort": "Rating",
  "accreditedOnly": true,
  "maxItems": 25
}
```

**Prompt 3:** "List 20 electricians near Austin within 25 miles with phone numbers."

```json
{
  "searchTerms": [
    "electrician"
  ],
  "location": "Austin, TX",
  "distance": 25,
  "maxItems": 20
}
```

### Integrations

The dataset can be read through the platform API or delivered to a webhook after a run. Scheduling supports regular snapshots; integration services can pass the JSON rows to a database, spreadsheet, or reporting pipeline. Use the stable ID pair as the record key, retain the collection time, and treat nullable fields as unknown values in downstream logic.

### Support

Open an issue on the Issues tab with the input, run ID, and expected listing. Include which output field or region needs attention. We reply within 24 hours and add fields on request when they are available through a reliable public source.

# Actor input Schema

## `searchTerms` (type: `array`):

Business categories or keywords to search, e.g. \["plumber", "roofing contractor"]. Each term is combined with the location. Use it for keyword searches; leave empty when you pass BBB URLs.

## `location` (type: `string`):

City and state or province for keyword searches, e.g. Los Angeles, CA or Toronto, ON. Leave empty for a country-wide search.

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

Country for keyword searches. Allowed values: USA (United States) or CAN (Canada). Example: USA. Use CAN for Canadian BBB bureaus.

## `sort` (type: `string`):

Order returned by the BBB search. Allowed values: Relevance, Rating, Distance, AToZ, ZToA. Example: Rating for the best-rated businesses first. Use Distance only when a location is set.

## `distance` (type: `integer`):

Optional distance filter in miles around the location, 1 to 500. Example: 25. Use it with a location to limit results to nearby businesses; leave empty for no limit.

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

Public BBB search URLs or direct business profile URLs, e.g. https://www.bbb.org/search?find_text=plumber\&find_loc=Los%20Angeles%2C%20CA. Use them instead of keywords; profile URLs are resolved through search listings. Leave empty for keyword mode.

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

Return only businesses marked as BBB accredited in the search listing. Allowed values: true or false. Example: true. Use true for vetted leads; keep false for all businesses.

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

Maximum unique businesses to save across all searches and URLs, e.g. 100. Use a small value like 30 for quick tests; raise it for full market exports.

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

Optional proxy settings. Requests start with datacenter access and escalate to residential access if blocked.

## Actor input object example

```json
{
  "searchTerms": [
    "plumber"
  ],
  "location": "Los Angeles, CA",
  "country": "USA",
  "sort": "Relevance",
  "startUrls": [],
  "accreditedOnly": false,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Business listings in the default dataset.

# 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 = {
    "searchTerms": [
        "plumber"
    ],
    "location": "Los Angeles, CA",
    "startUrls": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("mlg14/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 = {
    "searchTerms": ["plumber"],
    "location": "Los Angeles, CA",
    "startUrls": [],
}

# Run the Actor and wait for it to finish
run = client.actor("mlg14/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 '{
  "searchTerms": [
    "plumber"
  ],
  "location": "Los Angeles, CA",
  "startUrls": []
}' |
apify call mlg14/bbb-scraper --silent --output-dataset

```

## MCP server setup

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