# NYC Business License Search (DCWP open data) (`pennant/nyc-issued-licenses`) Actor

Search New York City DCWP business licences: home improvement contractors, tobacco and e-cigarette dealers, secondhand dealers, electronics stores, parking garages, debt collectors and more, by category, status, borough, ZIP or date. Businesses only; no phones.

- **URL**: https://apify.com/pennant/nyc-issued-licenses.md
- **Developed by:** [Pennant](https://apify.com/pennant) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 licence 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

## NYC Business License Search (DCWP open data)

**Pennant** — Official public records as clean, tested data feeds.

Search the business licences issued by New York City's **Department of Consumer and Worker Protection (DCWP)** — home improvement contractors, tobacco and electronic-cigarette retail dealers, secondhand dealers (general and auto), electronics stores and appliance service dealers, garages and parking lots, debt collection agencies, medical-supply dealers, stoop line stands, hotels, pawnbrokers, tow truck companies, self-storage facilities, employment agencies, car washes and more — published as NYC Open Data and refreshed weekly. Each result is **one business licence** with the business name and DBA, category, status, creation and expiration dates, borough and ZIP.

This is not an official verification service. Confirm a licence with DCWP before relying on it.

**Source:** NYC Open Data, DCWP *Issued Licenses* (`w7w3-xahh`) · Attribution: NYC Department of Consumer and Worker Protection · refreshed weekly. The NYC Open Data notice and full credit are in the "Data source, licence and disclaimers" section below.

### Who it's for

Building-supply and insurance vendors who sell to licensed home improvement contractors, tobacco/vape and convenience-store distributors, POS and payments vendors, parking and facility-services companies, compliance teams screening debt collectors, and market researchers who want a clean list of licensed NYC businesses — or a feed of **new licences** and a **renewal watch list**.

**Use cases**

- A weekly feed of newly licensed home improvement contractors in New York City.
- Every active tobacco and e-cigarette retail dealer in one borough, for distributor coverage.
- A renewal watch list of garages and parking lots expiring next quarter.
- Screening a list of debt collection agencies against DCWP licence status, by licence number.

### Input examples

Newest home improvement contractor licences:

```json
{ "categories": ["Home Improvement Contractor"], "sort": "newest", "maxItems": 200 }
```

Licences created last month, any business category:

```json
{ "createdFrom": "2026-10-01", "createdTo": "2026-10-31", "maxItems": 1000 }
```

Active tobacco and e-cigarette dealers in the Bronx:

```json
{ "categories": ["Tobacco Retail Dealer", "Electronic Cigarette Dealer"], "boroughs": ["Bronx"] }
```

Garages and parking lots expiring next quarter, active or ready for renewal:

```json
{ "categories": ["Garage & Parking Lot"], "statuses": ["Active", "Ready for Renewal"], "expiresFrom": "2027-01-01", "expiresTo": "2027-03-31", "sort": "expiration" }
```

The first example at a glance:

| Field | Example value | What it does |
|---|---|---|
| `categories` | `["Home Improvement Contractor"]` | One DCWP licence category |
| `statuses` | `["Active"]` | Active licences (default) |
| `sort` | `newest` | Newest creation date first |
| `maxItems` | `200` | Stop after 200 licences |

### Input

| Field | Type | Notes |
|---|---|---|
| `categories` | string list | Exact DCWP category names (case-insensitive), e.g. `Home Improvement Contractor`, `Tobacco Retail Dealer`, `Electronic Cigarette Dealer`, `Secondhand Dealer - General`, `Electronics Store`, `Garage & Parking Lot`, `Debt Collection Agency`. Empty = all business categories. |
| `statuses` | string list | Default `["Active"]`. Also `Ready for Renewal`, `Expired`, `Surrendered`, `Close`, `Revoked`, `Voided`, `Suspended`, `Failed to Renew`, `Out of Business`. Empty list = every status. |
| `boroughs` | string list | `Manhattan`, `Bronx`, `Brooklyn`, `Queens`, `Staten Island`, `Outside NYC`. |
| `zipCodes` | string list | 5-digit ZIPs of the business address. |
| `nameContains` | string | Case-insensitive substring of the business name or DBA. |
| `licenseNumbers` | string list | DCWP licence numbers, e.g. `2138768-DCWP`. |
| `createdFrom` / `createdTo` | YYYY-MM-DD | Inclusive licence creation-date range. |
| `expiresFrom` / `expiresTo` | YYYY-MM-DD | Inclusive expiration-date range. |
| `sort` | `newest` (default), `oldest`, `name`, `expiration`, `licenseNumber` | Creation-date sorts skip rows without a real creation date. |
| `maxItems` | integer | Default 100. Each licence is one billable event. |
| `includeStreetAddress` | boolean | **Default off.** Adds the street line (building, street, unit) and the building identifiers BIN/BBL. |
| `includeCoordinates` | boolean | **Default off.** Adds latitude/longitude of the business address. |
| `requestDelayMs`, `maxRetries` | integers | Politeness delay (default 1,100 ms) and retries. |

Size on 2026-11-16 (source, before the privacy filter; changes weekly): 56,775 business (premises) licences, of which 31,070 Active and 5,494 Ready for Renewal. Largest categories: Home Improvement Contractor 19,143, Tobacco Retail Dealer 6,773, Secondhand Dealer - General 5,787, Electronics Store 4,310, Stoop Line Stand 2,854, Electronic Cigarette Dealer 2,794, Garage & Parking Lot 2,776, Debt Collection Agency 2,192.

### Sample output (one item per licence)

Street address and coordinates are omitted under the default privacy setting:

```json
{
  "licenseNumber": "2138766-DCWP",
  "businessName": "TIGASI PAINTING LLC",
  "dbaTradeName": null,
  "businessNameHidden": false,
  "businessCategory": "Home Improvement Contractor",
  "licenseType": "Premises",
  "licenseStatus": "Active",
  "licenseCreationDate": "2026-10-30",
  "expirationDate": "2029-02-28",
  "licenseDetail": null,
  "businessAccountId": "BA-1793714-2026",
  "businessAddress": { "street": null, "city": "BROOKLYN", "state": "NY", "zip": "11237", "borough": "Brooklyn" },
  "buildingIds": null,
  "location": null,
  "communityBoard": "304",
  "councilDistrict": "37",
  "neighborhoodTabulationArea": "BK77",
  "issuingAgency": "NYC Department of Consumer and Worker Protection (DCWP)",
  "jurisdiction": "New York City, NY",
  "sourceDataset": "https://data.cityofnewyork.us/d/w7w3-xahh",
  "sourceRecordUrl": "https://data.cityofnewyork.us/resource/w7w3-xahh.json?license_nbr=2138766-DCWP",
  "retrievedAt": "2026-11-16T11:02:30.595Z"
}
```

`licenseDetail` carries the source's category-specific details, e.g. `Vehicle Capacity: 56; Bicycle Capacity: 6` for a garage, the product category and stand sizes for a stoop line stand, or DARP/ROTOW enrollment for a tow company.

The run also writes `RUN_SUMMARY` (counts, including skipped licences) and `SOURCE_NOTICE` (attribution and disclaimer).

**Example output as a table** (fictional rows, key columns only; street fields are null by default and not shown):

| licenseNumber | businessCategory | businessName | licenseStatus | expirationDate | borough | zip |
|---|---|---|---|---|---|---|
| 2140001-DCWP | Home Improvement Contractor | Bright Ridge Contracting Corp | Active | 2029-02-28 | Queens | 11375 |
| 2140002-DCWP | Tobacco Retail Dealer | Corner Deli & Grocery Inc | Active | 2027-12-31 | Bronx | 10458 |
| 2140003-DCWP | Garage & Parking Lot | Midtown Park Systems LLC | Ready for Renewal | 2027-03-31 | Manhattan | 10018 |

### Privacy defaults

- **Business licences only (always on):** DCWP's "Individual" licences (licensed people such as salespersons and drivers) are never requested and never output.
- **Businesses, not people (always on):** a premises licence whose legal name looks like a person's name (DCWP writes these as "SURNAME, GIVEN") is skipped and counted in `RUN_SUMMARY.skippedLikelyIndividuals`. If a person trades under a business-style DBA that does not repeat their own name, the DBA is kept, the legal name is hidden (`businessNameHidden: true`) and no raw-record link is given. A name search never matches on a hidden name. The test is a word heuristic (LLC, INC, CORP… or trade words such as CONTRACTING, WIRELESS, PARKING); a business with an unusual name and no such word is skipped too.
- **No phone numbers:** the source's contact phone column is never requested or output.
- **Street address, building IDs and coordinates off by default:** only city, ZIP and borough unless you switch them on; the columns are not even requested otherwise.

### Limitations

- DCWP-issued licences only. Many NYC trades are licensed by other agencies (restaurants by DOHMH, liquor by the State, contractors' building permits by DOB) and are not in this dataset.
- About 4,500 premises licences have no borough; licensees based outside the city show `Outside NYC`.
- Some old licences use 1900-12-31 as a "no date" creation date; it is returned as `null`. A few expiration dates are far-future placeholders (e.g. 2100) and are passed through as published.
- Refreshed weekly by the City; a just-issued licence can take a week or more to appear.

### Data source, licence and disclaimers

New York City Department of Consumer and Worker Protection (DCWP), **Issued Licenses**, NYC Open Data dataset `w7w3-xahh` ([data.cityofnewyork.us](https://data.cityofnewyork.us/d/w7w3-xahh)). **Attribution: NYC Department of Consumer and Worker Protection (DCWP).** Used under the [NYC Open Data Terms of Use](https://data.cityofnewyork.us/stories/s/Terms-of-Use/k9k7-3cje/); NYC Open Data states there are no restrictions on the use of Open Data. The data has been modified by this tool (business licences only, personal names removed, phone numbers dropped, dates reformatted).

NYC Open Data notice:

> Public data sets made available on the NYC OpenData portal are provided for informational purposes. The City does not
> warranty the completeness, accuracy, content, or fitness for any particular purpose or use of any public data set made
> available on the NYC OpenData portal, nor are any such warranties to be implied or inferred with respect to the public
> data sets furnished therein. The City is not liable for any deficiencies in the completeness, accuracy, content, or
> fitness for any particular purpose or use of any public data set, or application utilizing such data set, provided by
> any third party.

DCWP is the authoritative source; data may be updated, corrected or overwritten at any time. robots.txt `Crawl-delay: 1` and `/resource/` not disallowed; the Actor waits at least 1.1 seconds between pages and identifies itself. Not affiliated with or endorsed by the City of New York or DCWP.

### Pricing

Pay per event, billed by Apify:

| Event | Price |
|---|---|
| Run start (`apify-actor-start`) | $0.005 per run |
| Each licence returned (`result`) | $0.002 per licence |

**Worked example:** one run that returns 200 licences costs $0.005 + 200 × $0.002 = **$0.405**. A run of 1,000 licences costs **$2.005**.

To control spend, set `maxItems` (the Actor never returns more), and set a maximum cost per run in Apify. The Actor stops cleanly when it reaches the caller's max charge, and the licences already returned are kept.

### FAQ

**What does it cover, and what doesn't it?**

Business (premises) licences issued by NYC's Department of Consumer and Worker Protection, across every borough plus licensees based outside the city. It does not include DCWP's individual licences, or trades licensed by other agencies, such as restaurants (DOHMH), liquor (the State) or building permits (DOB).

**What happens to personal names and addresses?**

Individual licences are never requested. A premises licence whose legal name looks like a person's name is skipped, unless the person trades under a business-style DBA; then only the DBA is returned. The contact phone column is never requested. Street address, building IDs and coordinates are off unless you turn them on.

**Is this official data or a scrape?**

Official open data. The Actor reads each government portal's documented Socrata API, at a polite pace (at least 1.1 seconds between pages). It does not log in anywhere or scrape a private website.

**How do I cap the cost of a run?**

Set `maxItems`; each returned record is one billable result. The default is 100. You can also set a maximum cost per run in Apify, and the Actor stops cleanly when it reaches it.

**How fresh is the data?**

The City refreshes the dataset weekly, and every run reads it live. A just-issued licence can take a week or more to appear.

**Is Pennant affiliated with the source?**

No. Pennant is not affiliated with or endorsed by the City of New York or DCWP. The source agency is the authoritative record; confirm anything important with it.

**Where do I get help?**

Email 51wrw1aj@mail.grokbot.com. For a bad or unexpected record, include the run ID and the record's ID or licence number.

### For AI agents

- **Purpose:** list or search New York City DCWP business licences by category, status, borough, ZIP, dates or name.
- **Call when:** the user wants NYC home improvement contractor, tobacco/vape retailer, secondhand dealer, electronics store, parking garage or debt collector leads, a new-licence feed, a renewal watch list, or a licence lookup by DCWP number.
- **Minimal input:** `{}` (active licences, newest first, all business categories).
- **Cost control:** one `result` event per licence; set `maxItems`.

# Actor input Schema

## `categories` (type: `array`):

Exact DCWP category names, case-insensitive, e.g. Home Improvement Contractor, Tobacco Retail Dealer, Electronic Cigarette Dealer, Secondhand Dealer - General, Secondhand Dealer - Auto, Electronics Store, Electronic & Home Appliance Service Dealer, Garage & Parking Lot, Debt Collection Agency, Dealer In Products For The Disabled, Stoop Line Stand, Hotel, Pawnbroker, Tow Truck Company, Self-Storage Facility, Employment Agency, Car Wash. Empty = all business (premises) categories.

## `statuses` (type: `array`):

Any of: Active, Ready for Renewal, Expired, Surrendered, Close, Revoked, Voided, Suspended, Failed to Renew, Out of Business (case-insensitive). Default Active. Empty list = every status.

## `boroughs` (type: `array`):

Any of: Manhattan, Bronx, Brooklyn, Queens, Staten Island, Outside NYC (licensees with an address outside the city).

## `zipCodes` (type: `array`):

5-digit ZIPs of the business address.

## `nameContains` (type: `string`):

Case-insensitive substring of the business name or DBA/trade name (at least 2 characters).

## `licenseNumbers` (type: `array`):

DCWP licence numbers, e.g. 2138768-DCWP or 2138768-2-DCWP.

## `createdFrom` (type: `string`):

YYYY-MM-DD, inclusive (licence creation date). With sort=newest this is a new-licence feed.

## `createdTo` (type: `string`):

YYYY-MM-DD, inclusive.

## `expiresFrom` (type: `string`):

YYYY-MM-DD, inclusive (renewal watch lists).

## `expiresTo` (type: `string`):

YYYY-MM-DD, inclusive.

## `sort` (type: `string`):

Result order. Creation-date sorts skip rows without a real creation date.

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

Hard cap on results (each result is one billable event).

## `includeStreetAddress` (type: `boolean`):

If on, the street line (building number, street, unit) and the building identifiers BIN/BBL are returned; otherwise only city, ZIP and borough.

## `includeCoordinates` (type: `boolean`):

If on, the source's latitude/longitude for the business address is returned.

## `requestDelayMs` (type: `integer`):

Politeness delay between API pages (robots.txt Crawl-delay: 1).

## `maxRetries` (type: `integer`):

Retries on timeouts, HTTP 408/429/5xx with exponential backoff and Retry-After.

## Actor input object example

```json
{
  "categories": [
    "Home Improvement Contractor"
  ],
  "statuses": [
    "Active"
  ],
  "sort": "newest",
  "maxItems": 100,
  "includeStreetAddress": false,
  "includeCoordinates": false,
  "requestDelayMs": 1100,
  "maxRetries": 4
}
```

# Actor output Schema

## `licences` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

## `sourceNotice` (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 = {
    "categories": [
        "Home Improvement Contractor"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pennant/nyc-issued-licenses").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 = { "categories": ["Home Improvement Contractor"] }

# Run the Actor and wait for it to finish
run = client.actor("pennant/nyc-issued-licenses").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 '{
  "categories": [
    "Home Improvement Contractor"
  ]
}' |
apify call pennant/nyc-issued-licenses --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pennant/nyc-issued-licenses"
        }
    }
}
```

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/cll3wT8hUwRx3LZV0/builds/50ilM9KkV1rOtGYHJ/openapi.json
