# BBB Business Scraper (`nanodata/bbb-business-scraper`) Actor

Search Better Business Bureau (bbb.org) for businesses by keyword and city. Get name, phone, address, BBB rating, accreditation, categories and profile links. Pay per result.

- **URL**: https://apify.com/nanodata/bbb-business-scraper.md
- **Developed by:** [nanodata](https://apify.com/nanodata) (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 bbb business scrapeds

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 Business Scraper

Search the Better Business Bureau (bbb.org) by keyword and city and export the business listings as structured data. Each row holds the business name, phone numbers, address, BBB letter rating, accreditation flag, categories, coordinates and the link to the BBB profile.

### What you get

For every business on the search results pages the actor returns every public field the listing shows:

- Identity: business name, listing id, business id, local BBB id and name
- Contact: street address, city, state, postal code, all listed phone numbers
- Reputation: BBB letter rating, numeric rating score, accreditation flag, charity flags
- Categories: main category and the full category list with ids
- Location: latitude and longitude, service area details when listed
- Links: profile URL, logo, request a quote page, leave a review page
- Search context: the term, the location, the results page, the position and the total hits reported for the search

Fields the listing does not show are returned as `null`.

### Pricing

This actor uses pay per event pricing.

| Event name | When it is charged | Price |
|---|---|---|
| `actor-start` | Once per run, together with the first delivered rows | $0.001 per run |
| `bbb-business-result` | For each business delivered to the dataset | $0.002 per business ($2.00 per 1,000) |

A run that finds nothing delivers no rows and is not charged. If you set a maximum charge for the run, the actor stops cleanly when the limit is reached and keeps the rows already delivered.

### Input

| Field | Type | Description |
|---|---|---|
| `searchTerms` | list of text | Business types or names, for example `plumber`. Each term is searched in every location. |
| `locations` | list of text | City and state as written on bbb.org, for example `Austin, TX`. |
| `country` | `USA` or `CAN` | Country of the locations. Default `USA`. |
| `maxResultsPerQuery` | number | Businesses to collect for each term and location pair. A results page holds 15 businesses. Default 40, maximum 1000. |

An empty input runs a small demo: `plumber` in `Austin, TX`, 5 results.

#### Example: two cities

```json
{
  "searchTerms": ["plumber"],
  "locations": ["Austin, TX", "Denver, CO"],
  "maxResultsPerQuery": 40
}
```

#### Example: several terms, Canada

```json
{
  "searchTerms": ["roofing contractor", "electrician"],
  "locations": ["Toronto, ON"],
  "country": "CAN",
  "maxResultsPerQuery": 30
}
```

Every term is combined with every location. Two terms and three locations make six searches.

### Output sample

```json
{
  "id": "0825_1000203125_367267",
  "businessId": "1000203125",
  "bbbId": "0825",
  "bbbName": "BBB Heart of Texas",
  "businessName": "Benjamin BL Plumbing",
  "address": "4801 S Congress Ave",
  "city": "Austin",
  "state": "TX",
  "postalCode": "78745-2398",
  "phone": "(512) 559-4805",
  "phones": ["(512) 559-4805"],
  "rating": "A+",
  "ratingScore": 100,
  "accredited": true,
  "primaryCategory": "Plumber",
  "categories": [{"id": "10113-000", "name": "Plumber"}, {"id": "10113-300", "name": "Plumbing Renovation"}],
  "latitude": 30.2133,
  "longitude": -97.7695,
  "profileUrl": "https://www.bbb.org/us/tx/austin/profile/plumber/benjamin-bl-plumbing-0825-1000203125",
  "serviceAreasSummary": ["Williamson County,  TX", "Austin, TX", "Travis, TX"],
  "searchTerm": "plumber",
  "searchLocation": "Austin, TX",
  "country": "USA",
  "page": 2,
  "position": 16,
  "totalResultsForQuery": 2539,
  "scrapedAt": "2026-11-05T11:09:05Z"
}
```

### FAQ

**Does it open the business profile pages?**
No. The actor reads the search results pages only. Details that exist only on a profile page, such as complaint counts, hours or years in business, are not included. Every row carries `profileUrl` so you can follow up on the businesses you care about.

**How many businesses can one search return?**
That depends on bbb.org. The search reports its own total in `totalResultsForQuery`. The actor collects up to `maxResultsPerQuery` for each search.

**What happens if bbb.org shows a verification page instead of results?**
The actor stops that search, does not try to get past the page, and says so in the run status message. Rows already collected are kept. If every search ends this way the run finishes with an error status and nothing is charged. Try again later.

**What if a search finds nothing?**
The run finishes successfully with the status message "No businesses found for these searches" and is not charged.

**Can I run it again after an interruption?**
Yes. Progress is saved after every batch. A run that is restarted by the platform continues where it stopped and does not deliver or charge the same rows twice.

**The same business appears for two searches. Is it delivered twice?**
No. Each business is delivered once per run.

**Is the data public?**
Yes. The actor collects what bbb.org shows publicly on its search pages. Check the terms of the site and the laws that apply to you before you use the data, especially for outreach.

# Actor input Schema

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

Business types or names to search for, for example plumber or roofing contractor. Each term is searched in every location. Leave the whole input empty for a small demo run (plumber in Austin, TX, 5 results).

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

City and state, written as on bbb.org, for example Austin, TX or Denver, CO. For Canada use the city and province, for example Toronto, ON.

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

Country of the locations.

## `maxResultsPerQuery` (type: `integer`):

Maximum businesses collected for each term and location pair. A results page holds 15 businesses.

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

Leave on the default. The actor manages its own connection settings.

## Actor input object example

```json
{
  "searchTerms": [
    "plumber"
  ],
  "locations": [
    "Austin, TX",
    "Denver, CO"
  ],
  "country": "USA",
  "maxResultsPerQuery": 40,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Business listings from bbb.org

# 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"
    ],
    "locations": [
        "Austin, TX",
        "Denver, CO"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nanodata/bbb-business-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"],
    "locations": [
        "Austin, TX",
        "Denver, CO",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("nanodata/bbb-business-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"
  ],
  "locations": [
    "Austin, TX",
    "Denver, CO"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call nanodata/bbb-business-scraper --silent --output-dataset

```

## MCP server setup

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