# BBB Business Ratings, Accreditation & Complaints Finder (`dataspryva/bbb-business-ratings-accreditation-and-complaints`) Actor

Search the BBB directory for the US and Canada and get each business's rating, accreditation status, contacts, licences, hours, and review and complaint counts.

- **URL**: https://apify.com/dataspryva/bbb-business-ratings-accreditation-and-complaints.md
- **Developed by:** [Dataspryva](https://apify.com/dataspryva) (community)
- **Categories:** Lead generation, Automation, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/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 Ratings, Accreditation & Complaints Finder

Search the Better Business Bureau directory for the United States and Canada and turn any category or company name into structured business records: BBB letter grade, accreditation status, contacts, licences, hours, reviews and complaint counts, straight from bbb.org.

### What this actor does

- Searches BBB by keyword (a trade like "plumber" or a company name) across the US or Canadian directory, optionally narrowed to one or more cities or postal codes
- Also accepts pasted BBB search and business-profile URLs: a search URL keeps its own keyword, location, country, accreditation, sort and state parameters, and a profile URL returns that business fully detailed
- Opens each matching business's BBB profile to collect accreditation dates, contacts, hours, licences, social links, products/services and review/complaint counts
- Filters results by minimum BBB letter grade, BBB-accredited-only, or a state/province code
- Sorts results by relevance, rating, distance, or business name
- Can return one record per business, or one record per branch/franchise location when a business is listed at multiple addresses
- Omits any field BBB doesn't publish for a business instead of returning it empty

### Output per business

- `type` — always `bbb_business`
- `name`, `url` — BBB profile page
- `id` / `bbbId` — combined bureau-business identifier, `businessId`, `bureauId`
- `primaryCategory`, `categories[]`
- `rating` — BBB letter grade (`A+` through `F`), `notRatedReason` when unrated
- `accreditationStatus`, `bbbMember`, `dateAccredited`
- `phone`, `phones[]`, `additionalPhones[]`, `website`, `additionalWebsites[]`, `emails[]`
- `address` (`street`, `city`, `state`, `zipCode`, `country`), `latitude`, `longitude`
- `contactName`, `contactTitle`, `principalContacts[]`
- `fileOpenedDate`, `businessStarted`, `businessIncorporatedDate`, `yearsInBusiness`, `businessType`
- `hoursOfOperation`, `numberOfEmployees`, `description`, `productsAndServices`, `paymentMethods`
- `licenses` / `licensedBy`
- `logo`, `bbbBureau`, `socialLinks` (object keyed by platform, e.g. `facebook`/`instagram`), `alternateNames[]`
- `reviewCount`, `averageReviewRating`, `latestReviews[]`, `reviewsUrl`
- `complaintCount`, `complaintsClosedLast3Years`, `complaintsClosedLast12Months`, `complaintsUrl`, `ratingReasons[]`
- `serviceAreaSummary`, `serviceAreaDescription`, `requestQuoteUrl`, `localReportUrl`, `listingId` (branch mode), `hasMultipleLocations`, `outOfBusiness`, `isCharity`, `charitySeal` (when `isCharity` is true)
- `searchKeywords`, `searchLocation`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `keywords` | String | `plumber` | Business category or company name to search for (required unless `startUrls` is set) |
| `startUrls` | Array | – | BBB search or business-profile URLs. Search URLs keep their filters and are paginated; profile URLs return one fully detailed business each. Takes precedence over the keyword search fields |
| `locations` | Array | – | Cities or postal codes (e.g. `Chicago, IL`, `10001`, `Toronto, ON`), each searched separately; duplicate businesses are merged. Empty searches the whole country |
| `countries` | String (select) | `US` | `US` or `CA` BBB directory |
| `maxRecordsGlobal` | Integer | `3` | Maximum businesses for the whole run (1-5,000) |
| `maxRecordsPerLocation` | Integer | `50` | Maximum per location (0 = no per-location cap; BBB shows up to 225 per search) |
| `includeDetails` | Boolean | `true` | Open each business's BBB profile for contacts, dates, hours, licences, social links, reviews and complaints |
| `includeBranchLocations` | Boolean | `false` | One record per listed location instead of one per business |
| `minRating` | String (select) | `any` | Minimum BBB grade (`A+` down to `F`); businesses without a rating are excluded when set |
| `accreditedOnly` | Boolean | `false` | Only return BBB Accredited Businesses |
| `sortBy` | String (select) | `relevance` | `relevance`, `rating`, `distance`, `aToZ`, or `zToA` |
| `stateFilter` | String | – | Two-letter state/province code to keep results from one state when a search spans several |
| `proxyConfiguration` | Object | – | Optional proxy configuration; BBB is fetched directly first |

#### Example: accredited plumbers in Chicago, A or better

```json
{
  "keywords": "plumber",
  "locations": ["Chicago, IL"],
  "maxRecordsGlobal": 100,
  "minRating": "A",
  "accreditedOnly": true
}
```

#### Example: roofers across several Canadian cities, listing data only

```json
{
  "keywords": "roofing",
  "countries": "CA",
  "locations": ["Toronto, ON", "Ottawa, ON", "Vancouver, BC"],
  "maxRecordsGlobal": 300,
  "maxRecordsPerLocation": 100,
  "includeDetails": false
}
```

#### Example: look up one company by name

```json
{
  "keywords": "Roto-Rooter",
  "maxRecordsGlobal": 20
}
```

#### Example: scrape a saved BBB search and specific profiles

```json
{
  "startUrls": [
    "https://www.bbb.org/search?find_text=roofer&find_loc=Austin%2C+TX&find_country=USA&filter_accredited=1&sort=Rating",
    "https://www.bbb.org/us/tx/austin/profile/roofing-contractors/example-roofing-0654-90000000"
  ],
  "maxRecordsGlobal": 40
}
```

### Use cases

- Lead generation for local service trades with phones, emails, websites and named contacts
- Vendor and contractor vetting using BBB rating, accreditation, licences and years in business
- Reputation monitoring of rating, review count and complaint trends for a watchlist of businesses
- Market sizing — counting and comparing businesses by category, city or rating tier
- Enriching an existing company list with BBB accreditation and complaint history

### FAQ

**What does the BBB rating mean?**
BBB grades businesses from A+ down to F based on complaint history, time in business, transparency and licensing. Some businesses carry no grade; for those `rating` is omitted and `notRatedReason` may explain why.

**What does accreditation mean?**
Accredited Businesses have agreed to meet BBB's standards. `accreditationStatus` reports `Accredited` or `Not Accredited`, and `dateAccredited` gives the start date when accredited.

**Why did I get fewer businesses than BBB's listed result count?**
BBB can list one business multiple times — once per branch, franchise, or service address. By default this actor merges those into a single record per business. Turn on `includeBranchLocations` to get one record per listed location instead, each with its own address and `localReportUrl`.

**How many results can one search return?**
BBB caps a single search at 225 businesses. Add more entries to `locations`, or narrow with `stateFilter`, to collect more across a run, up to the 5,000 cap on `maxRecordsGlobal`.

**Can I search Canada?**
Yes — set `countries` to `CA` and use Canadian cities or postal codes such as `Toronto, ON`.

**Can I start from a BBB URL instead?**
Yes — paste BBB search or business-profile URLs into `startUrls`. A search URL keeps its keyword, location, country, accreditation, sort and state parameters, and every result page is followed; a profile URL returns that business with all profile details. When `startUrls` is set, the keyword search fields are ignored.

**Which search-URL filters are kept?**
Keyword, location, country, accreditation, sort and state. BBB category and rating facets are not forwarded, so a category-filtered URL returns its keyword/location results across categories.

**Why is a pasted search URL limited to 225 businesses?**
BBB itself caps one search at 15 result pages of 15 businesses. Split a large search into narrower locations, categories or state filters to collect more.

**Why is `includeDetails` worth turning off?**
With it off, you still get name, rating, accreditation, categories, phone, address, coordinates and the BBB profile link, from the search listing alone, which is noticeably faster for large runs.

**Why are `emails` or `website` missing for some businesses?**
Those fields only appear when the business published them on its own BBB profile; BBB does not require either.

**Does the actor return every review and complaint?**
It returns BBB's review and complaint counts plus the three latest review snippets, and links the full `reviewsUrl` and `complaintsUrl` for each business. BBB's full review and complaint pages sit behind the same bot protection as profile pages, so their bodies are not scraped.

**Does this need a BBB account or a proxy?**
No — it reads BBB's public directory and profile pages directly, and falls back to a proxy automatically only if a direct request is blocked.

**Why might a run finish with an empty dataset?**
Either the keyword has no matches in the chosen location, or the rating/accreditation/state filters excluded everything that was found.

**Is this affiliated with the Better Business Bureau?**
No. This is an independent tool that reads bbb.org's publicly accessible pages; you're responsible for using the data in line with BBB's own terms.

# Actor input Schema

## `keywords` (type: `string`):

What to search for on BBB: a business category (plumber, electrician, roofing, auto repair) or a company name. Required unless startUrls is set.

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

BBB search or business-profile URLs to scrape instead of a keyword search. Search URLs keep the keyword, location, country, accreditation, sort and state parameters they contain, and every result page is followed. Profile URLs return one fully detailed business each. When this is set, Keywords, Locations, Country, Sort and State are ignored.

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

Optional cities or postal codes, e.g. 'Chicago, IL', '10001', 'Toronto, ON'. Each is searched separately; businesses found twice are returned once. Leave empty for a country-wide search.

## `countries` (type: `string`):

BBB directory to search.

## `maxRecordsGlobal` (type: `integer`):

Maximum number of businesses for the whole run, across all locations.

## `maxRecordsPerLocation` (type: `integer`):

Maximum per location (0 = no per-location limit). BBB shows up to 225 businesses per search, so use several locations for more.

## `includeDetails` (type: `boolean`):

Also open each business's BBB profile for website, emails, contacts, dates, hours, licences, social links, reviews and complaints. Turn off for faster runs with search-listing data only.

## `includeBranchLocations` (type: `boolean`):

BBB lists some businesses once per location (branches, franchises, service addresses). Off: one record per business. On: one record per listed location, each with its own address, phone and coordinates.

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

Only businesses rated at least this grade (businesses without a rating are excluded when set).

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

Only return BBB Accredited Businesses.

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

Order of BBB search results.

## `stateFilter` (type: `string`):

Optional two-letter state or province code (e.g. IL, ON) to keep results from one state when a search area spans several.

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

Optional. BBB is fetched directly first; Apify proxies are used automatically only if needed. Choose your own proxy to use it as the fallback, or 'No proxy' to stay direct.

## Actor input object example

```json
{
  "keywords": "plumber",
  "countries": "US",
  "maxRecordsGlobal": 3,
  "maxRecordsPerLocation": 50,
  "includeDetails": true,
  "includeBranchLocations": false,
  "minRating": "any",
  "accreditedOnly": false,
  "sortBy": "relevance"
}
```

# Actor output Schema

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

All BBB business records.

## `contacts` (type: `string`):

Contact person, phones, emails, website and social links per business.

# 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 = {
    "keywords": "plumber",
    "countries": "US",
    "maxRecordsGlobal": 3,
    "includeDetails": true,
    "includeBranchLocations": false,
    "minRating": "any",
    "accreditedOnly": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/bbb-business-ratings-accreditation-and-complaints").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 = {
    "keywords": "plumber",
    "countries": "US",
    "maxRecordsGlobal": 3,
    "includeDetails": True,
    "includeBranchLocations": False,
    "minRating": "any",
    "accreditedOnly": False,
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/bbb-business-ratings-accreditation-and-complaints").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 '{
  "keywords": "plumber",
  "countries": "US",
  "maxRecordsGlobal": 3,
  "includeDetails": true,
  "includeBranchLocations": false,
  "minRating": "any",
  "accreditedOnly": false
}' |
apify call dataspryva/bbb-business-ratings-accreditation-and-complaints --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/bbb-business-ratings-accreditation-and-complaints"
        }
    }
}
```

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/zkXdUIRyq7zgjSEqn/builds/ILNdoaAxuBUFCCVPb/openapi.json
