# NY Cannabis Retail Signals (OCM + Tax + Hemp) (`signalloom/ny-cannabis-retail-signals`) Actor

New York cannabis retail signals: dispensary openings (Tax Dept registration matched to the OCM license), new Tax Dept registrations, and hemp license changes. Business info only. Unofficial, not affiliated with or endorsed by NY OCM, the NYS Tax Department or any NY agency.

- **URL**: https://apify.com/signalloom/ny-cannabis-retail-signals.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 $10.00 / 1,000 retail signals

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

## NY Cannabis Retail Signals (OCM + Tax Dept + Hemp)

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

Know when New York cannabis dispensaries **open for business**, when new retailers register with the Tax Department, and when cannabinoid hemp licenses are added, changed or dropped – as one business-level change feed.

### Signals

| changeType | Meaning |
| --- | --- |
| `retailer-opened` | A retail license (adult-use retail, CAURD, microbusiness, RO dispensary) now shows an opened signal: it is matched to a Tax Dept retail-dealer registration by OCM license number, and/or OCM lists a retail opened-to-public date (`openedBasis`) |
| `retailer-status-changed` | Operational status, license status or tax registration changed for an opened retailer, or it left the OCM list |
| `tax-registration-new` / `-changed` / `-removed` | Tax Dept Registered Retail Dealers of Adult-use Cannabis Products list |
| `hemp-license-new` / `-changed` / `-removed` | OCM Cannabinoid Hemp Licenses (retail, distributor, processor, temporary retail) |

Rows carry the OCM or hemp license number, license type, status, issue/effective/expiration dates, opened-to-public date, number of listed locations, business name, premises address, city, county, zip, website (where published) and a link to the source dataset.

### Sources (NY Open Data)

- [Current OCM Licenses (jskf-tt3q)](https://data.ny.gov/d/jskf-tt3q) – weekly
- [NYS Registered Retail Dealers of Adult-use Cannabis Products (gttd-5u6y)](https://data.ny.gov/d/gttd-5u6y) – weekly
- [Current Cannabinoid Hemp Licenses (4r7n-55mm)](https://data.ny.gov/d/4r7n-55mm) – bi-weekly

### How it works

- **Changes mode** compares with the state saved in a named key-value store (`stateStoreName`); the first run stores a baseline. **Snapshot mode** outputs current tax registrations, hemp licenses and opened retailers without touching the state.
- Choose signals with `signals` (`opened`, `tax`, `hemp`); filter by county or license type.
- **Changes mode only:** rows cut by `maxItems` or your spending limit are held back and reported by the next run. In **snapshot mode** `maxItems` just truncates the output.
- `RUN_SUMMARY` has counts per signal, match statistics and privacy counts.
- At least 1 second between requests to data.ny.gov; robots.txt is honoured.

### Privacy – business information only

- Sole-proprietor / individual licensees are dropped before output or state.
- OCM `primary_contact_name` is **never output or stored**. It is read only to build a set of hashed names, so that an entity named after its contact person has its legal name withheld; the raw values are discarded immediately.
- `see_category` (social-equity ownership categories) is never requested. The Tax Dept taxpayer ID is used only inside a hashed key.
- The Tax Dept address field often starts with a person's name; that prefix is withheld unless it is a business name.
- Entities named after a person (legal name withheld) are flagged `legalEntityType: "person_named_entity"` and their trade name gets the stricter individual rule. A person-like name before a possessive ("Firstname Lastname's ...") is withheld too.
- Name-like text after the street suffix is cut from the address (`addressTailWithheld: true`).
- The saved state goes through the same privacy guard as the output before it is written, so it never holds a name the output withholds.
- E-mails and phone numbers are scrubbed from every field.

### Data notes

- About 3% of Tax Dept registrations reference license numbers that are not on the OCM list (mostly temporary and adult-use conditional licenses).
- Status changes, removals and the hold-back path have unit tests but have not yet appeared in a live run; they will be verified on the first live change runs.
- OCM license numbers can cover several locations; the feed keeps one row per license with `locationsListed`.
- Open data under the [OPEN-NY terms](https://data.ny.gov/). Not affiliated with OCM or the Tax Department.

# Actor input Schema

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

'changes' = compare with the state saved by the previous run and emit change rows (the first run only stores a baseline). 'snapshot' = emit the current records; does not read or change the saved state.

## `signals` (type: `array`):

Which signals to track: opened (retail license matched to a tax registration or opened date), tax (Tax Dept registrations), hemp (cannabinoid hemp licenses).

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

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

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

Only keep these license types: a code or class matches exactly, other text matches the type description. Empty = all.

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

Most rows to output in one run (0 = no limit). In changes mode, rows beyond the limit are held back in the saved state and reported by the next run.

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

Only output rows whose event date is on or after this date (YYYY-MM-DD).

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

Named key-value store that keeps the change-detection state between runs. Use a different name per filter set.

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

On a baseline run, also output every current record (billed as snapshot rows).

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

Save this run's data as the new baseline. Turn off for a dry run.

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

Read at most this many rows per source dataset (0 = all). For tests only: it changes the baseline signature.

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

Wait between requests to data.ny.gov. Never below 1000 ms.

## Actor input object example

```json
{
  "outputMode": "snapshot",
  "signals": [
    "opened",
    "tax",
    "hemp"
  ],
  "counties": [
    "Kings"
  ],
  "maxItems": 25,
  "stateStoreName": "ocm-retail-signal-state",
  "emitBaselineRows": 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": [
        "Kings"
    ],
    "maxItems": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("signalloom/ny-cannabis-retail-signals").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": ["Kings"],
    "maxItems": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("signalloom/ny-cannabis-retail-signals").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": [
    "Kings"
  ],
  "maxItems": 25
}' |
apify call signalloom/ny-cannabis-retail-signals --silent --output-dataset

```

## MCP server setup

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

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/Ry6EnVaQU7Rc7Hq0g/builds/oyC77lY2QgkC8Sv6o/openapi.json
