# NY Cannabis License Changes (OCM) (`signalloom/ny-cannabis-license-changes`) Actor

Alerts when new cannabis dispensaries, cultivators and processors are licensed in New York, as sales leads. Filter by county and license type. Business info only. Source: data.ny.gov. Unofficial, not affiliated with or endorsed by the NY Office of Cannabis Management (OCM).

- **URL**: https://apify.com/signalloom/ny-cannabis-license-changes.md
- **Developed by:** [Signalloom](https://apify.com/signalloom) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 license changes

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

*Unofficial, not affiliated with or endorsed by the New York State Office of Cannabis Management (OCM) or any New York State agency.*

### What does NY Cannabis License Changes (OCM) do?

**Get an alert when a new cannabis dispensary, cultivator, processor or distributor is licensed in New York.** Every run tells you which businesses got a **new** active license, filed a **pending** application or amendment, **closed** or **changed**, plus new registered adult-use retailers, so you can reach them while they are still setting up. Built as a sales-lead feed for suppliers, packaging, software and compliance vendors, landlords, insurers, local news and market analysts, and based on the **New York Office of Cannabis Management (OCM)** open data on [data.ny.gov](https://data.ny.gov).

- **Filter to the leads you want:** by **county** (for example Albany, Saratoga, or leave empty for all of New York) and by **license type**.
- **Daily change alerts or a weekly snapshot:** `changes` mode outputs only what is new or different since your last run. `snapshot` mode outputs the current list.
- **Business information only:** business / trade (DBA) name, premises address, county, license type, license number, status, activities, dates and the change type. Licenses held by sole proprietors or individuals are left out, and contact details and tax ids are never output (see [Business-only feed](#business-only-feed)).

Source: New York State open data from [data.ny.gov](https://data.ny.gov) (Open NY). This Actor is unofficial and not affiliated with New York State or the Office of Cannabis Management.

### Data source and update cadence

Official open data published by New York State, read through the public Socrata (SODA) API on data.ny.gov:

| Dataset | Name | Role |
|---|---|---|
| [jskf-tt3q](https://data.ny.gov/d/jskf-tt3q) | Current OCM Licenses (licensees plus applicants with proximity protection) | `licenses` |
| [gttd-5u6y](https://data.ny.gov/d/gttd-5u6y) | NYS Registered Retail Dealers of Adult-use Cannabis Products (Tax Department / OCM) | `retail-registry` |

The state refreshes these datasets about once a day (when this README was written they had been updated within the previous 24 hours). Recommended cadence: **a daily run in `changes` mode** and **a weekly run in `snapshot` mode**. The Actor reads `robots.txt` at the start of every run, never requests a disallowed URL, and waits at least **1 second** between requests (data.ny.gov declares `Crawl-delay: 1`; a larger declared delay is obeyed).

### Business-only feed

This feed is built for lead generation, market monitoring and compliance research on **businesses**. It contains **business licensees only**:

- **Sole proprietors and individuals are left out.** A row is output only when the licensee's legal name is clearly a business (LLC, Inc, Corp, Ltd, LP, Co, trade words such as Tavern, Deli or Dispensary, digits, a possessive trade name). Licenses held by a person, a couple, an estate or a trust named after people are dropped entirely (two people joined by "&" or "and", and names made of several personal names, count as individuals even when an LLC, Tavern or Farm word follows. A single person's name is also dropped when it is wrapped in "The", a possessive ("First Last's Farm") or Tavern / Pub / Saloon, and a name written "Person - Business" keeps only the business part. "First Last Farm", "First Last Family Farm" and "First Last Tavern" as a legal name are dropped; a person's name inside a longer business name ("First Last Wines", "First Last LLC") is kept. The name check is a heuristic that prefers dropping a row when unsure, so a few real businesses with names like "A & B LLC" may be left out): they never appear in the dataset, in the stored change-detection snapshot or in change rows. The run log and the `RUN_SUMMARY` record report only how many rows were dropped (`soleProprietorRowsDropped`).
- **No person data columns.** The Actor never requests principal, officer, owner, applicant or contact-person columns, personal phone numbers or e-mail addresses. The licensee contact person (`primary_contact_name`) and the social-equity ownership categories (`see_category`) are not requested, and the taxpayer id (`external_tpid`) is only used inside an internal hash key and never output.
- **Names after the business part are cut.** "ACME LLC JANE DOE" becomes "ACME LLC"; text after "c/o", "attn", "dba", "officer", "manager" and similar cues is removed.
- **A trade name that is just a person's name is withheld** (`dbaWithheld: true`). The row then uses the business legal name.
- **Free text is scrubbed.** Address line 2, AKA address, business purpose and opening hours lose e-mail addresses, phone numbers, SSN/EIN-shaped numbers and names that follow contact/owner/manager cues.
- **No SSNs, EINs or tax ids** are output, and a final guard re-checks every output row.
- **Premises coordinates and addresses** are those of the licensed business premises as published by the state.

The business check is a heuristic: there is no list of individuals to check against, and an unusual personal or business name can be classified either way. When in doubt the Actor leaves the row out. Review a first run before you share the data, and report anything that looks wrong.

### What data can it extract?

| Field | Description |
|---|---|
| `changeType`, `changeReason`, `detectedAt`, `eventDate` | What happened (`new`, `pending`, `closed`, `changed`; `baseline` / `snapshot` in those modes), why, when the run saw it, and the latest date on the record |
| `businessName`, `dba`, `legalName` | Trade name, DBA and (business-only) legal entity name. `businessName` = DBA, else business legal name, else `null` |
| `dbaWithheld`, `addressPrefixWithheld` | True when a trade name or a text in front of the street address looked like a person and was removed |
| `address`, `addressLine2`, `city`, `county`, `region`, `zip`, `latitude`, `longitude` | Premises location (`latitude`/`longitude` only for the retail registry) |
| `licenseNumber`, `applicationNumber`, `recordId`, `recordIdType`, `locationId` | OCM identifiers as published |
| `licenseType`, `licenseTypeCode`, `licenseStatus`, `licenseStatusCode`, `operationalStatus` | License type and status |
| `businessPurpose`, `tierType`, `processorType`, `activities` | Licensed purpose and activity flags (cultivation, processing, retail) |
| `website`, `hoursOfOperation`, `retailDateOpenedToPublic` | Public business website (plain URL), opening hours, date opened to the public |
| `issuedDate`, `effectiveDate`, `expirationDate` | Relevant dates |
| `currentState`, `previousState`, `changedFields`, `previousValues` | State now / before (`active`, `pending`, `inactive`, `registered`), and for `changed` rows which fields changed and their old (cleaned) values |

#### Change rules

- `new`: id first seen as active or registered (or moved to active).
- `pending`: license or amendment first seen with an in-process / under-review status.
- `closed`: license became inactive, first seen as inactive, or vanished from the source (`currentState: "removed"`).
- `changed`: same id and state but a field changed.

### How to use it

1. Open the Actor and set `counties` (for example Albany, Kings, Erie) and optionally `licenseTypes` (for example `Retail Dispensary`, `Cultivator`, or a type code such as `OCMRETL`).
2. Run once in `changes` mode. This is the **baseline**: it stores a snapshot and emits no change rows (tick *Emit rows on the baseline run* if you want the current records once).
3. Schedule a daily `changes` run and a weekly `snapshot` run.
4. Read the dataset, or connect it to Make, Zapier, Google Sheets, webhooks or the API.

### Input

See the **Input** tab for every option with its help text. Key ones:

| Field | Meaning |
|---|---|
| `outputMode` | `changes` (daily diff) or `snapshot` (current records; never touches the stored baseline) |
| `counties` | Keep only these counties, e.g. `["Albany", "Kings"]`. Empty = all of New York |
| `licenseTypes` | Keep only matching license types (e.g. `Retail Dispensary`) or type codes (e.g. `OCMRETL`, or `RETL` for the retail registry) |
| `sinceDate` | `YYYY-MM-DD`: only rows whose latest record date is on or after it |
| `maxItems` | Cap on output rows (0 = unlimited) |
| `stateStoreName` | Named key-value store holding the previous snapshot (needed for change detection on the platform) |
| `emitBaselineRows`, `includeInactiveInSnapshot`, `commitState` | Baseline / snapshot / dry-run switches |
| `sourceRowLimit`, `requestDelayMs` | Testing only / politeness delay (minimum 1000 ms) |

Example input (a small, fast snapshot of one county):

```json
{ "outputMode": "snapshot", "counties": ["Albany"], "maxItems": 25 }
```

### Output example

```json
[
  {
    "changeType": "snapshot",
    "changeReason": "weekly snapshot row",
    "isBaseline": false,
    "detectedAt": "2026-11-15T21:45:25.657Z",
    "eventDate": null,
    "currentState": "active",
    "previousState": null,
    "sourceDataset": "jskf-tt3q",
    "sourceList": "licenses",
    "recordId": "MM0108D",
    "recordIdType": "license_number",
    "licenseNumber": "MM0108D",
    "applicationNumber": "OCMXROD-2024-000002",
    "legalName": "PharmaCann of New York, LLC.",
    "dba": "Verilife",
    "dbaWithheld": false,
    "businessName": "Verilife",
    "licenseType": "Adult-Use Registered Organization Dispensary License",
    "licenseTypeCode": "OCMXROD",
    "licenseStatus": "Active",
    "licenseStatusCode": "LICACT",
    "operationalStatus": "Non-Operational",
    "locationId": "LID002",
    "businessPurpose": "Medical and Adult-Use Retail Sales",
    "tierType": null,
    "processorType": null,
    "activities": [
      "Retail: Sales No Delivery",
      "Retail: Non-Cannabis Products"
    ],
    "address": "2 Wade Road",
    "addressPrefix": null,
    "addressPrefixWithheld": false,
    "addressLine2": null,
    "city": "Latham",
    "county": "Albany",
    "usState": "NY",
    "zip": "12110",
    "region": "Capital Region",
    "website": "https://www.verilife.com/ny",
    "hoursOfOperation": "Sun: 08:00 AM - 10:00 PM; Mon: 08:00 AM - 10:00 PM; Tues: 08:00 AM - 10:00 PM; Wed: 08:00 AM - 10:00 PM; Thurs: 08:00 AM - 10:00 PM; Fri: 08:00 AM - 10:00 PM; Sat: 08:00 AM - 10:00 PM",
    "latitude": null,
    "longitude": null,
    "issuedDate": null,
    "effectiveDate": null,
    "expirationDate": null,
    "retailDateOpenedToPublic": null,
    "sourceUrl": "https://data.ny.gov/d/jskf-tt3q",
    "changedFields": null,
    "previousValues": null
  },
  {
    "changeType": "snapshot",
    "changeReason": "weekly snapshot row",
    "isBaseline": false,
    "detectedAt": "2026-11-15T21:45:25.657Z",
    "eventDate": null,
    "currentState": "active",
    "previousState": null,
    "sourceDataset": "jskf-tt3q",
    "sourceList": "licenses",
    "recordId": "MM0203D",
    "recordIdType": "license_number",
    "licenseNumber": "MM0203D",
    "applicationNumber": "OCMROND-2024-000002",
    "legalName": "Vireo Health of NY, LLC.",
    "dba": null,
    "dbaWithheld": false,
    "businessName": "Vireo Health of NY, LLC.",
    "licenseType": "Registered Organization",
    "licenseTypeCode": "OCMRO",
    "licenseStatus": "Active",
    "licenseStatusCode": "LICACT",
    "operationalStatus": "Non-Operational",
    "locationId": "LID003",
    "businessPurpose": "Medical Sales",
    "tierType": null,
    "processorType": null,
    "activities": [
      "Retail: Sales No Delivery",
      "Retail: Non-Cannabis Products"
    ],
    "address": "38 Fuller Road",
    "addressPrefix": null,
    "addressPrefixWithheld": false,
    "addressLine2": null,
    "city": "Albany",
    "county": "Albany",
    "usState": "NY",
    "zip": "12205",
    "region": "Capital Region",
    "website": "https://vireohealth.com/ny",
    "hoursOfOperation": null,
    "latitude": null,
    "longitude": null,
    "issuedDate": null,
    "effectiveDate": null,
    "expirationDate": null,
    "retailDateOpenedToPublic": null,
    "sourceUrl": "https://data.ny.gov/d/jskf-tt3q",
    "changedFields": null,
    "previousValues": null
  }
]
```

You can download the dataset as JSON, CSV, Excel or HTML. The `RUN_SUMMARY` record in the key-value store holds counts per source, filters, `isBaseline`, diff statistics, how many sole-proprietor / individual rows were dropped, requests made, memory and duration.

### How much will it cost?

This Actor uses **pay-per-event** pricing. You are charged for these events only:

| Event | Price | When it is charged |
|---|---|---|
| `actor-start` | $0.01 per run | Once per run |
| `license-change` | $0.004 per row (about $4 per 1,000) | For each change row pushed in `changes` mode |
| `snapshot-row` | $0.0003 per row (about $0.30 per 1,000) | For each row pushed in `snapshot` mode (and for optional baseline rows when *Emit rows on the baseline run* is ticked) |

Typical costs: a daily `changes` run costs the $0.01 start fee plus $0.004 for each license that changed that day, so a quiet day is about one cent. A baseline run costs only $0.01. A `snapshot` of a small county (about 100 rows) is about 4 cents; a statewide snapshot is priced per row, so tens of thousands of rows cost several dollars. Use the county and license-type filters to keep it small.

A baseline run (the first run, or the first run after you change the filters, or after an update that changes the name rules, which rebuilds the stored baseline so names stored by an older version are never compared or shown) pushes no rows, so it only costs the start event. Rows that are dropped because the licensee is a sole proprietor or individual are never pushed and never charged. Set **Max total charge** on the run to cap spending: when the limit is reached the Actor stops pushing rows cleanly and logs it. In `changes` mode the change rows that were not pushed are not saved to the stored baseline, so the next run reports them. The `RUN_SUMMARY` record lists the events charged and whether the limit was reached. Platform compute is included in the event prices.

A statewide run reads about 4,000 records in a handful of requests and finishes in seconds with 512 MB-1 GB of memory, so a run costs a fraction of a cent. See the run summary for real duration and memory.

### Limitations

- The state data lags the agencies' own systems and can contain errors or typos in business names and addresses.
- The registry of retail dealers has fewer fields (no status or dates).
- The business-only check is a heuristic (see Business-only feed). A business named after a person can occasionally be left out, and an unusual personal name can occasionally be missed; the Actor leans towards leaving rows out.
- This is not an official license verification and not legal advice.

### Data source and legal

Data is published by New York State on [data.ny.gov](https://data.ny.gov) under the Open NY terms of use, which allow reuse including commercial reuse. Always check the dataset page for current terms. This Actor is unofficial and not affiliated with New York State, the Office of Cannabis Management or the Department of Taxation and Finance.

# Actor input Schema

## `outputMode` (type: `string`):

'changes' = diff against the previous run's snapshot (first run only stores a baseline). 'snapshot' = emit the current records; does not touch the stored baseline.

## `counties` (type: `array`):

Only keep these counties (case-insensitive), e.g. Albany, Kings, Erie. Empty = all of New York.

## `licenseTypes` (type: `array`):

Only keep licenses whose license type contains one of these texts (e.g. "Retail Dispensary", "Cultivator") or whose type code matches (e.g. "OCMRETL", or "RETL" for the retail registry). Empty = all.

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

Cap on rows pushed to the dataset (0 = no cap). Pay attention to this when you run statewide.

## `sinceDate` (type: `string`):

Only emit rows whose latest record date (issue / effective / expiration / received) is on or after this date. Rows with no dates are always kept.

## `stateStoreName` (type: `string`):

Named key-value store that holds the previous snapshot between runs. The default run store is erased with each run, so a named store is needed for change detection on the platform (it is created on first use).

## `emitBaselineRows` (type: `boolean`):

On the first run (or after the filters change) no changes can be computed. Tick to also output the current records as changeType 'baseline' rows (still capped by Max output rows).

## `includeInactiveInSnapshot` (type: `boolean`):

Snapshot mode only. Inactive/expired records are numerous and excluded unless ticked.

## `commitState` (type: `boolean`):

Untick for a dry run that leaves the stored baseline untouched (changes mode only).

## `sourceRowLimit` (type: `integer`):

Testing only: read only the first N rows (ordered by id) of every source dataset. 0 = read everything. Part of the snapshot signature, so changing it starts a new baseline.

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

Pause between requests to data.ny.gov in milliseconds. Minimum 1000 (the site declares Crawl-delay: 1 in robots.txt, which is also read at the start of every run and obeyed if it asks for more).

## Actor input object example

```json
{
  "outputMode": "snapshot",
  "counties": [
    "Albany"
  ],
  "licenseTypes": [],
  "maxItems": 25,
  "stateStoreName": "ocm-license-state",
  "emitBaselineRows": false,
  "includeInactiveInSnapshot": false,
  "commitState": true,
  "sourceRowLimit": 0,
  "requestDelayMs": 1000
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset with the change or snapshot rows

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

Counts, filters and whether this was a baseline run

# 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 = {
    "outputMode": "snapshot",
    "counties": [
        "Albany"
    ],
    "licenseTypes": [],
    "maxItems": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("signalloom/ny-cannabis-license-changes").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 = {
    "outputMode": "snapshot",
    "counties": ["Albany"],
    "licenseTypes": [],
    "maxItems": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("signalloom/ny-cannabis-license-changes").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 '{
  "outputMode": "snapshot",
  "counties": [
    "Albany"
  ],
  "licenseTypes": [],
  "maxItems": 25
}' |
apify call signalloom/ny-cannabis-license-changes --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,signalloom/ny-cannabis-license-changes"
        }
    }
}
```

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/YmLsGSQTBlYmYX03D/builds/o1tzGWj5NeifjhJf8/openapi.json
