# Industry Association Directory Scraper (`moving_beacon-owner1/industry-association-directory-scraper`) Actor

Scrapes member directories from industry associations and chambers of commerce. Automatically detects GrowthZone/ChamberMaster directories or uses generic CSS/XPath selectors, extracting business names, contact details, addresses, websites, and profile URLs.

- **URL**: https://apify.com/moving\_beacon-owner1/industry-association-directory-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Categories:** Automation, Lead generation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.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

## Industry Association Directory Scraper

Scrapes member directories of industry associations and chambers of commerce. It auto-detects **GrowthZone/ChamberMaster** directories (the `<site>/list/` pattern with `/list/searchalpha/<letter>` pages and `/list/member/<slug>` profiles) and extracts members letter by letter; for any other directory it falls back to a **generic mode** driven by optional CSS/XPath selectors with automatic phone/email/address heuristics.

### Input

| Field | Default | Description |
|---|---|---|
| `directory_url` | `https://members.oaklandchamber.com/list` | Directory listing URL |
| `mode` | `auto` | `auto`, `growthzone`, or `generic` |
| `selectors` | `{}` | Generic mode: `{item, name, link, phone, email, address, website, next_page}` — CSS or XPath |
| `fetch_profiles` | `false` | GrowthZone: fetch each member profile for website/phone/contact/categories |
| `max_pages` | `5` | A-Z letter pages (growthzone, 26 = all) or pagination depth (generic) |
| `limit` | `100` | Max member records |

### Output

```json
{
    "name": "Bay Area Bin Support",
    "phone": "8889202467",
    "email": null,
    "address": "754 Whitney Street, San Leandro, CA, 94577",
    "city": "San Leandro",
    "website": "http://www.bayareabinsupport.com",
    "profile_url": "https://members.oaklandchamber.com/list/member/bay-area-bin-support-50095",
    "source_page": "https://members.oaklandchamber.com/list/searchalpha/b"
}
```

With `fetch_profiles` on, GrowthZone records may add `contact_name`, `contact_title` and `categories`.

# Actor input Schema

## `directory_url` (type: `string`):

Member directory URL. For GrowthZone/ChamberMaster chambers this is the <site>/list URL; any other paginated directory works in generic mode.

## `mode` (type: `string`):

auto probes the URL and picks growthzone (ChamberMaster/GrowthZone /list directories) or generic (selector-based crawling).

## `selectors` (type: `object`):

Optional CSS or XPath selectors for generic mode: {"item": "div.member-card", "name": ".//h3", "link": ".//a", "phone": "a\[href^='tel:']", "email": "a\[href^='mailto:']", "address": ".address", "website": ".website a", "next\_page": "a.next"}. Strings starting with / or containing // are treated as XPath, everything else as CSS. All keys optional — sensible heuristics fill the gaps.

## `fetch_profiles` (type: `boolean`):

GrowthZone mode only: also fetch each member's profile page to fill in website, phone, contact person and categories (one extra request per member).

## `max_pages` (type: `integer`):

Listing pages to crawl. GrowthZone mode: number of A-Z letter pages (set 26 for the full alphabet). Generic mode: pagination depth.

## `limit` (type: `integer`):

Stop after this many member records.

## Actor input object example

```json
{
  "directory_url": "https://members.oaklandchamber.com/list",
  "mode": "auto",
  "selectors": {},
  "fetch_profiles": false,
  "max_pages": 5,
  "limit": 100
}
```

# 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 = {
    "directory_url": "https://members.oaklandchamber.com/list",
    "mode": "auto",
    "selectors": {},
    "fetch_profiles": false,
    "max_pages": 5,
    "limit": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/industry-association-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 = {
    "directory_url": "https://members.oaklandchamber.com/list",
    "mode": "auto",
    "selectors": {},
    "fetch_profiles": False,
    "max_pages": 5,
    "limit": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/industry-association-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 '{
  "directory_url": "https://members.oaklandchamber.com/list",
  "mode": "auto",
  "selectors": {},
  "fetch_profiles": false,
  "max_pages": 5,
  "limit": 100
}' |
apify call moving_beacon-owner1/industry-association-directory-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/industry-association-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/bOZHdCFPo1BucCLPb/builds/SVcGlYfXSgjmdPabb/openapi.json
