# NYC New Businesses — Newly Licensed Leads by Borough (`alauddinburki/nyc-new-businesses`) Actor

Newly licensed New York City businesses, newest first: name, category, address, borough, phone and coordinates. Filter by issuance window, category and borough. Public DCWP licence register, no key.

- **URL**: https://apify.com/alauddinburki/nyc-new-businesses.md
- **Developed by:** [Alauddin burki](https://apify.com/alauddinburki) (community)
- **Categories:** Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 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

## NYC New Businesses — Newly Licensed Leads by Borough

Every week New York City issues licences to businesses that did not exist the week before. This Actor
reads that register newest-first and returns one flat row per licence: the business name, what kind of
business it is, the licensed address, the borough, the phone number on the application and the
coordinates — so a list that is ordered by **when the business started**, not by when a directory last
crawled it.

The source is the **DCWP Issued Licenses** dataset on New York City Open Data (`w7w3-xahh`). It is
public, needs no key, and covers roughly 72,000 licences with new ones added every month.

### What you get

- **New licences** view — licence number, business name, category, issue date, expiry, days since
  issued, and the phone number from the application.
- **Addresses** view — street number, street, city, state, ZIP, borough, community board, council
  district, BBL, BIN and coordinates.

Every row carries the same 25 fields. Rows are de-duplicated on the licence number, so a business that
appears twice in the feed comes back once.

```json
{
  "id": "nyclic:0016371-DCA",
  "licenseNumber": "0016371-DCA",
  "businessName": "JAMES ROBINSON, INC.",
  "category": "Secondhand Dealer - General",
  "licenseType": "Premises",
  "licenseStatus": "Active",
  "createdDate": "2003-10-31",
  "daysSinceIssued": 8395,
  "phone": "2127526166",
  "addressBuilding": "480",
  "addressStreet": "PARK AVENUE",
  "borough": "Manhattan",
  "zipCode": "10022",
  "bbl": "1012940033",
  "latitude": 40.7614,
  "longitude": -73.9712
}
```

### Inputs

| Field | What it does |
|---|---|
| **Issued within (days)** | The recency window. `30` is last month, `365` is the last year. |
| **Category** | Substring match on the licence category, e.g. `Secondhand Dealer`, `Laundry`, `Electronics`. |
| **Borough** | Manhattan, Bronx, Brooklyn, Queens or Staten Island. Empty means all five. |
| **Licence type** | `Premises` (a business location, the default), `Individual` (a person's licence) or `Any`. |
| **Maximum rows** | Hard row cap, up to 5,000. The source pages 500 at a time. |
| **Time budget** | Stops cleanly, returns what it has, and reports why it stopped in `SUMMARY`. |

### What this is good for

- **New-business outreach** — the businesses that opened this month, with a phone number attached.
- **Territory work** — filter to one borough and get the address list for a rep's route.
- **Market mapping** — count new licences per category per month and watch a trade grow or shrink.
- **Address enrichment** — the register carries BBL, BIN and coordinates, so a row joins directly to
  property, zoning and 311 data without a geocoder.

### Limitations

- **The register lags by weeks, not days.** A licence issued yesterday may not be published yet, and
  the city's own dataset updates monthly. A window of `30` days can look thin for that reason alone;
  widen it before assuming a category is quiet.
- **DCWP licences only.** This is the Department of Consumer and Worker Protection register — not
  state liquor licences, not health permits, not LLC formations filed with the state. A restaurant with
  no DCWP licence will not appear.
- **A licence is not a storefront opening.** Licences are issued before a business opens, and some are
  never used. `licenseStatus` and `expiresDate` are the fields to check.
- **No email address.** The register publishes a phone number, not an email; there is nothing to infer.
- **Phone numbers are digits only.** Formatting is stripped by the source, not by this Actor.
- **New York City only.** Five boroughs, one register.

### Why this is different

A business directory is a snapshot — the same stale list, sold again. This returns the **delta**: what
the city licensed inside the window you ask for, sorted by issue date, with the licensed address and
the application phone in the same row. The filter is applied at the source with a `$where` clause, so
a narrow request fetches a narrow page rather than downloading 72,000 rows and discarding most of them.
Nothing is invented: a missing phone or coordinate comes back `null`, and the `SUMMARY` object records
the exact query, the number of pages read and why the run stopped.

### FAQ

**Do I need an API key?** No. New York City Open Data is public.

**Why are the newest rows a few weeks old?** The city publishes the register monthly. `daysSinceIssued`
counts from the issue date, not the publication date.

**Can I get only businesses, not individuals?** Yes — that is the default (`License type: Premises`).

**Can I search by name?** Not directly. Filter by category and window, then match names in your own
data; the register's text search is not a name index.

**What does `daysSinceIssued` measure?** Whole days from the licence issue date to the moment the run
executed. It is recomputed on every run, so it ages correctly.

**What happens at the row cap?** The Actor stops at the cap, keeps the newest rows, and `SUMMARY`
reports `stopReason: max-items`.

### Pricing

Pay per result: **$0.0005 per licence row**. Each stored dataset row is billed, including any diagnostic row returned instead of results.

An Actor-start event is also charged at **$0.0001 per GB of allocated memory (minimum one event)**, even if no rows are returned. At 1 GB or less, 1,000 result rows cost $0.5001 before any applicable Store discount.

### Data source

NYC Open Data: **DCWP Issued Licenses**, published by the New York City Department of Consumer and
Worker Protection. Public domain data published by the City of New York.

# Actor input Schema

## `sinceDays` (type: `integer`):

Only licences created within this many days. The register itself lags by weeks, so a very short window can legitimately return nothing.

## `category` (type: `string`):

Case-insensitive contains match on the DCWP category, for example Home Improvement, Electronics, Locksmith or Tow Truck. Leave empty for every category.

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

Restrict to one borough.

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

Premises licences are businesses. Individual licences belong to a person (a guide or a tow-truck driver) and carry that person's address — businesses only by default.

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

Hard limit on rows. The source is read 500 at a time.

## `budgetSecs` (type: `integer`):

Stop and report what was collected before the run is killed.

## `paceMs` (type: `integer`):

A short pause between 500-row pages.

## Actor input object example

```json
{
  "sinceDays": 365,
  "category": "",
  "borough": "",
  "licenseType": "Premises",
  "maxItems": 200,
  "budgetSecs": 240,
  "paceMs": 120
}
```

# Actor output Schema

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

One row per issued licence, newest first, with the 25 fields listed under Views.

# 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 = {
    "sinceDays": 365,
    "category": "",
    "borough": "",
    "licenseType": "Premises",
    "maxItems": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("alauddinburki/nyc-new-businesses").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 = {
    "sinceDays": 365,
    "category": "",
    "borough": "",
    "licenseType": "Premises",
    "maxItems": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("alauddinburki/nyc-new-businesses").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 '{
  "sinceDays": 365,
  "category": "",
  "borough": "",
  "licenseType": "Premises",
  "maxItems": 200
}' |
apify call alauddinburki/nyc-new-businesses --silent --output-dataset

```

## MCP server setup

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

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/xORsLobbOS2Tn5H5n/builds/yaYAJRPj3SstXJ3CL/openapi.json
