# BBB Business Scraper \[Just 💰$0.54] (`blackfalcondata/bbb-org-scraper`) Actor

Scrape Better Business Bureau (bbb.org) business profiles in the USA and Canada: BBB rating, accreditation, contact details, address, hours, reviews and complaint counts. Search by keyword and location or paste BBB URLs. Incremental mode flags new and changed profiles.

- **URL**: https://apify.com/blackfalcondata/bbb-org-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** Developer tools, Lead generation, Automation
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.54 / 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

### What does BBB Business Scraper do?

BBB Business Scraper extracts structured record data from [bbb.org](https://bbb.org) — including contact details, full descriptions, location data, and seller ratings. It supports keyword search, location filters, and controllable result limits, so you can run the same query consistently over time. The actor also offers detail enrichment (full descriptions, company profiles, and contact information) where the source provides them.

**New to Apify?** [Sign up free](https://console.apify.com/sign-up?fpr=1h3gvi) and use the included $5 monthly platform credit to test this actor.

### Key features

- **⭐ Ratings and review counts:** `reviews` for every record that has them.
- **📍 Coordinates:** `latitude` and `longitude` on each record that has a location, ready for a map.
- **🏘️ Address:** `streetAddress`, `city` and `zipCode` as separate fields for every record that lists them.
- **📇 Contact details:** `phone`, `email` and `website` where the record publishes them.
- **🍽️ Cuisines and place types:** `businessType` tell you what kind of place each record is.
- **🕒 Opening hours:** `hours` where the record publishes them.
- **🌍 Region selection:** choose United States and Canada with the `country` input.
- **🔍 Keyword search:** search bbb.org by keyword with the `query` input, in the place you name in `location`.
- **🧭 Radius search:** search around a point with `lat`, `lon` and `radiusKm`.
- **♻️ Incremental mode:** recurring runs emit only directory entries that are new or updated — keep your supplier-outreach lists fresh without re-fetching the full directory. Saves 80–95% on weekly syncs.
- **🔔 Notifications:** Telegram, Slack, Discord, WhatsApp Cloud API, and generic webhook out of the box. Pair with incremental for daily new-listing alerts without pipeline glue.

### What data can you extract from bbb.org?

Each result includes Core record fields (`listingId`, `listingKey`, `profileUrl`, `portalUrl`, `businessId`, `bbbId`, `bbbOfficeName`, and `name`, and more), detail fields when enrichment is enabled (`description` and `detailFetched`), and contact information (`phone`, `additionalPhones`, `email`, and `additionalEmails`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

Enable detail enrichment in the input to get richer fields such as full descriptions, company profiles, and contact information where the source provides them.

### Input

The main inputs are a search keyword, an optional location filter, and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`query`** — Business name or category to search for, e.g. "plumber", "roofing", "auto repair". Required if no startUrls provided. Use a JSON array for multi-keyword runs, e.g. \["plumber","electrician"].
- **`location`** — City and state/province, e.g. "Los Angeles, CA". Also accepts a ZIP/postal code. Use a JSON array to sweep several locations, e.g. \["Los Angeles, CA","Phoenix, AZ"].
- **`country`** — Which BBB market to search. (default: `"USA"`)
- **`maxResults`** — Maximum total results (0 = unlimited). A single keyword + location search reaches a few hundred businesses; add more locations or keywords for wider coverage. (default: `100`)
- **`maxPages`** — Highest result page to read for each search (15 businesses per page, 15 pages at most). Raised automatically when Max Results needs more pages.
- **`startUrls`** — Paste raw BBB search URLs. Each URL becomes its own search task; results are merged and deduped by business across all URLs. When provided, startUrls REPLACE the query/location fields (each supported URL becomes one task; unsupported URLs are skipped, and if none is supported the run stops with an input error). (default: `[]`)
- **`includeDetails`** — Open each business profile for the full record: email, website, owner, hours, service areas, licences, accreditation dates, review and complaint counts. Off = search-result fields only (faster, fewer details). (default: `true`)
- **`includeCompanyProfile`** — Read each business profile page for the full record. Needs Include Full Details switched on. Off = search-result fields only. (default: `true`)
- **`scrapeReviews`** — Add each business's customer reviews to its record: star rating, reviewer name, date, review text and the business's reply. Off by default. Businesses without reviews get an empty list. (default: `false`)
- **`maxReviewPages`** — How many pages of reviews to read for each business (10 reviews per page, newest first). Only used when Include Customer Reviews is on. (default: `1`)
- **`descriptionMaxLength`** — Truncate the business description to N chars. 0 = no truncation. (default: `0`)
- **`compact`** — Core fields only (for AI-agent/MCP workflows). (default: `false`)
- ...and 23 more parameters

### Input examples

**Basic search** — Keyword-driven search scoped to a city with a tight radius.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "query": "plumber",
  "location": "Los Angeles, CA",
  "radiusKm": 25,
  "maxResults": 50
}
```

**Incremental tracking** — Only emit records that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "plumber",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "plumber-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "query": "plumber",
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured record records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example record record

```json
{
  "listingId": "3f94395234ec85b9a88a543961aaa46761f39aa02194afef392b110c2f673f86",
  "listingKey": "1216_1000040787_246958",
  "profileUrl": "https://www.bbb.org/us/ca/los-angeles/profile/hydro-jetting/tingos-plumbing-inc-1216-1000040787",
  "portalUrl": "https://www.bbb.org/us/ca/los-angeles/profile/hydro-jetting/tingos-plumbing-inc-1216-1000040787",
  "businessId": "1000040787",
  "bbbId": "1216",
  "bbbOfficeName": "BBB of Los Angeles & Silicon Valley",
  "name": "Tingo's Plumbing",
  "title": "Tingo's Plumbing, Inc.",
  "alternateNames": [
    "Tingo's Plumbing, Inc."
  ],
  "bbbRating": "A+",
  "ratingScore": 100,
  "isAccredited": true,
  "accreditedDate": "2025-04-30",
  "bbbFileOpenedDate": "2025-02-27",
  "phone": "(213) 285-7769",
  "email": "tingosplumbing@gmail.com",
  "website": "https://www.tingosplumbing.com/home",
  "ownerName": "Reina Morales",
  "ownerTitle": "President",
  "streetAddress": "PO Box 70268",
  "city": "Los Angeles",
  "stateCode": "CA",
  "zipCode": "90070-0268",
  "formattedAddress": "PO Box 70268, Los Angeles, CA 90070-0268",
  "countryCode": "US",
  "latitude": 34.04,
  "longitude": -118.3,
  "location": "Los Angeles, CA",
  "serviceAreas": [
    "Los Angeles, CA"
  ],
  "hasServiceArea": true,
  "yearsInBusiness": 9,
  "businessStartDate": "2017-06-05",
  "incorporatedDate": "2020-02-18",
  "businessType": "Corporation",
  "entityType": "Corporation",
  "isOutOfBusiness": false,
  "description": "Plumbing Services",
  "licenses": [
    {
      "licenseNumber": "4561459",
      "agency": "1-Secretary of State-Corp, LLC and Notaries",
      "agencyUrl": "https://bizfileonline.sos.ca.gov/search/business"
    },
    {
      "licenseNumber": "1068929",
      "agency": "2-Contractors State Licensing Board",
      "agencyUrl": "https://www.cslb.ca.gov/",
      "expirationDate": "2028-09-30"
    }
  ],
  "socialProfiles": [
    {
      "type": "facebook",
      "label": "Facebook",
      "url": "https://www.facebook.com/TingosPlumbingInc",
      "portalUrl": "https://www.facebook.com/TingosPlumbingInc"
    },
    {
      "type": "instagram",
      "label": "Instagram",
      "url": "https://www.instagram.com/tingosplumbing",
      "portalUrl": "https://www.instagram.com/tingosplumbing"
    }
  ],
  "primaryCategory": "Hydro Jetting",
  "categories": [
    "Hydro Jetting",
    "Plumber"
  ],
  "categoryTree": [
    "Home",
    "California",
    "Los Angeles",
    "Hydro Jetting",
    "Tingo's Plumbing"
  ],
  "reviewsTotal": 1,
  "averageReviewRating": 4,
  "complaintsTotal": 0,
  "complaintsClosedLast3Years": 0,
  "complaintsClosedLast12Months": 0,
  "reviewsUrl": "https://www.bbb.org/us/ca/los-angeles/profile/hydro-jetting/tingos-plumbing-inc-1216-1000040787/customer-reviews",
  "complaintsUrl": "https://www.bbb.org/us/ca/los-angeles/profile/hydro-jetting/tingos-plumbing-inc-1216-1000040787/complaints",
  "leaveReviewUrl": "https://www.bbb.org/us/ca/los-angeles/profile/hydro-jetting/tingos-plumbing-inc-1216-1000040787/leave-a-review",
  "acceptsQuoteRequests": true,
  "searchKeyword": "plumber",
  "searchLocation": "Los Angeles, CA",
  "searchQuery": "plumber",
  "contentQuality": "full",
  "detailFetched": true,
  "scrapedAt": "2026-10-13T19:06:18.772Z",
  "source": "bbb.org",
  "contentHash": "0dea98ee6fcac23c322f260943378134bbbc351bcd1c9cde46d0c2b7fc7b64a0"
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape bbb.org

1. Go to [BBB Business Scraper](https://apify.com/blackfalcondata/bbb-org-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword and optional location filter.
3. Set `maxResults` to control how many results you need.
4. Enable `includeDetails` if you need full descriptions, contact info.
5. Click **Start** and wait for the run to finish.
6. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract record data from bbb.org for market research and competitive analysis.
- Monitor new and changed records on scheduled runs without processing the full dataset every time.
- Use structured location data for regional analysis, mapping, and geo-targeting.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.
- Benchmark seller / dealer reputation using rating fields.

### How much does it cost to scrape bbb.org?

BBB Business Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.0045 per run
- **Per result:** $0.00054 per record record

Example costs:

- 10 results: **$0.0099**
- 25 results: **$0.018**
- 100 results: **$0.058**
- 200 results: **$0.11**
- 500 results: **$0.27**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of records that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 250 records per run, daily polling (30 runs/month). Costs scale linearly with the number of records.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.14 | $0.01 | $0.13 (92%) | $0.34 |
| 15% — moderate broad query | $0.14 | $0.02 | $0.11 (82%) | $0.74 |
| 30% — high-volume aggregator | $0.14 | $0.04 | $0.09 (68%) | $1.35 |

Full re-scrape monthly cost at the same cadence: $4.19. First month with incremental costs $0.47 / $0.86 / $1.44 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage is included in the per-result fee shown above.

### FAQ

#### How many results can I get from bbb.org?

The number of results depends on the search query and available records on bbb.org. Use the `maxResults` parameter to control how many results are returned per run.

#### Does BBB Business Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed records on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate BBB Business Scraper with other apps?

Yes. BBB Business Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use BBB Business Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use BBB Business Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, `descriptionMaxLength`, a single `descriptionFormat`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape bbb.org?

This actor extracts publicly available data from bbb.org. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/bbb-org-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [1182.ee Scraper - Estonian Business Directory](https://apify.com/blackfalcondata/1182-ee-scraper?fpr=1h3gvi) — Scrape the 1182.ee Estonian business directory by keyword and get registry codes, phone numbers.
- [1188.lv Business Directory Scraper](https://apify.com/blackfalcondata/1188-lv-scraper?fpr=1h3gvi) — Scrape 1188.lv — Latvia's business directory. Search by keyword or city and get the phone number.
- [Ahrefs Blog Scraper - Posts, Authors & Full Text](https://apify.com/blackfalcondata/ahrefs-com-scraper?fpr=1h3gvi) — Scrape the ahrefs.com blog: search posts by keyword, filter by category, and export title, excerpt,.
- [Apontador Brazil Business Scraper](https://apify.com/blackfalcondata/apontador-com-br-scraper?fpr=1h3gvi) — Scrape Apontador — Brazil's local business directory. Search any city and category for business.
- [Bizi.si Slovenian Company Scraper](https://apify.com/blackfalcondata/bizi-si-scraper?fpr=1h3gvi) — Get Slovenian company records from the bizi.si registry: name, registration number, tax ID,.
- [Buscja Business Directory Scraper (Brazil)](https://apify.com/blackfalcondata/buscja-com-scraper?fpr=1h3gvi) — Scrape Brazilian business listings from buscja.com: name, address, phone, website, categories,.
- [ConsumerAffairs Reviews Scraper](https://apify.com/blackfalcondata/consumeraffairs-com-scraper?fpr=1h3gvi) — Scrape consumer reviews from consumeraffairs.com for any US company. Export the review text.
- [Custplace Company Reviews & Ratings Scraper](https://apify.com/blackfalcondata/custplace-com-scraper?fpr=1h3gvi) — Scrape fr.custplace.com — search French companies by brand or sector and export their ratings,.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

### Disclaimer

This actor accesses only publicly available data on bbb.org. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with BBB Business's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is an independent tool and is not affiliated with, endorsed by, or sponsored by BBB Business or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

### Search keywords

bbb scraper, bbb api, apify bbb, bbb data extraction, bbb business scraper, bbb business api, apify bbb business, bbb business data extraction, bbb.org scraper, bbb.org data, bbb.org api, bbb business united states, bbb business united states scraper, bbb business canada, bbb business canada scraper.

# Changelog

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

# Actor input Schema

## `query` (type: `string`):

Business name or category to search for, e.g. "plumber", "roofing", "auto repair". Required if no startUrls provided. Use a JSON array for multi-keyword runs, e.g. \["plumber","electrician"].

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

City and state/province, e.g. "Los Angeles, CA". Also accepts a ZIP/postal code. Use a JSON array to sweep several locations, e.g. \["Los Angeles, CA","Phoenix, AZ"].

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

Which BBB market to search.

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

Maximum total results (0 = unlimited). A single keyword + location search reaches a few hundred businesses; add more locations or keywords for wider coverage.

## `maxPages` (type: `integer`):

Highest result page to read for each search (15 businesses per page, 15 pages at most). Raised automatically when Max Results needs more pages.

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

Paste raw BBB search URLs. Each URL becomes its own search task; results are merged and deduped by business across all URLs. When provided, startUrls REPLACE the query/location fields (each supported URL becomes one task; unsupported URLs are skipped, and if none is supported the run stops with an input error).

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

Open each business profile for the full record: email, website, owner, hours, service areas, licences, accreditation dates, review and complaint counts. Off = search-result fields only (faster, fewer details).

## `includeCompanyProfile` (type: `boolean`):

Read each business profile page for the full record. Needs Include Full Details switched on. Off = search-result fields only.

## `scrapeReviews` (type: `boolean`):

Add each business's customer reviews to its record: star rating, reviewer name, date, review text and the business's reply. Off by default. Businesses without reviews get an empty list.

## `maxReviewPages` (type: `integer`):

How many pages of reviews to read for each business (10 reviews per page, newest first). Only used when Include Customer Reviews is on.

## `descriptionMaxLength` (type: `integer`):

Truncate the business description to N chars. 0 = no truncation.

## `compact` (type: `boolean`):

Core fields only (for AI-agent/MCP workflows).

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

## `incrementalMode` (type: `boolean`):

Compare against previous run state. stateKey is optional — defaults to a value derived from search inputs (queries, locations, startUrls, country) so different filter sets never share state.

## `stateKey` (type: `string`):

Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.

## `skipReposts` (type: `boolean`):

When incremental, skip businesses whose profile matches one that disappeared in a prior run (cross-run duplicate detection).

## `emitUnchanged` (type: `boolean`):

When incremental mode is on, also emit businesses whose profile has not changed since the last run.

## `emitExpired` (type: `boolean`):

When incremental mode is on, also emit businesses that were seen before but are no longer found.

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for new and updated businesses. Has no effect outside incremental mode.

## `notificationLimit` (type: `integer`):

Maximum number of businesses included in each notification message (1–20).

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results (including any contact details). Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## `descriptionFormat` (type: `string`):

This actor outputs only a plain-text `description`, so every option keeps it: `all` and `text` are equivalent, and `html` / `markdown` also keep the plain-text description (there is no HTML or Markdown variant to switch to).

## `lat` (type: `number`):

Latitude of a centre point. Pair with Longitude; only businesses inside the radius are kept. Works best together with a Location, because the search itself is run per place.

## `lon` (type: `number`):

Longitude of the centre point. Pair with Latitude.

## `radiusKm` (type: `integer`):

Radius in kilometres around the centre point (0 or empty = 25 km). Only businesses whose listed coordinates fall inside it are returned; businesses without coordinates are kept.

## Actor input object example

```json
{
  "query": "plumber",
  "location": "Los Angeles, CA",
  "country": "USA",
  "maxResults": 100,
  "startUrls": [],
  "includeDetails": true,
  "includeCompanyProfile": true,
  "scrapeReviews": false,
  "maxReviewPages": 1,
  "descriptionMaxLength": 0,
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "skipReposts": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notifyOnlyChanges": false,
  "notificationLimit": 5,
  "descriptionFormat": "all"
}
```

# Actor output Schema

## `results` (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 = {
    "query": "plumber",
    "location": "Los Angeles, CA",
    "maxResults": 100,
    "excludeEmptyFields": false,
    "descriptionFormat": "all"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/bbb-org-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 = {
    "query": "plumber",
    "location": "Los Angeles, CA",
    "maxResults": 100,
    "excludeEmptyFields": False,
    "descriptionFormat": "all",
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/bbb-org-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 '{
  "query": "plumber",
  "location": "Los Angeles, CA",
  "maxResults": 100,
  "excludeEmptyFields": false,
  "descriptionFormat": "all"
}' |
apify call blackfalcondata/bbb-org-scraper --silent --output-dataset

```

## MCP server setup

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