# NYC Contractors | $1.45 / 1,000 Public Emails (Free Plan) (`perceptive_city_af7/nyc-contractors-scraper`) Actor

Find contractors in active NYC Department of Buildings records. The default returns one public business email per company at $1.45 per 1,000 on the Free plan. Each row links to its city record. You can also include phone-only companies at the same per-company rate.

- **URL**: https://apify.com/perceptive_city_af7/nyc-contractors-scraper.md
- **Developed by:** [fall Rainy](https://apify.com/perceptive_city_af7) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.09 / 1,000 unique public business contacts

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/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

## NYC Contractors | $1.45 / 1,000 Public Emails (Free Plan)

Find New York City contractors by licensed trade and check their published business contacts against the original Department of Buildings (DOB) record. The starter search returns up to 20 distinct general contracting businesses with an active registration, a business address in one of the five boroughs and a published business email. [Try the 20-company NYC example](https://apify.com/perceptive_city_af7/nyc-contractors-scraper/examples/find-20-nyc-contractors-with-public-business-emails)

### Run a search

1. Open the example and start the run. It has a **$0.03 Actor charge limit**.
2. Open **Dataset** and follow a contact’s source link to check the listing.
3. Download CSV for a spreadsheet or JSON for a recurring import. Change the license type to search electrical firms, master plumbers or fire suppression contractors.

```json
{
  "licenseType": "GENERAL CONTRACTOR",
  "maxItems": 20,
  "requireEmail": true
}
```

Set `requireEmail` to `false` to include a company whose only published business contact is a phone. If fewer companies qualify, the run returns fewer rows.

The city’s source data is free to access. The Actor charges per distinct company delivered with a qualifying contact and its official source. The Free-plan rate is **$1.45 per 1,000 results**. A full 20-company run costs **$0.029** in Actor charges. A zero-result run costs **$0** in Actor charges. [Compare plan pricing](https://apify.com/perceptive_city_af7/nyc-contractors-scraper/pricing)

To research one borough, add `"borough": "Queens"` or start with a preset search for up to 10 contractors with published business emails. [Manhattan example](https://apify.com/perceptive_city_af7/nyc-contractors-scraper/examples/find-manhattan-contractors-with-public-business-emails) · [Brooklyn example](https://apify.com/perceptive_city_af7/nyc-contractors-scraper/examples/find-brooklyn-contractors-with-public-business-emails)

To revisit a company already in your CRM, set `licenseNumber` to its DOB license number and select the matching trade. The record must still qualify under your chosen filters.

### What a 50-company sample returned

On November 28, 2026 (UTC), **31 of 50 companies (62%)** had a qualifying published business email, **50 of 50 (100%)** had a qualifying business phone, and **50 of 50** had at least one. The sample contained 31 distinct emails and 50 distinct phones. These figures describe one ordered sample of general contractors across the five boroughs.

We took the first 50 distinct identifiable companies in ascending DOB license record ID order after applying active status, trade and NYC address filters. We counted them **before** requiring an email or phone. The email check screens out placeholders and personal-style free-mail addresses without a company or role match. The phone check validates number format. Each accepted contact points to the city record where it appears.

### What you get

| Field | How to use it |
| --- | --- |
| `professionalId` | Match the same DOB source record across exports. The Actor builds this ID by prefixing the city’s `license_sl_no` with `nyc-dob-`. |
| `businessName`, `category` | Identify the business and the trade recorded by DOB. |
| `licenseNumber`, `licenseStatus` | Match the result to an active license or registration in the city dataset. |
| `borough`, `city`, `state` | Locate the business address. A contractor can work outside its address borough. |
| `primaryEmail`, `phone` | Read the public fields DOB designates as business contacts. Inbox delivery and phone service are untested. |
| `emails` | An array containing the same address as `primaryEmail`, or an empty array for a phone-only result. |
| `contactType`, `contactSourceUrl` | See whether the qualifying contact is email or phone and open its official record. |
| `emailSourceUrl`, `phoneSourceUrl` | Check each available contact against its source. |
| `sourceDataset`, `sourceUrl`, `scrapedAt` | Identify the dataset, consult the record and date your export. |
| `sourcePublisher` | Identifies the agency that published the source record, the NYC Department of Buildings. |

A masked example of selected columns shows how the source travels with the result.

```json
{
  "businessName": "[business name masked]",
  "category": "GENERAL CONTRACTOR",
  "licenseNumber": "[masked]",
  "licenseStatus": "ACTIVE",
  "primaryEmail": "o***@example.invalid",
  "phone": "(212) 555-01••",
  "contactType": "email",
  "contactSourceUrl": "https://data.cityofnewyork.us/resource/t8hj-ruu2.json?$select=[fields]&$where=license_sl_no%3D[masked]"
}
```

### Source and coverage

The source is **DOB License Info** on NYC Open Data. The Actor reads the city’s published business-contact fields. It includes active records from the four supported trades where the city’s data places the business address in New York City. DOB marks several other trade categories as historical, including welders and construction superintendents. These categories are outside this search. The city lists a daily update schedule. [Official dataset and field definitions](https://data.cityofnewyork.us/Housing-Development/DOB-License-Info/t8hj-ruu2/data) · [NYC Open Data terms](https://cityofnewyork.github.io/opendatatsm/publicpolicies.html)

The permanent Actor ID is `QjzQIaEGgXjvnfm1g`. For integrations built for the former Houzz product, replace the old city, category or profile-URL settings with the NYC inputs above. Outputs now reference NYC DOB records.

# Actor input Schema

## `licenseType` (type: `string`):

Select one current NYC DOB category. Only ACTIVE records qualify.

## `borough` (type: `string`):

Require a geocoded business location in the selected borough. Firms without confirmed NYC geography are skipped.

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

Cap across the run. Supply and your spending limit can reduce the number returned.

## `requireEmail` (type: `boolean`):

Disable to also accept source-backed phone-only records. A company costs at most one result per run.

## `licenseNumber` (type: `string`):

Optional CRM lookup. Preserve any leading zeros.

## Actor input object example

```json
{
  "licenseType": "GENERAL CONTRACTOR",
  "borough": "All five boroughs",
  "maxItems": 20,
  "requireEmail": true
}
```

# Actor output Schema

## `results` (type: `string`):

One organization per paid row, with its published business contact and official source.

## `summary` (type: `string`):

Returned rows and contact types observed in up to 50 distinct organizations before the contact filter.

# 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 = {
    "licenseType": "GENERAL CONTRACTOR",
    "maxItems": 20,
    "requireEmail": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("perceptive_city_af7/nyc-contractors-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 = {
    "licenseType": "GENERAL CONTRACTOR",
    "maxItems": 20,
    "requireEmail": True,
}

# Run the Actor and wait for it to finish
run = client.actor("perceptive_city_af7/nyc-contractors-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 '{
  "licenseType": "GENERAL CONTRACTOR",
  "maxItems": 20,
  "requireEmail": true
}' |
apify call perceptive_city_af7/nyc-contractors-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,perceptive_city_af7/nyc-contractors-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/QjzQIaEGgXjvnfm1g/builds/nDcWm1ZpCnCyrZNk6/openapi.json
