# NY Liquor License Applications (SLA) (`signalloom/ny-liquor-license-applications`) Actor

New York State Liquor Authority pending applications as a change feed: new applications, status changes, and applications issued or withdrawn. Business information only. Unofficial, not affiliated with or endorsed by the NY State Liquor Authority (SLA).

- **URL**: https://apify.com/signalloom/ny-liquor-license-applications.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 application 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

## NY Liquor License Applications (SLA) – change feed

*Unofficial, not affiliated with or endorsed by the New York State Liquor Authority (SLA) or any New York State agency.*

Track **pending New York State Liquor Authority applications** the day they change: new applications, status moves (IntakeComplete → Under Review → Conditionally Approved → Reconsideration), and applications that leave the pending list – with a check of whether a matching new license was issued.

Pending applications are the earliest public signal that a bar, restaurant, liquor store or grocery is coming, usually weeks before opening. Sales teams at distributors, POS and payments companies, insurers and food-service suppliers use them to reach venues while they are still choosing vendors.

### What you get

| changeType | Meaning |
| --- | --- |
| `new-application` | First seen on the SLA pending list |
| `status-change` | Status moved; `previousStatus`, `daysInPreviousStatus` show where it came from |
| `application-updated` | Other fields changed (`changedFields`, `previousValues`) |
| `application-issued` | Left the pending list and a matching new active license was found (`resolution.matchedLicenseId`, `matchBasis`) |
| `application-removed` | Left the pending list with no matching license: withdrawn, denied, disapproved, or not yet shown as active |

Each row carries the application ID, license type and class, business name, premises address, city, county, zip, latitude/longitude, received date, `daysSinceReceived` and a link to the source dataset.

### How it works

- Source: NY Open Data dataset [Current SLA Pending Licenses (f8i8-k2gm)](https://data.ny.gov/d/f8i8-k2gm), updated daily. Issued check: [Current Liquor Authority Active Licenses (9s3h-dpkz)](https://data.ny.gov/d/9s3h-dpkz), only for the zip codes of applications that left the list.
- **Changes mode** compares today's list with the state saved in a named key-value store (`stateStoreName`). The first run stores a baseline and outputs nothing (unless `emitBaselineRows`).
- **Snapshot mode** outputs the current pending list and never touches the saved state.
- **Changes mode only:** rows cut by `maxItems` or by your spending limit are **held back** and reported by the next run, never lost. In **snapshot mode** `maxItems` just truncates the output (nothing is saved or held back).
- `RUN_SUMMARY` in the default key-value store has counts per change type, privacy counts and held-back rows.
- At least 1 second between requests to data.ny.gov; robots.txt is honoured.

### Privacy – business information only

- Applications whose legal name is a sole proprietor or individual are **dropped** before output or state.
- Entity names that are only a person's name plus a suffix ("First Last LLC"), or a person-like name before a possessive ("Firstname Lastname's Farm"), have their legal name withheld (`legalNameWithheld: true`, `legalEntityType: "person_named_entity"`); their trade name then gets the stricter individual rule.
- Name-like text after the street suffix ("12 Main St Firstname Lastname") is cut from the address (`addressTailWithheld: true`); street names, cities, units and landmarks stay.
- 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.
- Trade names, address prefixes and free-text address lines go through the same business-only filters as the Signalloom license feeds; e-mails and phone numbers are scrubbed from every field.
- The source publishes no owner, officer or contact columns; none are added.

### Data notes

- The source has no status date. `daysInPreviousStatus` is counted from when this Actor first saw the status (`daysInPreviousStatusBasis: "observed"`); for applications that were still at **IntakeComplete** at the baseline it is counted from the received date (`"received_date"`). For other statuses seen at the baseline the start date is unknown, so the first status change after the baseline has `daysInPreviousStatus: null`.

- `application-issued`, `application-removed` 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.

- The SLA list shows applications only while they are pending; it has no "withdrawn" status, so `application-removed` covers withdrawn, denied and other removals.

- `application-issued` is a match on zip code plus legal or trade name plus street address or license class, issued on or after the received date. Treat it as likely, not certain.

- Open data published under the [OPEN-NY terms](https://data.ny.gov/). Not affiliated with the SLA.

# 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.

## `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).

## `checkIssued` (type: `boolean`):

When an application leaves the pending list, look for a matching new active license (same zip, name plus address or class) to tell 'issued' from 'withdrawn / denied / removed'. Adds a few requests to data.ny.gov 9s3h-dpkz.

## `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",
  "counties": [
    "Albany"
  ],
  "maxItems": 25,
  "checkIssued": true,
  "stateStoreName": "sla-application-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": [
        "Albany"
    ],
    "maxItems": 25
};

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

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

```

## MCP server setup

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

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/eYUDRCLPpw3m1wBTh/builds/yoMgpeH2kLYFikQCK/openapi.json
