# NY Regulated Trades Licenses - Asbestos, Mold & Elevator (`j0401/ny-regulated-trades`) Actor

New York State Department of Labor regulated-trade licences in one schema: asbestos certificates (9 endorsements), mold individual and contractor licences, elevator individual, contractor and temporary-mechanic licences. Search by number, name, trade, type, status or date; profile or aggregate.

- **URL**: https://apify.com/j0401/ny-regulated-trades.md
- **Developed by:** [Wenhao Yang](https://apify.com/j0401) (community)
- **Categories:** Business, Lead generation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 ny regulated trade credentials

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

## NY Regulated Trades Licenses - Asbestos, Mold & Elevator

Six official New York State Department of Labor licence files, in one schema
and one query: **54,733 credentials held** by **47,209 distinct numbers**
(measured 15 November 2026). Asbestos, mold and elevator work are the three
trades the state licenses because they touch hazardous or life-safety work, and
these are the files a property manager, a GC or a compliance team screens
before hiring.

| trade | file | rows | distinct numbers | newest issue |
|---|---|---|---|---|
| asbestos | individual certificates (two-year window) | 35,787 | 28,291 | 2026-11-14 |
| mold | individual licences (four-year window) | 9,336 | 9,336 | 2026-11-14 |
| mold | contractor licences | 2,541 | 2,513 | 2026-11-13 |
| elevator | individual licences | 6,741 | 6,741 | 2026-11-14 |
| elevator | contractor licences | 302 | 302 | 2026-10-23 |
| elevator | temporary mechanic licences | 26 | 26 | 2026-11-04 |

### Low cost

**From $0.0032 per record, down to $0.0008 at Gold.** Pay only for the records
you receive - every file stays queryable, and you are never billed for the scan
behind it.

### The three trades

#### Asbestos - up to seven endorsements on one certificate

A certificate is issued to a person and then endorsed per discipline:
Handler (13,236), Supervisor (7,591), Inspector (5,266), Project Monitor
(3,191), Air Sampling Technician (2,965), Operations And Maintenance (1,378),
Project Designer (1,059), Restricted Allied Trades (553), Management Planner
(548). One certificate number can hold several of them - `mode=profile` on
`26-6I8NQ-SHAB` returns three (certificate order, then licence type):

```json
{"licenseNumber": "26-6I8NQ-SHAB", "trade": "asbestos", "holderType": "individual", "licenseType": "Asbestos Endorsement - Air Sampling Technician", "firstName": "MELVIN", "lastName": "BERAS", "status": "Active", "issuedDate": "2026-11-14", "expirationDate": "2028-01-31"}
{"licenseNumber": "26-6I8NQ-SHAB", "trade": "asbestos", "holderType": "individual", "licenseType": "Asbestos Endorsement - Inspector", "firstName": "MELVIN", "lastName": "BERAS", "status": "Active", "issuedDate": "2026-10-03", "expirationDate": "2028-01-31"}
{"licenseNumber": "26-6I8NQ-SHAB", "trade": "asbestos", "holderType": "individual", "licenseType": "Asbestos Endorsement - Project Monitor", "firstName": "MELVIN", "lastName": "BERAS", "status": "Active", "issuedDate": "2026-11-14", "expirationDate": "2028-01-31"}
```

No certificate holds more than seven distinct endorsements; a number can still
return nine rows, because each re-issue inside the window is its own row.

#### Mold - assessment and remediation are separate licences

Individuals: Mold Abatement Worker (3,791), Mold Supervisor (3,089),
Mold Assessor (2,456). Businesses: Mold Remediation Contractor (1,331),
Mold Assessment Contractor (1,210). A firm can hold both contractor licences,
which is why 2,541 rows carry 2,513 licence numbers - the assessor and the
remediator should not be the same party on a job, so the distinction matters.

#### Elevator - mechanic, inspector, contractor, temporary

Individual: Elevator Mechanic (5,668), Elevator Inspector (966), Accessibility
Lift Technician (89), Accessibility Technician (18). Businesses: Elevator
Contractor (193), Elevator Inspection Contractor (109). Temporary mechanic
licences (26) are issued for elevator work during a verifiable shortage of
licensed mechanics, and are deliberately kept as their own file.

### Search it

- **Number** - `licenseNumber="26-63GFJ-SHMO"`. `mode=profile` returns every
  endorsement held under that number.
- **Name** - `name="abatement"` (case-insensitive substring). On the individual
  files it matches first and last name; on the contractor files, the business
  and DBA name.
- **Trade / holder** - `trade="mold"`, `holderType="contractor"`, or
  `corpus="elevator-temporary"` for one published file.
- **Type** - `licenseType="Mold Assessor License (SH128)"` (exact, 21 values
  across the corpora) or `licenseTypeContains="Supervisor"`.
- **Status** - `status="Active"` (34,387 rows) or `"Expired"` (20,346). Expired
  credentials stay in the window files, which is what makes a re-issue history
  visible.
- **Place** - `city`, `state`, `zip`. Only the two contractor files publish an
  address, so a location filter narrows the run to those corpora.
- **Time** - `issuedFrom` / `issuedTo` / `expiresBefore` / `expiresAfter`
  (YYYY-MM-DD). `expiresBefore` is the renewal pipeline.

### Example inputs

**One trade, live credentials** (7,496 mold credentials)

```json
{"trade": "mold", "status": "Active", "maxResults": 100}
```

**Every endorsement on one certificate**

```json
{"mode": "profile", "licenseNumber": "26-6I8NQ-SHAB"}
```

**Contractors in one city**

```json
{"holderType": "contractor", "city": "Brooklyn", "maxResults": 100}
```

**The renewal pipeline, next 90 days**

```json
{"status": "Active", "expiresBefore": "2027-02-13", "maxResults": 200}
```

### Example output

One row is one credential, with the same key set on every corpus - empty where
that file has nothing to say. The row below is what
`{"holderType": "contractor", "city": "Brooklyn"}` returns (269 contractor
licences across the two contractor files). (The excerpt shows 21 of the 29
keys; the
envelope keys `source`, `jurisdiction`, `platform`, `mode`, `groupKey`,
`groupCount`, `groupBy` and `groupMetric` are omitted for readability.)

```json
{
  "trade": "mold",
  "holderType": "contractor",
  "licenseNumber": "26-63GFJ-SHMO",
  "licenseType": "Mold Remediation Contractor License (SH126)",
  "firstName": "", "lastName": "",
  "businessName": "Advanced Abatement Corp.", "dbaName": "",
  "address": "5308 13th Ave", "address2": "Apt 225",
  "city": "Brooklyn", "state": "NY", "zip": "11219", "phone": "7185014648",
  "status": "Active",
  "issuedDate": "2026-11-13", "expirationDate": "2028-11-30",
  "corpus": "mold-contractor", "datasetId": "ikqx-ispy",
  "totalMatched": "269", "sourceUpdatedAt": "2026-11-13"
}
```

### Or roll it up

`mode=aggregate` with `groupBy` = `trade`, `holderType`, `corpus`, `status`,
`licenseType`, `state`, `city`, `issuedYear` or `expirationYear`, and
`metric=count`. Filters apply to the aggregate, so this returns the live
count per trade rather than the whole corpus:

```json
{"mode": "aggregate", "groupBy": "trade", "status": "Active"}
```

```json
{"groupKey": "asbestos", "groupCount": "21789"}
{"groupKey": "mold", "groupCount": "7496"}
{"groupKey": "elevator", "groupCount": "5102"}
```

An aggregate returns **every** group of the dimension (the widest, `city`,
stays around 700), so `maxResults` does not cap groups - it is a record budget,
not a group budget. Each returned group row is billed as one record.

`totalMatched` is the number of credentials the filters matched across the
files that were scanned, and it stays that number in aggregate mode. Groups for
`city` and `state` cover the two contractor files only, so those two dimensions
sum to fewer records than `totalMatched` - that is the published shape of the
source, not a gap in the aggregate. `sourceUpdatedAt` is the newest issue date
in the file the row came from.

`city` and `state` cover the two contractor files only. City names are grouped
case-insensitively, because the source writes both `Brooklyn` and `BROOKLYN`.

### Row grain and how to read it

- **One row = one credential, not one holder.** Asbestos certificates carry one
  row per endorsement (35,771 rows / 28,275 certificates), and a mold or
  elevator contractor can hold two licences. That is why the profile mode exists.
- **The files are windows.** The published names say "Two Year Window"
  (asbestos) and "Four Year Window" (mold); expired credentials stay listed
  while they are inside the window. This is not a historical register, and it
  does not say why a credential lapsed.
- **Only two files publish an address.** Mold contractors and elevator
  contractors carry address, ZIP and phone; the four individual files carry a
  name only - no address, no phone. Filters on `city`/`state`/`zip` therefore
  restrict the run to those two corpora.
- **Asbestos names are upper-cased by the publisher**, the other files are mixed
  case. Filters are case-insensitive; output keeps the published casing.
- **`licenseNumber` is what the state published.** Most numbers carry a year
  prefix (the issue year) and survive renewals on the same number, but about
  6% of the asbestos numbers are older numeric-only IDs with no prefix, and a
  re-issue can produce a new number. Profile the number you were given; if it
  returns nothing, search by name for the current one.
- When `maxResults` or the run-level charge cap stops a query, the dataset also
  carries one unbilled `_meta` row with `truncated`, `delivered` (a lower bound
  when `stopReason="charge-limit"`), `totalMatched` and `stopReason`.

### Related actors

New York records that pair with a licence check:

- **[NY Contractor Registry Certificates](https://apify.com/j0401/ny-contractor-certificates)** - the state's public-work certificate: MWBE, debarment, wage and safety findings.
- **[NYC Business Licenses (DCWP)](https://apify.com/j0401/nyc-dcwp-licenses)** - New York City licences joined to inspections, violations and complaints.
- **[NYC Property Profile](https://apify.com/j0401/nyc-property-profile)** - everything on one building (BBL/BIN): violations, permits, valuation.
- **[US Contractor Licenses](https://apify.com/j0401/us-contractor-licenses)** - contractor licences across nine states behind one schema.

### Source and licence

New York State Department of Labor regulated-trade files, published on
[data.ny.gov](https://data.ny.gov) as public open data:

- Asbestos Individual Certificates - [95bk-87hc](https://data.ny.gov/Government/Asbestos-Individual-Certificates-Two-Year-Win/95bk-87hc)
- Mold Individual Licenses - [h6jr-vxqt](https://data.ny.gov/Government/Mold-Individual-Licenses-Four-Year-Window/h6jr-vxqt)
- Mold Contractor Licenses - [ikqx-ispy](https://data.ny.gov/Government/Mold-Contractor-Licenses-Four-Year-Window/ikqx-ispy)
- Elevator Individual Licenses - [cxfs-ya8e](https://data.ny.gov/Government/Elevator-Individual-Licenses-New-York-State-Departm/cxfs-ya8e)
- Elevator Contractor License - [jrac-r9vc](https://data.ny.gov/Government/Elevator-Contractor-License-New-York-State-Departme/jrac-r9vc)
- Temporary Elevator Mechanics License - [f2ea-9n3x](https://data.ny.gov/Government/Temporary-Elevator-Mechanics-License/f2ea-9n3x)

Individual rows carry a person's name exactly as the state publishes it, with
no address or contact detail. We add nothing beyond the published file.

### Use it from an AI agent (MCP)

Connect any MCP client to `https://mcp.apify.com/?tools=j0401/ny-regulated-trades` to load this dataset as a single tool beside the tools you already have - same records, same per-record pricing.

# Actor input Schema

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

rows = credentials (default). aggregate = one row per group with a count. profile = every row for one credential number.

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

Exact number, e.g. "26-6I8NQ-SHAB" (asbestos), "26-63PYD-SHMO" (mold), "26-6A7DO-SHEL" (elevator). mode=profile returns every endorsement on that number.

## `name` (type: `string`):

Case-insensitive substring. Matches first/last name on the individual files and business/DBA name on the contractor files.

## `trade` (type: `string`):

Restrict to one trade. Empty = all three.

## `holderType` (type: `string`):

individual = a named person's credential. contractor = a business licence.

## `corpus` (type: `string`):

Restrict to one published file. Empty = all six.

## `status` (type: `string`):

The published vocabulary on every file is Active / Expired. Expired credentials stay listed in the window files.

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

Exact published wording, e.g. "Asbestos Endorsement - Handler", "Mold Assessor License (SH128)", "Elevator Mechanic License (SH132)". 21 values across the corpora.

## `licenseTypeContains` (type: `string`):

Case-insensitive substring on the licence type, e.g. "Supervisor".

## `city` (type: `string`):

Contractor files only (mold and elevator contractors publish an address). Restricting by city narrows the run to those two corpora.

## `state` (type: `string`):

Two-letter code. Contractor files only.

## `zip` (type: `string`):

Exact 5-digit ZIP. Contractor files only. Accepts ZIP+4 ("12345-6789"); matched on the 5-digit core.

## `issuedFrom` (type: `string`):

YYYY-MM-DD.

## `issuedTo` (type: `string`):

YYYY-MM-DD.

## `expiresBefore` (type: `string`):

YYYY-MM-DD. Renewal-pipeline work.

## `expiresAfter` (type: `string`):

YYYY-MM-DD.

## `groupBy` (type: `string`):

Only with mode=aggregate. Empty = licenseType. city/state cover the two contractor files only. Every group is returned; maxResults does not cap groups.

## `metric` (type: `string`):

Only with mode=aggregate. count is the only metric.

## `maxResults` (type: `integer`):

Records delivered per run (default 200, maximum 5000). Billed per record delivered. Does not cap aggregate groups: mode=aggregate returns every group of the dimension.

## Actor input object example

```json
{
  "mode": "",
  "trade": "",
  "holderType": "",
  "corpus": "",
  "status": "",
  "groupBy": "",
  "metric": "",
  "maxResults": 200
}
```

# Actor output Schema

## `recordsUrl` (type: `string`):

Asbestos, mold and elevator credentials as JSON

## `datasetUrl` (type: `string`):

No description

## `runUrl` (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("j0401/ny-regulated-trades").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("j0401/ny-regulated-trades").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 j0401/ny-regulated-trades --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,j0401/ny-regulated-trades"
        }
    }
}
```

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/LUgUqROT10GeP40gp/builds/i6eLsK8vscu3chUqU/openapi.json
