agentleFS
carabain-digitalcarabain-digital/apify-agent-skills/skills/bbb-scraper/SKILL.md

bbb-scraper

Skill1 starsChanged 10 days agoMITView on GitHub

Scrape BBB (Better Business Bureau, bbb.org) business listings by keyword and location: name, BBB rating, accreditation, phone, address, categories. Add-ons: owners and contacts, email, website, business details, customer reviews and complaints. Runs the Apify Actor carabain-digital/bbb-scraper. Use for tasks like: BBB roofing contractor leads in Denver with owners; Monitor BBB complaints and reviews of a company.

  • Installs packages
  • Sends data out

The file

Files
SKILL.md

BBB Scraper - Leads, Ratings, Reviews, Complaints

Scrape BBB (Better Business Bureau, bbb.org) business listings by keyword and location: name, BBB rating, accreditation, phone, address, categories. Add-ons: owners and contacts, email, website, business details, customer reviews and complaints.

Runs on Apify as the Actor carabain-digital/bbb-scraper, billed per result to the user's own Apify account.

Setup

The user needs an Apify API token in APIFY_TOKEN (console.apify.com/settings/integrations). No Apify account yet? Sign up free: no credit card needed, and the Free plan includes $5 of credit every month, enough for about 2,000 businesss with this Actor.

Run it

Apify API, waits for the run and returns the items (up to 5 minutes; for bigger runs start it with POST /v2/acts/carabain-digital~bbb-scraper/runs and read the dataset afterwards):

curl -X POST 'https://api.apify.com/v2/acts/carabain-digital~bbb-scraper/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  -d '{"searchTerms": ["roofing"], "locations": ["Denver, CO"], "accreditedOnly": true, "includeDetails": true, "maxItems": 100}'

Python (pip install apify-client):

import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("carabain-digital/bbb-scraper").call(run_input={"searchTerms": ["roofing"], "locations": ["Denver, CO"], "accreditedOnly": true, "includeDetails": true, "maxItems": 100})
items = client.dataset(run["defaultDatasetId"]).list_items().items

MCP: add the Apify MCP server with this Actor as a tool: https://mcp.apify.com/?actors=carabain-digital/bbb-scraper.

Input

FieldTypeDescription
searchTermsarrayWhat to search for, as on bbb.org: a trade or category (plumber, roofing, dentist) or a business name. Each term is searched in every location below. Example: roofing.
locationsarrayWhere to search: City, ST, a ZIP code or a state code. Leave empty to search the whole country. Example: Denver, CO, 78753 or TX.
countrystringBBB covers the United States and Canada. Example: US. Values: US, CA. Default: "US".
startUrlsarrayBBB search result pages (https://www.bbb.org/search?find_text=...&find_loc=..., filters in the URL are kept) or business profiles (https://www.bbb.org/us/tx/austin/profile/.../indeed-0825-1000101793). A profile URL always comes with its details. Used in addition to the search terms. Format: [{"url": "https://..."}].
maxItemsintegerStop after this many businesses in total. Example: 100. Default: 100.
maxItemsPerSearchintegerCap each search term x location, so one big city does not use up Max businesses. Empty = no cap. Example: 200.
splitLargeSearchesbooleanBBB shows at most 225 results per search. When a search has more, the Actor repeats it per category (up to about 2,500 businesses per search). For more, add ZIP codes or nearby towns as locations. Default: true.
accreditedOnlybooleanOnly BBB Accredited Businesses. Default: false.
minRatingstringSkip businesses with a lower BBB letter grade (and unrated ones). Example: A. Values: A+, A, A-, B+, B, B-, C+, C, C-, D+, D, D-, F.
maxDistanceMilesintegerOnly businesses within this many miles of each location. Example: 10.
sortstringOrder of the search results, as on bbb.org. Values: relevance, distance, rating, name, name_desc. Default: "relevance".
includeDetailsbooleanOpen each business profile for website, email, owners and managers with their titles, extra phones, entity type, years in business, start, incorporation and accreditation dates, review and complaint counts and the description. Adds $2.00 per 1,000 businesses. Default: false.
maxReviewsintegerAlso collect up to this many customer reviews per business, newest first: rating, text, date, author and the business's reply. 0 = off. Adds $1.50 per 1,000 reviews. Example: 20. Default: 0.
maxComplaintsintegerAlso collect up to this many BBB complaints per business, newest first: type, status, date, text and the replies of business and customer. 0 = off. Adds $1.50 per 1,000 complaints. Example: 20. Default: 0.

Examples

BBB roofing contractor leads in Denver with owners: BBB Accredited roofing contractors in Denver, CO from bbb.org with BBB rating, phone, address, website, email and the owners' names and titles. Swap the trade and city for any market. Export to JSON, CSV or Excel.

{
  "searchTerms": [
    "roofing"
  ],
  "locations": [
    "Denver, CO"
  ],
  "accreditedOnly": true,
  "includeDetails": true,
  "maxItems": 100
}

Monitor BBB complaints and reviews of a company: The newest BBB complaints and customer reviews of a company (here Indeed) with status, text and the company's replies, plus its BBB rating and counts. Schedule it daily or weekly to catch new complaints. Export to JSON, CSV or Excel.

{
  "startUrls": [
    {
      "url": "https://www.bbb.org/us/tx/austin/profile/job-listing-service/indeed-0825-1000101793"
    }
  ],
  "maxReviews": 20,
  "maxComplaints": 20
}

Output

One dataset item per result. Main fields: name, bbbRating, accredited, category, phone, city, state, website, reviewCount, complaintCount, url.

FieldTypeDescription
idstringStable BBB business ID, <bbbId>-<businessId>
namestringBusiness name
urlstringBBB profile URL
bbbRatingstringBBB letter grade, A+ to F (null if not rated)
ratingScorenumberBBB's numeric rating score behind the grade (search results only)
accreditedbooleanBBB Accredited Business
categorystringPrimary category
categoriesarrayAll categories
phonestringMain phone number
addressstringStreet address
citystringCity
statestringState or province code
postalCodestringZIP or postal code
latitudenumberLatitude
longitudenumberLongitude
serviceAreasarrayAreas the business serves
logoUrlstringLogo image URL
localBbbstringLocal BBB office that keeps the file
requestQuoteUrlstringBBB request-a-quote link, if enabled
outOfBusinessbooleanMarked out of business
searchTermstringSearch term that found the business
searchLocationstringSearch location that found the business
scrapedAtstringScrape time, ISO 8601 UTC
websitestringWebsite (add-on Details)
emailstringEmail address, de-obfuscated (add-on Details)
contactsarrayOwners and managers: name, title, isPrincipal (add-on Details)
additionalPhonesarrayOther phone numbers (add-on Details)
additionalEmailsarrayOther email addresses (add-on Details)
additionalWebsitesarrayOther websites and social links (add-on Details)
alternateNamesarrayOther business names (add-on Details)
descriptionstringBusiness description (add-on Details)
entityTypestringLegal entity type, e.g. Corporation or LLC (add-on Details)
yearsInBusinessintegerYears in business (add-on Details)
numberOfEmployeesintegerNumber of employees, if given (add-on Details)
businessStartedstringBusiness start date (add-on Details)
incorporatedstringIncorporation date (add-on Details)
accreditedSincestringBBB accreditation date (add-on Details)
bbbFileOpenedstringDate BBB opened the file (add-on Details)
ratingReasonsarrayReasons BBB gives for the grade (add-on Details)
reviewCountintegerNumber of customer reviews on BBB (add-on Details)
averageReviewRatingnumberAverage customer review rating, 1-5 (add-on Details)
complaintCountintegerNumber of complaints on BBB (add-on Details)
complaintsClosedLast3YearsintegerComplaints closed in the past 3 years (add-on Details)
complaintsClosedLast12MonthsintegerComplaints closed in the past 12 months (add-on Details)
operatingHoursobjectOpening hours, if listed (add-on Details)
additionalInfoobjectOther profile texts, e.g. Products and Services (add-on Details)
reviewsarrayCustomer reviews: id, author, rating, text, date, reply, repliedAt (add-on Reviews)
complaintsarrayComplaints: id, type, status, date, text, responses (add-on Complaints)

Price

Pay per result: $2.50 per 1,000 businesss on the Apify Free plan, less on paid plans, plus $0.025 per run start per GB of memory. No subscription; Apify bills the run to the user's account.

  • Details (owners, email, website): $2.00 per 1,000. One business enriched from its BBB profile: website, email, owners and managers, extra phones, entity type, years in business, key dates, review and complaint counts, description.
  • Customer review: $1.50 per 1,000. One BBB customer review of a business: rating, text, date, author and the business's reply.
  • Complaint: $1.50 per 1,000. One BBB complaint against a business: type, status, date, text and the replies of business and customer.

Store page, reviews and full documentation: BBB Scraper - Leads, Ratings, Reviews, Complaints

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.