# US Business Directory Scraper - Ratings, Phones & Addresses (`logiover/us-business-directory-scraper`) Actor

Export US business listings with accreditation status, letter ratings, numeric scores, phone numbers, street addresses and geo-coordinates. Search any trade in any city - 26 fields per record, straight to CSV, Excel or Google Sheets. Built for B2B lead generation and local market research.

- **URL**: https://apify.com/logiover/us-business-directory-scraper.md
- **Developed by:** [Logiover](https://apify.com/logiover) (community)
- **Categories:** Lead generation
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 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.
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

## US Business Directory Scraper — Accredited Companies, Letter Ratings, Phones & Addresses

Export verified **US business listings** with **accreditation status**, **letter ratings**, **numeric rating scores**, phone numbers, street addresses and geo-coordinates — straight to CSV, Excel, JSON or Google Sheets. Search any trade in any city and pull the whole result set in one run.

Built for **B2B lead generation**, local market research, contractor sourcing, competitor mapping and sales territory planning.

### What you get per business

| Field | Example |
|---|---|
| `businessName` | Home Integrity Solutions LLC |
| `tradeCategory` | Roofing Contractors |
| `rating` | A+ |
| `ratingScore` | 95.33 |
| `isAccredited` | true |
| `phone` / `allPhones` | (214) 498-6458 |
| `streetAddress`, `city`, `state`, `postalCode` | Dallas, TX 75205-5565 |
| `latitude`, `longitude` | 32.825031, -96.788742 |
| `categories` | Roofing Contractors, Gutters |
| `servesArea`, `serviceAreas` | true — Collin County TX, Dallas County TX |
| `profileUrl`, `requestQuoteUrl`, `logoUrl` | direct links |
| `businessId`, `recordId`, `bureauName` | stable identifiers |
| `categoryIds`, `isCharity`, `hasCharitySeal` | directory codes and status flags |
| `searchTerm`, `searchLocation`, `scrapedAt` | provenance on every row |

**27 fields per record.** Every row carries the trade and location it was found under, so a thousand-row export stays sortable by market.

### How deep does it go

A single trade-and-city search typically reports **thousands of matches** — "roofing contractors" in Dallas alone reports 8,379. The directory serves 15 businesses per page across 15 pages, so one search yields up to **225 records**.

Depth comes from the grid: **every search term runs against every location.** Twenty trades across fifty cities is a thousand searches and well over a hundred thousand records. Measured on this Actor: 7 pages returned 105 unique businesses with zero duplicates.

### Use cases

- **Lead lists for contractors and home services** — pull every accredited roofer, plumber, HVAC or electrical company across your service territory with phone numbers attached.
- **Vendor vetting and procurement** — filter by minimum rating score or accredited-only to shortlist suppliers.
- **Local SEO and market analysis** — count competitors per trade per city, map saturation by ZIP.
- **CRM enrichment** — match your existing accounts against accreditation status and current ratings.
- **Territory planning for field sales** — latitude and longitude on every row feed straight into route mapping.
- **Franchise and acquisition research** — spot highly rated independents in a target metro.

### Input

```json
{
  "searchTerms": ["roofing contractors", "plumbers", "hvac contractors"],
  "locations": ["Dallas, TX", "Austin, TX", "Phoenix, AZ"],
  "maxResults": 5000,
  "maxPagesPerSearch": 15,
  "minRatingScore": 0,
  "accreditedOnly": false
}
```

- **`searchTerms`** — trades, categories or company names. Combined with every location.
- **`locations`** — "City, ST", a ZIP code, or a state name.
- **`maxResults`** — hard stop across all searches.
- **`maxPagesPerSearch`** — 15 is the directory's own ceiling; add trades or cities for more depth, not more pages.
- **`minRatingScore`** — keep only businesses at or above a score from 0 to 100.
- **`accreditedOnly`** — accredited businesses only.

### Output

```json
{
  "businessName": "Home Integrity Solutions LLC",
  "tradeCategory": "Roofing Contractors",
  "rating": "A",
  "ratingScore": 95.33,
  "isAccredited": true,
  "phone": "(214) 498-6458",
  "streetAddress": "",
  "city": "Dallas",
  "state": "TX",
  "postalCode": "75205-5565",
  "latitude": 32.82503128051758,
  "longitude": -96.7887420654297,
  "profileUrl": "https://www.bbb.org/us/tx/dallas/profile/roofing-contractors/home-integrity-solutions-llc-0875-91349575",
  "searchTerm": "roofing contractors",
  "searchLocation": "Dallas, TX",
  "scrapedAt": "2026-10-07T12:00:00.000Z"
}
```

### No API key needed

There is no public API for this directory and no account to register. The records are rendered into the search page itself, so this Actor reads them complete rather than reassembling them from card markup — which is why fields like `ratingScore`, `latitude` and `serviceAreas` come through intact instead of arriving empty.

### Exporting

Results land in a dataset you can download as **CSV, Excel (XLSX), JSON, JSONL, XML or RSS**, pull through the Apify API, or push into **Google Sheets**, Airtable, HubSpot, Salesforce, Make or Zapier. Point your CRM importer straight at the CSV — the column names are already clean.

### Proxy and reliability

The directory refuses datacenter addresses. This Actor runs on a **US residential** proxy group by default, which answered every request in testing. When an exit address is refused it is replaced within 250 ms rather than waited out; a rate-limit response is the opposite case and backs off instead. One unreachable page is skipped, not treated as the end of the search, so a single bad address never costs you the rest of a city.

Every run prints a summary naming the outcome — `COMPLETED`, `NO_MATCHES` or `FETCH_FAILED` — plus how many matches the directory reported per search, so an empty result is never ambiguous.

### Keywords

bbb scraper, better business bureau scraper, us business directory scraper, accredited business list, business ratings scraper, contractor leads scraper, roofing contractor leads, plumber leads, hvac leads, electrician leads, local business data export, b2b lead generation scraper, company phone number extractor, business address scraper, us company directory csv, local business api alternative, trade directory scraper, small business database, business rating score data, contractor directory export, service area business data, b2b prospecting list builder, sales territory data, local seo competitor data, business accreditation data

### Legal

This Actor collects only publicly visible directory pages — no login, no paywall, no private data. It does not collect personal data about consumers; business contact details are published by the businesses themselves for the purpose of being contacted. You are responsible for how you use exported data, including compliance with GDPR, CCPA, the TCPA and applicable anti-spam rules when contacting businesses.

Not affiliated with, endorsed by, or connected to the Better Business Bureau or the International Association of Better Business Bureaus. All trademarks belong to their owners. "BBB" is referenced only to describe which public pages this tool reads.

### Related Actors

- Trustpilot Reviews Scraper — customer reviews and ratings
- Yellow Pages / local directory scrapers — complementary coverage
- Work Email Finder — turn company domains into verified work addresses
- Bulk DNS Records Lookup — enrich company domains with infrastructure data

# Changelog

This Actor's version history is a separate document: https://apify.com/logiover/us-business-directory-scraper/changelog.md

# Actor input Schema

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

What to look for in each location — a trade, a category or a company name. Every term is run against every location, so 20 trades × 50 cities is 1,000 searches.

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

US city and state, ZIP code, or state name. Combined with every search term above.

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

Stop after this many records across all searches.

## `maxPagesPerSearch` (type: `integer`):

The directory serves 15 businesses per page and allows 15 pages per search, so 15 is the practical ceiling. Add more trades or cities for more depth, not more pages.

## `minRatingScore` (type: `integer`):

Keep only businesses scoring at or above this (0-100). Leave at 0 for everything.

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

Keep only accredited businesses.

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

The directory refuses datacenter addresses. A US residential group answers every request and is what this runs on by default.

## Actor input object example

```json
{
  "searchTerms": [
    "roofing contractors"
  ],
  "locations": [
    "Dallas, TX"
  ],
  "maxResults": 60,
  "maxPagesPerSearch": 4,
  "minRatingScore": 0,
  "accreditedOnly": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# 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": [
        "roofing contractors"
    ],
    "locations": [
        "Dallas, TX"
    ],
    "maxResults": 60,
    "maxPagesPerSearch": 4,
    "minRatingScore": 0,
    "accreditedOnly": false,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("logiover/us-business-directory-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": ["roofing contractors"],
    "locations": ["Dallas, TX"],
    "maxResults": 60,
    "maxPagesPerSearch": 4,
    "minRatingScore": 0,
    "accreditedOnly": False,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("logiover/us-business-directory-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": [
    "roofing contractors"
  ],
  "locations": [
    "Dallas, TX"
  ],
  "maxResults": 60,
  "maxPagesPerSearch": 4,
  "minRatingScore": 0,
  "accreditedOnly": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call logiover/us-business-directory-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,logiover/us-business-directory-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/iRZtnhVw1CmiovAd0/builds/T2oVgwQ7vnbIfmqac/openapi.json
