# Greater New York Chamber of Commerce Scraper (`moving_beacon-owner1/greater-new-york-chamber-of-commerce-scraper`) Actor

An Apify actor that scrapes business listings, corporate contacts, street addresses, telephone numbers, and categories from the official Greater New York Chamber of Commerce business directory (chamber.nyc).

- **URL**: https://apify.com/moving_beacon-owner1/greater-new-york-chamber-of-commerce-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Features:** Limited permissions
- **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/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

## Greater New York Chamber of Commerce Scraper

An Apify actor that scrapes business listings, corporate contact persons, street addresses, telephone numbers, and categories from the official **Greater New York Chamber of Commerce** business directory (`chamber.nyc`).

***

### Features

- **Comprehensive Member Extraction**: Captures company name, category, representative/contact person, telephone number, official website, street address, city, state, postal code, and country.
- **Alphabetical & Search Filters**: Filter by letter (A–Z, NUM, ALL) or keyword queries (e.g. `technology`, `consulting`, `legal`, `hospitality`).
- **Pagination Support**: Automatically pages through the Chamber's directory (up to 50 businesses per page).
- **Intelligent Address Parsing**: Dissects messy multi-line address blocks into clean structured geographic components.
- **Deduplication**: Automatically deduplicates company listings across page boundaries.
- **Apify Proxy Integration**: Seamless support for Apify Proxy or custom residential proxies.

***

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `letter` | String | `"ALL"` | Alphabetical filter letter (`ALL`, `A` to `Z`, or `NUM`). |
| `query` | String | `""` | Search keyword filter (e.g., `"technology"`, `"real estate"`, `"marketing"`). |
| `pages` | Integer | `1` | Number of directory pages to scrape (each page yields up to 50 businesses). |
| `limit` | Integer | `50` | Maximum number of business records to collect (1 to 1,000). |
| `delay` | Float | `0.5` | Delay in seconds between page requests to avoid server throttling. |
| `timeout` | Integer | `20` | HTTP request timeout in seconds. |
| `proxyConfiguration` | Object | `{"useApifyProxy": true}` | Apify Proxy configuration or custom proxy settings. |

#### Example Input

```json
{
  "letter": "A",
  "query": "financial",
  "pages": 2,
  "limit": 60,
  "delay": 0.5,
  "timeout": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

***

### Output Dataset

Each record pushed to the default dataset contains the following fields:

| Field | Type | Description |
|---|---|---|
| `company_name` | String | Official registered name of the business member |
| `category` | String | Business industry classification or category |
| `contact_person` | String | Named corporate executive or chamber contact |
| `phone` | String | Contact phone number |
| `website` | String | Member's official external website URL |
| `street_address` | String | Street mailing address |
| `city` | String | City (e.g., New York, Brooklyn) |
| `state` | String | US State code (e.g., NY, NJ, CT) |
| `postal_code` | String | 5-digit ZIP code |
| `country` | String | Country designation (e.g., United States) |
| `letter_filter` | String | Letter filter used during crawl |
| `search_query` | String | Search keyword used during crawl |
| `source_url` | String | Source URL of the directory |
| `scraped_at` | String | ISO-8601 UTC timestamp when extracted |

#### Example Output

```json
{
  "company_name": "Atlas Financial Consulting Group",
  "category": "Financial Services & Advisory",
  "contact_person": "Robert Vance",
  "phone": "(212) 555-0199",
  "website": "https://www.atlasfinancialgroup.com",
  "street_address": "450 Lexington Ave, Suite 1400",
  "city": "New York",
  "state": "NY",
  "postal_code": "10017",
  "country": "United States",
  "letter_filter": "A",
  "search_query": "financial",
  "source_url": "https://www.chamber.nyc/business-directory",
  "scraped_at": "2026-11-08T14:20:12.654321+00:00"
}
```

***

### Policy & Compliance Guidelines

- **Terms of Service & robots.txt**: The Greater New York Chamber of Commerce publishes member listings to promote local businesses and foster community B2B networking. Users must inspect `chamber.nyc/robots.txt` and ensure requests adhere to applicable terms.
- **Polite Crawling & Rate Limiting**: The default request interval (`0.5s`) is tuned to avoid straining chamber servers. Do not set delay to `0` or launch aggressive concurrent crawls against the directory.
- **Personal Data & Privacy (GDPR, CCPA)**: The scraper extracts public professional corporate contact information published by businesses for directory purposes. Users must ensure compliance with applicable data privacy laws, CAN-SPAM, and telemarketing laws. Unsolicited robocalls or bulk email harvesting are prohibited.
- **Permissible Use & Fair Use Disclaimer**: This actor is an independent utility created for legitimate business directory research, competitive intelligence, and civic data indexing. It is not affiliated with, authorized, or endorsed by the Greater New York Chamber of Commerce.

***

### How to Run

#### Via Apify Console

1. Open the Actor on your Apify Console.
2. Configure your inputs (e.g., set `letter` to `"T"` or enter a query like `"consulting"`).
3. Click **Start** to execute the scraper.
4. Download the dataset as JSON, CSV, or Excel from the **Storage** tab.

#### Via Apify CLI

```bash
## Run actor locally with Apify CLI
apify run --input='{"letter": "B", "limit": 25}'
```

# Actor input Schema

## `letter` (type: `string`):

Alphabetical filter letter (ALL, A-Z, NUM).

## `query` (type: `string`):

Search keyword filter (e.g. 'technology', 'legal', 'finance').

## `pages` (type: `integer`):

Number of directory pages to scrape (each page yields up to 50 businesses).

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

Maximum number of business records to collect.

## `delay` (type: `number`):

Delay in seconds between page requests.

## `timeout` (type: `integer`):

HTTP request timeout in seconds.

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

Apify proxy configuration. Use Apify proxy or custom proxy URLs.

## Actor input object example

```json
{
  "letter": "ALL",
  "query": "",
  "pages": 1,
  "limit": 50,
  "delay": 0.5,
  "timeout": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

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

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/greater-new-york-chamber-of-commerce-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("moving_beacon-owner1/greater-new-york-chamber-of-commerce-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 '{}' |
apify call moving_beacon-owner1/greater-new-york-chamber-of-commerce-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/greater-new-york-chamber-of-commerce-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/5FLmnREPEZDmAtlb5/builds/HgI0A4zrIZmQbbhGT/openapi.json
