# New York Liquor Licenses - SLA Registers (`ai-lead-gen-tools/new-york-liquor-licenses`) Actor

\[💰$0.05/1K] New York State Liquor Authority registers: active licences, pending applications and the inactive archive on request. Every row carries the licence number, class code and description, licensee and DBA, premises address with county and map coordinates, issue and expiry dates.

- **URL**: https://apify.com/ai-lead-gen-tools/new-york-liquor-licenses.md
- **Developed by:** [Vladimir Che](https://apify.com/ai-lead-gen-tools) (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 $0.05 / 1,000 liquor licence privilege scrapeds

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

## New York Liquor Licenses - SLA Registers

Scrape every liquor licence and application the **New York State Liquor Authority** publishes in
its open data portal. The actor reads three datasets: the current licence register, the
application queue under review, and, on request, the inactive archive that goes back to 1981.

No login, no cookies, no API key, no proxy. The data comes from the open Socrata datasets of
`data.ny.gov`, `9s3h-dpkz`, `f8i8-k2gm` and `6dg3-2z7i`.

A run over the default scope, active plus pending, returned **61 616 rows** on 2026-11-13:
58 618 active licences and 2 998 applications. Adding the inactive archive adds 64 337 rows.

### What you get

One row per licence or application. Every field is always present, and a value the register does
not publish is `null` rather than missing, so the column set never changes between runs. Every
`null` is also explained in `omitted` with a machine-readable reason.

| Field | Source column | Notes |
|---|---|---|
| `licenseNumber` | `licensepermitid` | the SLA serial number, e.g. `0001-22-100483` |
| `licenseClassRaw` | `licensetype` | the numeric class code, e.g. `0001` |
| `licenseClassLabel` | class description | the human class name, e.g. `Wholesale Beer (Retail)` |
| `privilege` | class description | same text, kept for cross-state joins |
| `businessType` | derived from the class | `bar`, `restaurant`, `grocery`, `package_store`, `club`, `hotel`, `theater`, `manufacturer`, `wholesaler`, `specialty_shop`, `other` |
| `isAddOn` | derived from the class | true on additional bar rows |
| `addOnLicenseNumber` | parent licence column | the parent licence on additional bar rows, active table only |
| `businessName` | `dba` | trade name of the premises |
| `legalName`, `licenseeName` | licensee column | the licence holder |
| `premiseAddress` | street, city, state, zip columns | street1, street2, city, state, zip |
| `countyName` | `county` | the county name as published |
| `issueDate`, `expireDate` | issue and expiry columns | ISO 8601 |
| `location` | `georeference` | GeoJSON point when the row is geocoded |
| `status`, `statusRaw` | derived | normalized `active`, `pending`, `expired`, `unknown` |
| `feed`, `eventType` | derived | which feed the row belongs to and what it means for this run |
| `recencyBasis`, `recordKey`, `completeness`, `omitted`, `raw` | derived | provenance, identity and the null report |

Every record also carries `dataset`, the name of the table it came from, plus the fields that
table publishes, for example `licenceTypeCode`, `legacySerialNumber`, `effectiveDate` and
`lastIssueDate` on the active table.

A real record from a live run:

```json
{
  "source": "ny-sla",
  "sourceUrl": "https://data.ny.gov/resource/9s3h-dpkz.json",
  "sourceReport": "9s3h-dpkz-page-0",
  "sourceDataAsOf": "2026-11-13",
  "scrapedAt": "2026-11-13T13:47:46.531Z",
  "state": "NY",
  "jurisdiction": "new-york",
  "licenseNumber": "0001-22-100483",
  "licenseId": null,
  "licenseNumberSourceKey": "licensepermitid",
  "privilege": "Wholesale Beer (Retail)",
  "licenseClassRaw": "0001",
  "licenseClassLabel": "Wholesale Beer (Retail)",
  "businessType": "wholesaler",
  "isAddOn": false,
  "isTemporary": false,
  "addOnLicenseNumber": null,
  "addOnPrivilege": null,
  "status": "active",
  "statusRaw": "expiration: 2026-11-30",
  "eventType": "inventory",
  "feed": "active",
  "businessName": "CASE & KEG",
  "legalName": "MAHANT KRUPA 3811 INC",
  "licenseeName": "MAHANT KRUPA 3811 INC",
  "contactName": null,
  "contactRole": null,
  "contactPhone": null,
  "premiseAddress": { "street1": "3811 HEMPSTEAD TPKE", "street2": null, "city": "LEVITTOWN", "state": "NY", "zip": "11756" },
  "mailingAddress": { "street1": null, "street2": null, "city": null, "state": null, "zip": null },
  "countyName": "Nassau",
  "phone": null,
  "nightPhone": null,
  "applicationDate": null,
  "issueDate": "2025-11-07",
  "expireDate": "2026-11-30",
  "startupDate": null,
  "privilegeSubmittedDate": null,
  "privilegeApprovedDate": null,
  "privilegeTerminatedDate": null,
  "statusChangeDate": null,
  "reasonDescription": null,
  "privilegeReasonCode": null,
  "recencyBasis": "dataset-rows-updated",
  "recordKey": "ny-sla|0001-22-100483||Wholesale Beer (Retail)|active|0",
  "completeness": "partial",
  "omitted": [
    { "field": "phone", "reason": "source-lacks-field", "note": "no New York liquor dataset publishes a phone number" },
    { "field": "applicationDate", "reason": "source-lacks-field", "note": "only the pending dataset publishes an application date" },
    { "field": "licenseId", "reason": "source-lacks-field", "note": "the liquor number is the only identifier New York publishes" }
  ],
  "raw": null,
  "dataset": "active",
  "licenceTypeCode": "1",
  "legacySerialNumber": "1330642",
  "lastIssueDate": "2025-11-07",
  "effectiveDate": "2025-12-01",
  "akaAddress": null,
  "location": { "type": "Point", "coordinates": [-73.49535, 40.72619] }
}
```

Output is available as JSON, CSV or Excel from the dataset tab. Run counters land in the
`SUMMARY` key-value record, per dataset: records pushed, rows filtered out by the input, pages
read, and whether the gateway fallback was used.

### How to use it

1. Leave `datasets` at `active,pending` for current licences plus the application queue. Add
   `inactive` when you want the closed archive since 1981, which triples the run.
2. Leave `mode` at `full` for the whole register, or set `new` on a saved task to return only
   rows whose `recordKey` was not delivered by an earlier scheduled run.
3. Keep `includeRiders` on if you want every additional bar. Turn it off to drop the 5 132
   additional-bar rows and keep one row per primary licence.
4. Turn off `includeExpired` to drop rows that are already past their expiry date, and
   `includeOutOfState` to keep New York premises only.
5. Leave `businessTypes` and `licenseTypes` empty to get every row of the selected datasets.
   Set them only when you deliberately want a narrower run; filtering runs locally after the
   page is read.
6. Cap `maxResults` to the number of records you are willing to pay for, or leave `0`.
7. Run. Records go to the default dataset, one per licence or application.

```json
{
  "mode": "full",
  "datasets": ["active", "pending"],
  "includeExpired": false,
  "maxResults": 0
}
```

| Input | Default | What it does |
|---|---|---|
| `mode` | `full` | `full` returns every row of the selected datasets, `new` returns only rows not seen by an earlier scheduled run |
| `datasets` | `active,pending` | which tables to read: `active`, `pending`, `inactive` |
| `businessTypes` | empty, whole register | optional narrow-down on the normalized business type |
| `licenseTypes` | empty, whole register | optional narrow-down on classes, matched on the code or the class name |
| `includeRiders` | `true` | set `false` to drop the additional-bar rows |
| `includeOutOfState` | `true` | set `false` to keep New York premises only |
| `includeExpired` | `true` | set `false` to keep only rows that expire today or later |
| `maxResults` | `0` | hard cap on saved records, `0` means the whole selection |
| `includeRaw` | `false` | attach the untouched dataset row under `raw` |
| `pageSize` | `2000` | rows requested per page, ceiling is 50 000 |
| `requestTimeoutSecs` | `60` | per-page timeout before a retry is attempted |
| `runBudgetSecs` | empty | leave empty to use the run timeout; set a number only to stop earlier |
| `gatewayUrl` | `https://r.jina.ai/` | read-through gateway used when `data.ny.gov` refuses the host |

#### Ready-made tasks

One saved input for the question this actor exists for: which New York liquor licences are new since the last run. It returns data on its first run and fits the default budget.

| Task | Input | Question it answers |
|---|---|---|
| [New York New Liquor Licences, Daily](https://apify.com/ai-lead-gen-tools/new-york-liquor-licenses/examples/new-york-new-liquor-licenses-daily) | `mode`, `maxResults` | which active and pending licences appeared since yesterday, billed once per row |

### Modes

| Mode | What it returns | Charged |
|---|---|---|
| `full` | every row of the selected datasets as they stand today | one event per saved record |
| `new` | only rows whose `recordKey` was not delivered before | one event per saved record, zero on an unchanged register |

Both are available on every run, and you choose which one you want. `new` needs a saved task:
the seen set lives in the task's key-value store, so a run started straight from the Console or
the API keeps it in memory only, logs a warning and returns the full register.

### Use cases

- **Bar and restaurant lead lists** - every active on-premise licence in a county with the DBA,
  the licensee and a map point.
- **New openings pipeline** - the `pending` table is the only New York source with an application
  date and a review status, so it is the earliest public sign of a premises about to open.
- **Chain and group analysis** - one licensee often holds many licences. Group by `licenseeName`
  to see how many premises a company operates before you approach it.
- **Closed premises research** - read `inactive` to see when a licence stopped being active,
  which is useful for site selection and for cleaning an old lead list.

### Cost

The actor uses pay per event. One event is charged for **one record saved to the dataset**, at
**$0.05 per 1 000 records**. Each run also emits one `apify-actor-start` event, which is not part
of the per-record price.

A full run over the default scope, 61 616 records, costs about $3.08 at the per-record rate. A
run capped at 5 000 records costs about $0.25, and adding the inactive archive takes a full run
to about $6.30.

Rows that are not chargeable: a row already delivered by an earlier scheduled run in `new` mode
is skipped before charging. Rows filtered out by `datasets`, `businessTypes`, `licenseTypes`,
`includeRiders`, `includeOutOfState` or `includeExpired`, and records beyond `maxResults`, are
never saved and never charged.

### Honest limits

- No New York liquor dataset publishes a phone number. `phone`, `nightPhone`, `contactName`,
  `contactRole` and `contactPhone` are always `null`.
- `licenseId` is always `null`. The licence number is the only identifier the SLA publishes.
- The three datasets do not share one column layout. The actor maps each table with its own
  column list and normalizes the result, so `licenseClassRaw` is a numeric code such as `0001`
  while `licenseClassLabel` is the text; a row read from `pending` carries different extra fields
  than a row read from `active`.
- `applicationDate` is only published by the `pending` table. On an active licence it is `null`.
- `addOnLicenseNumber` is only published by the `active` table. On rows from `pending` and
  `inactive` it is `null`, so an additional bar there cannot be linked to its parent.
- Additional-bar rows are real rows, not duplicates: 5 132 of the 58 618 active rows carry a
  class such as `Additional Bar`. They extend a parent licence and are counted and charged
  separately.
- Coordinates are present on 57 540 of 61 616 default-scope rows. The rest are simply not
  geocoded, and `location` is absent rather than invented.
- `data.ny.gov` answers HTTP 403 to some datacenter IP ranges. The actor retries through a
  read-through gateway by default and reports `gatewayUsed` in `SUMMARY`; the run does not fail
  because of the block.

### FAQ

**Which New York table should I read?**
Start with the default `active,pending`. The active table is the licence register and the pending
table is the queue of applications; together they cover both what exists and what is about to.

**How far back does the inactive archive go?**
To 1981. It is off by default because it has 64 337 rows and triples the size of a full run.

**Do the records contain phone numbers?**
No. None of the three datasets publishes a phone number, so the phone fields are always `null`
and say so in `omitted`.

**Why do some rows have a parent licence number?**
Because New York lists additional bars as their own rows. Those rows carry the licence number of
the licence they extend in `addOnLicenseNumber`. Set `includeRiders` to `false` to drop them.

**Do I need a proxy or an API key?**
No. The datasets are public. Runs on a datacenter IP occasionally hit a 403 from the host, which
the actor works around with a gateway fallback; no account or token is involved.

**Why is `issueDate` null on some rows?**
Rows from the `pending` table are applications, and an application has not been issued. The
pending table publishes an application date instead.

**How do I get the closure date of a premises?**
Read the `inactive` dataset. A licence that stopped being active is no longer in the active
table, so the only place the transition is visible is the archive.

**Which mode should I pick, `full` or `new`?**
`full` for a snapshot of the selected datasets, `new` for a daily feed of what appeared since the
last run. `new` works on a saved task: the first run writes every record key it delivered, and
later runs save and charge only rows whose key is new, which on an unchanged register is none.

### Related actors

Other actors in the US liquor group, each with its own dataset and price:

- [Washington Liquor Licenses Scraper](https://apify.com/ai-lead-gen-tools/washington-liquor-licenses) - the LCB on and off-premise lists with premises phone numbers.
- [California Liquor Licenses Scraper](https://apify.com/ai-lead-gen-tools/california-liquor-licenses) - the ABC daily export with licence type names and pending applications.
- [Colorado Liquor Licenses Scraper](https://apify.com/ai-lead-gen-tools/colorado-liquor-licenses) - Department of Revenue register with coordinates and issuing authority.
- [Missouri Liquor Licenses Scraper](https://apify.com/ai-lead-gen-tools/missouri-liquor-licenses) - active ATC licences with the named contact and their role.
- [Oregon Liquor Licenses Scraper](https://apify.com/ai-lead-gen-tools/oregon-liquor-licenses) - OLCC licence register with licence and privilege rows.
- [Texas Liquor Licenses Scraper](https://apify.com/ai-lead-gen-tools/texas-liquor-licenses) - TABC licences and permits by county and licence type.

### Changelog

- 2026-11-13: first public release. Active, pending and inactive SLA tables, dataset selection,
  daily change mode for saved tasks, output sample taken from a run on the registers as published
  2026-11-13.

# Actor input Schema

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

"full" returns every row of the selected datasets. "new" remembers every row already returned and only saves rows that are new since the last scheduled run — use it on a daily schedule.

## `datasets` (type: `array`):

Which New York tables to read. "active" is the 58 618-row current licence register. "pending" is the 2 998-row application queue — it is the only table that publishes an application date and a review status, so it is the earliest signal of a new opening. "inactive" is the 64 337-row archive going back to 1981; it is off by default because it triples a full run.

## `businessTypes` (type: `array`):

Filter by normalized business type. Leave empty for everything. Useful for lead lists: "bar", "restaurant", "package_store", "grocery", "manufacturer", "wholesaler", "club", "hotel", "theater", "specialty_shop", "other".

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

Keep only these licence classes, matched case-insensitively as a substring of either the class code or the class description. Example: "0340" or "Restaurant" keeps restaurants, "Grocery Store" keeps grocery stores, "Farm" keeps farm wineries, breweries and distilleries. Leave empty for every class.

## `includeRiders` (type: `boolean`):

New York lists additional bars as their own rows: 5 132 of the 58 618 active rows carry a class such as "Additional Bar" or "Additional bar- ball park, race track, etc". Each one extends a parent licence, which is published in the `addOnLicenseNumber` field. Turn this off to keep one row per primary licence.

## `includeOutOfState` (type: `boolean`):

New York licenses 1 708 active holders whose premises are outside the state — wineries, brewers, distillers and shippers headquartered elsewhere. Turn this off for New York premises only.

## `includeExpired` (type: `boolean`):

The actor re-reads the register between refreshes, so a licence can be past its expiry date while still listed. Turn this off to keep only rows that expire today or later.

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

Hard cap on the number of records saved to the dataset. Each saved record is charged. 0 means no cap — the default two datasets are roughly 61 600 rows.

## `includeRaw` (type: `boolean`):

Attach the untouched dataset row under the `raw` field, together with the page number and the dataset label. Useful for auditing, roughly doubles the dataset size.

## `pageSize` (type: `integer`):

Rows requested per dataset page. Lower it when the registry throttles the run; raise it to finish faster. data.ny.gov served 50 000 rows per request when measured, but through the read-through gateway smaller pages are safer.

## `requestTimeoutSecs` (type: `integer`):

Per-page timeout before a retry is attempted.

## `runBudgetSecs` (type: `integer`):

How long this run may take before it stops and returns what it has. Leave it empty (recommended) and the run uses the whole timeout you set for it. Stopping early is not a failure: the run summary reports it and you get the records found so far.

## `gatewayUrl` (type: `string`):

Optional. data.ny.gov answers HTTP 403 to some datacenter IP ranges. The actor then retries each page through a public read-through gateway, which is set by default. Point this at your own gateway to use a different one, or clear it to disable the fallback and fail fast instead.

## Actor input object example

```json
{
  "mode": "full",
  "datasets": [
    "active",
    "pending"
  ],
  "includeRiders": true,
  "includeOutOfState": true,
  "includeExpired": true,
  "maxResults": 0,
  "includeRaw": false,
  "pageSize": 2000,
  "requestTimeoutSecs": 60,
  "runBudgetSecs": 205,
  "gatewayUrl": "https://r.jina.ai/"
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "runBudgetSecs": 205
};

// Run the Actor and wait for it to finish
const run = await client.actor("ai-lead-gen-tools/new-york-liquor-licenses").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 = { "runBudgetSecs": 205 }

# Run the Actor and wait for it to finish
run = client.actor("ai-lead-gen-tools/new-york-liquor-licenses").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 '{
  "runBudgetSecs": 205
}' |
apify call ai-lead-gen-tools/new-york-liquor-licenses --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ai-lead-gen-tools/new-york-liquor-licenses"
        }
    }
}
```

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/nvFrTR13UCzKHUi0v/builds/rcNR19aQeoFBEMY1v/openapi.json
