# Chamber Directory Scraper pro (`knutty_cadet/chamber-directory-scraper-pro`) Actor

Scrape business listings from Chamber of Commerce directory pages. Extracts name, category, address, phone, and website. Works with static HTML directories (Squarespace, WordPress, custom). ChamberMaster/GrowthZone sites are auto-detected and gracefully rejected.

- **URL**: https://apify.com/knutty\_cadet/chamber-directory-scraper-pro.md
- **Developed by:** [Anh Nguyen](https://apify.com/knutty_cadet) (community)
- **Categories:** E-commerce, SEO tools, Social media
- **Stats:** 2 total users, 0 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.00005 / actor start

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Chamber Directory Scraper

Extract business listings from chamber of commerce member directories. Get company names, contact details, addresses, websites, and social links in a clean, structured format.

### Key Features

- **Automatic Pagination** - Crawls multiple pages automatically; no manual configuration for page links when pagination is detected
- **Smart Adapters** - Detects and handles different directory platforms (static HTML, GrowthZone, ChamberMaster)
- **Clean Data** - Removes duplicates, strips UTM parameters, keeps business websites separate from social profiles
- **Structured Output** - Consistent JSON: name, phone (normalized when possible), email, address, optional city/state/zip, website, optional social URLs
- **Optional Directory Discovery** - Paste a chamber homepage and let the actor pick a likely member-directory URL before crawling
- **Fast & Reliable** - Built with Crawlee + Playwright

### Use Cases

- **Lead Generation** - Build targeted B2B contact lists
- **Market Research** - Analyze local business landscapes
- **Sales Prospecting** - Find potential customers in specific regions
- **Data Enrichment** - Supplement existing business databases

### Input

```json
{
  "startUrl": "https://www.carmichaelchamber.com/list",
  "maxPages": 5,
  "discoverDirectory": false
}
````

**Parameters**:

- `startUrl` (required) - Directory listing URL, or chamber homepage if `discoverDirectory` is true
- `maxPages` (optional, default: 10) - Maximum number of pages to crawl
- `discoverDirectory` (optional, default: false) - When true, opens `startUrl`, scores same-site links that look like a member/directory page, and crawls the best match; if none qualify, falls back to `startUrl`

### Output

Each business listing may include:

```json
{
  "name": "Biegler CPA Inc",
  "phone": "(916) 485-1040",
  "email": "info@bieglercpa.com",
  "address": "6608 Folsom Auburn Rd, Folsom, CA 95630",
  "city": "Folsom",
  "state": "CA",
  "zip": "95630",
  "website": "https://www.bieglercpa.com",
  "facebook": "https://www.facebook.com/example",
  "linkedin": "https://www.linkedin.com/company/example",
  "sourceUrl": "https://www.example-chamber.com/directory"
}
```

**Notes**:

- `city`, `state`, `zip` are best-effort (US-style lines ending in `ST 12345` or `City, ST ZIP`). If parsing is uncertain, only `address` is set.
- US phone numbers with 10 national digits are formatted as `(XXX) XXX-XXXX`. Other valid numbers (7+ digits) are kept after sanitizing encoding artifacts (e.g. `%20`, non-breaking spaces).
- Social fields appear when those links exist on the listing or profile page.

### Supported Platforms

- **Static HTML directories** - Traditional chamber websites
- **GrowthZone/ChamberMaster** - Modern chamber management platforms
- **Squarespace directories** - Including profile-style listings
- **Generic fallback** - Works with many directory-like layouts

### How It Works

1. **Optional discovery** - If enabled, finds a directory URL from the homepage
2. **Detects directory type** - Chooses an adapter pipeline
3. **Extracts listings** - Pulls fields using platform-specific logic
4. **Profile enrichment** - For same-site profile URLs, may open the detail page for richer data
5. **Cleans & normalizes** - Phone, URLs, optional address parts, deduplication

### Tips for Best Results

- Prefer the main directory listing URL for predictable results
- For `discoverDirectory`, use the real chamber homepage; review the log line that prints the chosen URL
- For large directories, increase `maxPages`
- Some GrowthZone sites work best with URLs like `/list/FindStartsWith?term=A`

### Example Runs

**Carmichael Chamber** (Squarespace-style):

- Input: `startUrl` `https://www.carmichaelchamber.com/list`, `maxPages` as needed
- Expect on the order of hundreds of listings depending on pagination

**Greensboro Chamber** (GrowthZone):

- Input: `https://chamber.greensboro.org/list/FindStartsWith?term=A`
- Large alphabetical result sets

For store listings, capture a few successful run logs and dataset previews (screenshots of the Apify run overview and a sample JSON row) so users can see what to expect.

### Technical Details

- **Crawlee** and **Playwright** (TypeScript)
- Adapter pattern for extensibility
- Automatic request retries for failed pages
- Crawler uses bounded concurrency and request rate limits (see `src/main.ts`)

### Notes

- Data quality depends on the source HTML
- Some chambers require login (you may get few or no rows)
- Listings need at least one of: phone, email, physical address, or business website
- Website live checks (HTTP ping) are intentionally not part of this actor to keep runs fast and avoid false negatives

### Troubleshooting

**No results returned?**

- Confirm the URL is a public listing (not behind login)
- Try `discoverDirectory` if you pasted a homepage by mistake
- For GrowthZone, try the `/list/FindStartsWith?term=A` pattern

**Fewer results than expected?**

- Increase `maxPages`
- Check logs for pagination and adapter selection

### Support

For issues or feature requests, contact the actor maintainer.

***

**Last updated**: 2026-04-11

# Actor input Schema

## `startUrl` (type: `string`):

Homepage or directory listing URL. If "Discover directory URL" is enabled, this can be the chamber homepage.

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

Maximum number of directory pages to crawl (pagination or load-more steps).

## `discoverDirectory` (type: `boolean`):

When true, loads startUrl once and tries to find a same-site member/directory link before crawling. If none is found, the run uses startUrl as entered.

## `debugProfileCrawl` (type: `boolean`):

Log each request type (listing vs profile), enqueue steps, and profile extraction hints. For troubleshooting locally.

## `maxProfiles` (type: `integer`):

Optional cap on how many member profile URLs are queued for detail crawling. Remaining listings are saved from directory cards only. Leave empty for no limit.

## Actor input object example

```json
{
  "startUrl": "https://www.carmichaelchamber.com/directory",
  "maxPages": 10,
  "discoverDirectory": false,
  "debugProfileCrawl": false
}
```

# 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 = {
    "startUrl": "https://www.carmichaelchamber.com/directory"
};

// Run the Actor and wait for it to finish
const run = await client.actor("knutty_cadet/chamber-directory-scraper-pro").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 = { "startUrl": "https://www.carmichaelchamber.com/directory" }

# Run the Actor and wait for it to finish
run = client.actor("knutty_cadet/chamber-directory-scraper-pro").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrl": "https://www.carmichaelchamber.com/directory"
}' |
apify call knutty_cadet/chamber-directory-scraper-pro --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=knutty_cadet/chamber-directory-scraper-pro",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Chamber Directory Scraper pro",
        "description": "Scrape business listings from Chamber of Commerce directory pages. Extracts name, category, address, phone, and website. Works with static HTML directories (Squarespace, WordPress, custom). ChamberMaster/GrowthZone sites are auto-detected and gracefully rejected.",
        "version": "1.0",
        "x-build-id": "Jr64Jv0Zff3G5FORm"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/knutty_cadet~chamber-directory-scraper-pro/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-knutty_cadet-chamber-directory-scraper-pro",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/knutty_cadet~chamber-directory-scraper-pro/runs": {
            "post": {
                "operationId": "runs-sync-knutty_cadet-chamber-directory-scraper-pro",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/knutty_cadet~chamber-directory-scraper-pro/run-sync": {
            "post": {
                "operationId": "run-sync-knutty_cadet-chamber-directory-scraper-pro",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrl"
                ],
                "properties": {
                    "startUrl": {
                        "title": "Directory URL",
                        "type": "string",
                        "description": "Homepage or directory listing URL. If \"Discover directory URL\" is enabled, this can be the chamber homepage."
                    },
                    "maxPages": {
                        "title": "Max pages",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Maximum number of directory pages to crawl (pagination or load-more steps).",
                        "default": 10
                    },
                    "discoverDirectory": {
                        "title": "Discover directory URL",
                        "type": "boolean",
                        "description": "When true, loads startUrl once and tries to find a same-site member/directory link before crawling. If none is found, the run uses startUrl as entered.",
                        "default": false
                    },
                    "debugProfileCrawl": {
                        "title": "Debug profile crawl",
                        "type": "boolean",
                        "description": "Log each request type (listing vs profile), enqueue steps, and profile extraction hints. For troubleshooting locally.",
                        "default": false
                    },
                    "maxProfiles": {
                        "title": "Max profile pages",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Optional cap on how many member profile URLs are queued for detail crawling. Remaining listings are saved from directory cards only. Leave empty for no limit."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
