# Cannabis License Changes: Closed, New, Opened, Lapsed (`mdcurt/cannabis-license-change-signals`) Actor

State cannabis licence events as dated signals across 21 states: licences closed, surrendered, revoked, nonrenewed or gone from the list, plus licences issued and operations commenced. Official state files, each labelled with how often the state updates it. Pay per signal.

- **URL**: https://apify.com/mdcurt/cannabis-license-change-signals.md
- **Developed by:** [Matthew Curtis](https://apify.com/mdcurt) (community)
- **Categories:** Business, Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $140.00 / 1,000 licence change signals

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

## Cannabis license changes — closed, new, opened and lapsed licences as dated signals, 21 states

One record per **licence event** read from a state regulator's own licence file: a licence the state marks **closed** (inactive, expired, nonrenewed), a licence **issued**, **operations commenced**, an **expiration date passed** — and, when you give the Actor a baseline store, a licence that **left the list**, changed **status** (surrendered, revoked, cancelled) or **stage**, or is **new** since your previous run.

Official public files only: no login, no key. Pay per signal, never per licence row. Every signal says **how often its state updates the file** (`sourceCadence`) and **the date of the copy that was read** (`sourceUpdated`), because a signal can only be as fresh as the file behind it.

### Coverage (21 states, 35,033 licences read on 2026-11-10)

| State | File | Covers | Licences read | State updates it | A closure shows up as | Matched by |
|---|---|---|---|---|---|---|
| CA | DCC licence search (JSON) | all DCC licence types | 20,977 | daily | `license-closed` for Expired, dated by the state's expiration date; Surrendered / Canceled / Revoked as `status-changed` (baseline) | licence number |
| OR | OLCC open data | producers, processors, wholesalers, retailers, labs | 3,701 | monthly | `license-closed`, **dated by the state** (inactive date) — no baseline needed | licence number |
| NY | OCM open data | adult-use cultivators, processors, distributors, retailers, microbusinesses, registered organizations | 2,281 | daily | `status-changed` Active → Inactive (baseline) | licence number |
| CO | MED licence sheets | medical and retail stores, cultivations, manufacturers, labs, transporters, operators, hospitality, delivery | 1,831 | monthly | `license-removed` (baseline) | licence number |
| MT | Department of Revenue location lists | cultivator, dispensary and manufacturer locations, labs, transporters | 1,020 | irregular, undated | `license-removed` (baseline) | licensee + city + location |
| MA | CCC open data | all Commission licence types | 944 | weekly | `license-removed` (baseline) | licence number |
| WA | LCB weekly workbook | **retailers and retail title certificates only** | 851 | weekly | `status-changed` to Closed (Permanent) (baseline) | licence number |
| NV | CCB establishment workbook | all establishment types | 635 | monthly | `status-changed` to Surrendered / Revoked (baseline) | licence number |
| VT | CCB Active Licenses Report | cultivators, manufacturers, retailers, wholesalers, labs | 520 | about weekly, undated (server date used) | `license-removed` (baseline) | licence number |
| NJ | CRC permitted-businesses page | operating medicinal and personal-use businesses | 517 | irregular, undated | `license-removed` (baseline) | name + licence class |
| ME | OCP adult-use file | adult-use cultivation, manufacturing, stores, labs | 412 | monthly | `license-removed` (baseline) | licence number |
| IL | IDFPR combined licence list (PDF) | **active adult-use dispensaries only** | 272 | irregular — the copy read was dated 2026-02-20 | `license-removed` (baseline) | licence number |
| MO | DCR verified-dispensary map | **dispensaries only** | 238 | irregular — copy dated 2026-10-06 | `license-removed` (baseline) | licence number |
| MD | MCA yearly licensed-business workbooks | growers, processors, dispensaries, ancillary | 202 | **yearly** — copy dated 2026-09-09 | `license-removed` when next year's report drops it (baseline) | licence number |
| PA | DOH dispensary list (PDF) | **open dispensary locations only** | 195 | every month or two — copy dated 2026-09-16 | `license-removed` (baseline) | name + town |
| AZ | DHS establishments list (PDF) | adult-use establishments | 143 | **dormant** — the file is dated June 2021 | nothing until the Department posts a new list | certificate number |
| CT | DCP open data | operating adult-use and medical establishments | 116 | daily | `license-removed` (baseline) | licence number |
| SD | DOH establishments list | medical dispensaries, manufacturers, cultivators, labs | 96 | irregular, undated | `license-removed` (baseline) | name + town |
| KY | OMC licensees page | cultivators, processors, dispensaries, safety compliance | 62 | irregular, undated | `license-removed` (baseline) | name + licence type |
| DE | OMC dispensaries page | open dispensary locations | 14 | irregular, undated | `license-removed` (baseline) | name + address |
| MI | CRA monthly nonrenewal reports | licences the Agency names as nonrenewed | (reports, not a list) | monthly | `license-closed`, **named and dated by the state** — no baseline needed | licence number |

**Not covered, and why.** Oklahoma, New Mexico, Mississippi, Ohio and Arizona's current data sit inside search portals that offer no file. Alaska, Minnesota and Rhode Island answer with a bot challenge. Virginia has no retail market yet. Illinois craft growers, Missouri and Pennsylvania growers and processors, and Washington producers and processors are not in any readable public file. The remaining medical programs (Alabama, Arkansas, Florida, Georgia, Hawaii, Iowa, Louisiana, Nebraska, New Hampshire, North Dakota, Texas, Utah, West Virginia, DC) publish no list this Actor could read, or license a handful of operators by statute.

### How fresh is each state?

- `sourceCadence` — `daily`, `weekly`, `monthly`, `annual` or `irregular`: how often the regulator replaces the file.
- `sourceUpdated` — the date of the copy that was read (the state's own date where it prints one; otherwise the server's date for files; `null` for hand-edited pages that carry no date).
- The run's `SUMMARY` lists every source with its date, its age in days and what was read.
- **The look-back window is counted from the file's date, not from today.** Oregon's file is about five weeks old when it appears; with `sinceDays: 30` you still get the newest month it contains instead of nothing.
- A closure caught by the baseline is dated to the file that first showed it. On a monthly file it can be a month old; on Maryland's yearly file, up to a year.

### What you get

```json
{
  "id": "7143e78a16d8",
  "kind": "license-closed",
  "closure": true,
  "materiality": "high",
  "title": "OR: licence inactive — The Bakery, Recreational Retailer",
  "state": "OR",
  "agency": "Oregon Liquor and Cannabis Commission",
  "licenseNumber": "050-6040",
  "businessName": "The Bakery",
  "licenseType": "Recreational Retailer",
  "category": "retailer",
  "city": "Lafayette",
  "county": "Yamhill",
  "status": "Inactive",
  "otherActiveLicenses": 0,
  "observedAt": "2026-09-28",
  "expiresOn": "2026-10-07",
  "whyItMatters": "The Bakery (Recreational Retailer, Lafayette, Yamhill) is listed as Inactive by the Oregon Liquor and Cannabis Commission, dated 2026-09-28.",
  "confidence": "verified",
  "evidence": "license_status Inactive; inactive_date 2026-09-28; licence 050-6040",
  "sourceCadence": "monthly",
  "sourceUpdated": "2026-10-05",
  "keyedBy": "licence-number",
  "listingUrl": "https://data.oregon.gov/d/q32u-cmam"
}
```

| Kind | Needs a baseline | `closure` | Confidence | Where the date comes from |
|---|---|---|---|---|
| `license-closed` | no | true | verified | the state: Oregon's inactive date, California's expiration date on a licence marked Expired, Michigan's nonrenewal date |
| `license-removed` | yes | true | inferred | the file's date; the licence was in your baseline and is gone |
| `status-changed` | yes | true when the new status is a closed one | verified | the file's date |
| `license-issued` | no | false | verified | the state's issue date (CA, NY, ME, MA, MD, IL) |
| `operations-commenced` | no | false | verified | Massachusetts' commence-operations date |
| `expiration-lapsed` | no | false | inferred | an expiration date already passed when the state last updated an active-only list (CO, MA, ME, VT) that still shows the licence; the list does not say whether a renewal is pending |
| `stage-changed`, `license-added` | yes | false | verified | the file's date |

### Inputs

| Input | Default | What it does |
|---|---|---|
| `states` | `[]` (all 21) | Postal codes |
| `sinceDays` | `30` | Window for the kinds the state dates itself, counted back from each file's date. Max 365. |
| `closuresOnly` | `false` | Keep only signals with `closure: true` |
| `kinds` | `[]` (all) | Any of the kinds above |
| `licenseTypes` | `[]` (all) | `cultivator`, `manufacturer`, `retailer`, `testing-lab`, `transporter`, `delivery`, `other` |
| `stateStore` | none | A **named** key-value store of yours. The first run saves a baseline per state; every later run compares against it, reports the differences and saves the new snapshot. |
| `maxSignals` | `500` | Highest materiality first, then newest |

### Pricing

Pay per event: **$0.20 per signal** plus $0.005 per run (tiered Store discounts apply). Snapshots are saved to the key-value store and are free.

Measured on 2026-11-10, all states, 30 days, no baseline: **181 signals** — 62 closures (California 33 expired, Oregon 23 inactive, Michigan 6 nonrenewed), 68 licences issued (California 47, Maine 12, New York 9), 3 operations commenced (Massachusetts), 48 lapsed expirations (Colorado). With `closuresOnly` the same run is 62 signals. What the baseline adds each week is not known yet: no real closure had passed through it when this was written.

### Monitoring recipe

Create an empty **named** key-value store once (an unnamed one is deleted after your plan's retention period, which silently resets the baseline). Pick it as `stateStore` in a saved task with `closuresOnly: true`, and schedule the task weekly with `sinceDays: 7`. The first run saves the baselines; every later run returns the closures the states dated themselves plus everything that closed against the previous snapshot.

### Safeguards against a broken state file

A state file that is broken on the state's side must not turn into a wave of false closures:

- A source is only finalised when **every** request for it succeeded. A failed page, a missing workbook or an unexpected layout skips that state for the run: no events, baseline untouched. `SUMMARY.perSource` says why.
- California's API states how many licences it holds; a read more than 3 % short of it is skipped.
- A list that loses more than a fifth of its open licences at once is treated as a restructured file: nothing is reported and the earlier baseline is kept.
- A whole licence type vanishing at once (five or more licences, none left) is treated as an emptied tab or page: not reported, carried forward in the baseline. This happened while the Actor was being built: Colorado's testing-facilities sheet showed `#REF!` for about half an hour on 2026-11-10 and its 14 licences were missing from the read.

### Measured speed

All 21 states: 63 requests, 26–38 seconds, 0 failed, from a residential-grade connection on 2026-11-10; every source also answered a plain request from a datacenter address the same day (the Actor itself has not yet run on the Apify platform). California is 21 of the requests (1,000 licences per page). Memory: 512 MB is enough.

### Limitations

- `license-removed` has only been exercised with edited test baselines; no real closure has passed through it yet. A licence re-issued under a new number shows as one removal plus one addition.
- Where the state prints no licence number (MT, NJ, PA, SD, KY, DE) a renamed business looks like a closure plus an opening. `keyedBy` says which signals these are.
- Michigan is named nonrenewals only; revocations by disciplinary order are in separate press releases and are not read. There is no Michigan baseline.
- Washington's Board warns that its list reports can contain errors from a data-transfer issue.
- Illinois city names are read from a PDF address column and are best effort; 272 of the 277 dispensaries the document counts were read.
- Sole proprietors can appear as business names, exactly as the state prints them. Business e-mail, phone, owner, member and contact names, tax ids and mailing addresses in the state files are never read or output.
- The first run with a baseline store reports no differences; it only saves the baselines.

### For AI agents

Pass `{"states": ["OR", "CA", "MI"], "sinceDays": 30, "closuresOnly": true}` and read the dataset: `businessName`, `licenseType`, `city`, `county`, `status`, `observedAt`, `sourceUpdated`. About 25 seconds; $0.005 plus $0.20 per closure found (62 on 2026-11-10).

### Changelog

- 1.1.1 (2026-11-13) — every closure signal carries `otherActiveLicenses`: how many other licences the same legal name still holds in an open status in the same state file (0 = nothing else open; null where the file lists open licences only or names closures without a list). On the 60 days to 2026-11-13, 38 of the 178 California and Oregon closures belonged to businesses that still held open licences — a licence consolidation, not an exit — and `whyItMatters` now says so in the file's own numbers. Formal SAMPLE run (20 of 20 closures verified against the DCC API and the OLCC open-data set; see `examples/sample-signals.json`).
- 1.1.0 (2026-11-10) — 21 states (was Massachusetts only): CA, OR, NY, CO, MT, WA, NV, VT, NJ, ME, IL, MO, MD, PA, AZ, CT, SD, KY, DE, MI. New kind `license-closed` for closures the state dates itself; `closure` flag and `closuresOnly` input; `sourceCadence`, `sourceUpdated`, `keyedBy` on every signal; the window is counted from the file's date; lapses are inferred only on active-only lists; guards against partial reads, restructured files and emptied tabs. Readers for xlsx, HTML tables and PDF lists.
- 1.0.1 (2026-11-10) — an expiration counts as lapsed only if it had passed when the state last updated the file.
- 1.0.0 (2026-11-10) — first build: Massachusetts; dated events and baseline diff (never published).

# Actor input Schema

## `states` (type: `array`):

States to read, by postal code. Leave empty for all 21. Files differ in how often the state updates them (daily for CA, NY, CT; weekly for MA, VT, WA; monthly for CO, ME, MI, NV, OR; yearly for MD; irregular for the rest) — every signal carries that as sourceCadence and the date of the copy read as sourceUpdated.

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

Window for the events the state dates itself: licences closed (Oregon inactive dates, California expirations, Michigan nonrenewals), licences issued, operations commenced, expiration dates passed. Counted back from the date of the state's file, so a file posted monthly still yields its newest month. 7 for a weekly check, 30 for a monthly one. Max 365. Changes found against a baseline are always reported whatever the window.

## `kinds` (type: `array`):

Keep only these kinds. Leave empty for all. license-closed needs no baseline (the state prints the closure). license-removed, status-changed, stage-changed and license-added need a baseline store.

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

Keep only these licence categories. Leave empty for all.

## `closuresOnly` (type: `boolean`):

Keep only signals that say a licence ended: closed by the state, gone from the list, or moved into a closed status (surrendered, revoked, cancelled, expired, inactive, nonrenewed). For liquidators, equipment resellers and brokers.

## `stateStore` (type: `string`):

Optional. Pick one of your key-value stores — create an empty NAMED one once (unnamed stores are deleted after your plan's retention period, which would silently reset the baseline). Each run compares every state's file with the snapshot saved there by the previous run, reports licences that disappeared, changed status or stage, or are new, then saves the new snapshot. The first run only saves the baseline. Without a store you get the events the states date themselves.

## `maxSignals` (type: `integer`):

Upper bound on signals pushed (and charged). Highest materiality first, then newest.

## `proxyConfiguration` (type: `object`):

The state files answer from datacenter IPs; the default Apify datacenter proxy is enough.

## Actor input object example

```json
{
  "states": [
    "OR",
    "CA",
    "MI"
  ],
  "sinceDays": 30,
  "kinds": [],
  "licenseTypes": [],
  "closuresOnly": false,
  "maxSignals": 500,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `records` (type: `string`):

One signal per licence event: kind, closure (true when a licence ended), state, businessName, licenseNumber (null where the state prints none), licenseType, category, city, county, stage, status, observedAt, expiresOn, previous, whyItMatters, confidence (verified|inferred), evidence, sourceUrl, sourceCadence (how often the state updates the file), sourceUpdated (date of the copy read), keyedBy.

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

SUMMARY record: per source the licences read, the file's date and age in days, its update cadence, the window used, the baseline used, dated and diff events found, and any source skipped (with the reason). The run's snapshot is saved as SNAPSHOT-<source> in the same store.

# 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 = {
    "states": [
        "OR",
        "CA",
        "MI"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("mdcurt/cannabis-license-change-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 = {
    "states": [
        "OR",
        "CA",
        "MI",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("mdcurt/cannabis-license-change-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 '{
  "states": [
    "OR",
    "CA",
    "MI"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call mdcurt/cannabis-license-change-signals --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mdcurt/cannabis-license-change-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/fXYUKMg4gSidQxLYF/builds/3DKQZg4VsTpIqcQrz/openapi.json
