# Chamber of Commerce Business Directory Scraper (`powerai/chamberofcommerce-business-scraper`) Actor

Scrape business listings from Chamber of Commerce directories with automatic pagination

- **URL**: https://apify.com/powerai/chamberofcommerce-business-scraper.md
- **Developed by:** [PowerAI](https://apify.com/powerai) (community)
- **Categories:** Lead generation, Automation, Other
- **Stats:** 20 total users, 1 monthly users, 90.9% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 of Commerce Business Directory Scraper

This actor allows you to scrape business listings from the Chamber of Commerce business directory. It automatically handles pagination and extracts comprehensive business information including names, categories, addresses, review counts, and logo images.

### Features

- **URL-based Scraping:** Extract business listings by providing a complete Chamber of Commerce directory URL
- **Automatic Pagination:** Automatically navigates through pages until reaching the end or max items limit
- **Comprehensive Business Data:** Extract detailed information about each business including:
  - Business name
  - Category/type
  - Full address
  - Review count
  - Logo image URL
  - Business detail page URL
- **Automatic Deduplication:** Uses unique business IDs to avoid duplicates
- **Configurable Limits:** Set maximum number of businesses to scrape

### Input Parameters

| Field      | Type    | Required | Description                                    |
|------------|---------|----------|------------------------------------------------|
| `searchUrl`| string  | Yes      | Complete Chamber of Commerce directory URL to scrape |
| `maxItems` | integer | No       | Maximum number of businesses to fetch         |

### Output

The output is a list of business objects, each containing:

- `searchUrl`: The original search URL used
- `uniqueId`: Unique identifier for the business
- `businessName`: Name of the business
- `category`: Business category/type
- `address`: Full business address
- `reviewCount`: Number of reviews
- `logoUrl`: URL to the business logo image
- `businessUrl`: URL to the business detail page
- `scrapedAt`: Timestamp of when the data was scraped

Example output:

```json
[
  {
    "searchUrl": "https://www.chamberofcommerce.com/business-directory/california/granada-hills/food-dining/",
    "uniqueId": "40031867",
    "businessName": "Italia Bakery & Deli",
    "category": "Restaurant",
    "address": "11134 Balboa Blvd Granada Hills, California 91344",
    "reviewCount": 271,
    "logoUrl": "https://www.chamberofcommerce.com/show_image.php?zc=2&h=200&w=200&src=https://a.mktgcdn.com/p/...",
    "businessUrl": "https://www.chamberofcommerce.com/business-directory/california/granada-hills/restaurant/40031867-italia-bakery-deli",
    "scrapedAt": "2025-02-24T10:30:00.000Z"
  },
  ...
]
```

### Use Cases

- Business directory data collection
- Local business research and analysis
- Market research for specific locations
- Lead generation for local businesses
- Competitor analysis

### Notes

- The actor uses a real browser to handle dynamic content
- Results are automatically paginated until reaching the end or max items limit
- The actor includes random delays between actions to avoid rate limiting
- Some businesses may have zero reviews
- Business categories can include multiple types (e.g., "Restaurant, Bakery")
- Logo images may not be available for all businesses

***

**Start collecting business directory data today!**

# Actor input Schema

## `searchUrl` (type: `string`):

The complete Chamber of Commerce business directory URL to scrape

## `maxItems` (type: `integer`):

Maximum number of businesses to fetch

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

Proxy settings for the actor

## Actor input object example

```json
{
  "searchUrl": "https://www.chamberofcommerce.com/business-directory/california/granada-hills/food-dining/",
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("powerai/chamberofcommerce-business-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("powerai/chamberofcommerce-business-scraper").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 '{}' |
apify call powerai/chamberofcommerce-business-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/627zgw5NDeOijj4h8/builds/ix6YDLMCydIYOY6t5/openapi.json
