# California Liquor Licenses - ABC Daily Export (`ai-lead-gen-tools/california-liquor-licenses`) Actor

\[💰$0.05/1K] Every California liquor licence in the ABC daily export: the type code and its name, the licensee and DBA, status and premises address with county and census tract. 117 992 active records including pending applications. Public dataset, no proxy or key needed.

- **URL**: https://apify.com/ai-lead-gen-tools/california-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

## California Liquor Licenses - ABC Daily Export

Scrape every active liquor licence the **California Department of Alcoholic Beverage Control**
publishes. ABC releases one ZIP file each day with a single CSV inside, one row per licence or
per application, and this actor turns it into normalized licence records you can filter, join
and load.

No login, no cookies, no proxy, no API key. The file is served straight from `abc.ca.gov` and
one GET returns 7.4 MB of ZIP that inflates to 27.7 MB of CSV.

A full run over the export dated 2026-11-13 returned **117 992 active records**, 13 077 of them
applications ABC has accepted but not yet issued.

### What you get

One row per licence or application. Every field is always present, and a value the export 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` | `File Number` | the ABC licence number, kept as published |
| `licenseId` | `Lic or App` | `LIC` for an issued licence, `APP` for an application |
| `licenseNumberSourceKey` | - | which header matched |
| `privilege`, `licenseClassRaw` | `License Type` | the two-digit code, verbatim |
| `licenseClassLabel` | code table | the ABC type name, e.g. `Off-Sale Beer and Wine` |
| `businessType` | derived from the type code | `bar`, `restaurant`, `grocery`, `package_store`, `club`, `hotel`, `theater`, `manufacturer`, `wholesaler`, `other` |
| `businessName` | `DBA Name` | trade name of the premises |
| `legalName`, `licenseeName` | `Primary Name` | the licence holder |
| `premiseAddress` | `Prem Addr 1`, `Prem Addr 2`, `Prem City`, `Prem State`, `Prem Zip` | street1, street2, city, state, zip |
| `mailingAddress` | five `Mail *` columns | same five keys |
| `countyName` | `Prem County` | present on 99.9 % of rows |
| `status`, `statusRaw` | `Type Status` | normalized `active`, `pending`, `closed`, `revoked`, `suspended`, `unknown` |
| `feed`, `eventType` | derived | which feed the row belongs to and what it means for this run |
| `issueDate`, `expireDate` | `Type Orig Iss Date`, `Expir Date` | ISO 8601, parsed from `15-MAR-2011` |
| `isTemporary` | derived from the type code | true only for the six types ABC names Temporary or Daily |
| `recencyBasis`, `recordKey`, `completeness`, `omitted`, `raw` | derived | provenance, identity and the null report |

A real record from a live run:

```json
{
  "source": "california-liquor-licenses",
  "sourceUrl": "https://www.abc.ca.gov/wp-content/uploads/DailyExport-CSV.zip",
  "sourceReport": "ABC-DailyDataExport",
  "sourceDataAsOf": "2026-11-13",
  "scrapedAt": "2026-11-13T13:43:23.878Z",
  "state": "CA",
  "jurisdiction": "california",
  "licenseNumber": "00527073",
  "licenseId": "APP",
  "licenseNumberSourceKey": "File Number",
  "privilege": "20",
  "licenseClassRaw": "20",
  "licenseClassLabel": "Off-Sale Beer and Wine",
  "businessType": "package_store",
  "isAddOn": false,
  "isTemporary": false,
  "addOnLicenseNumber": null,
  "addOnPrivilege": null,
  "status": "active",
  "statusRaw": "ACTIVE",
  "eventType": "new_application",
  "feed": "active",
  "businessName": "WALGREENS 7410",
  "legalName": "WALGREEN CO",
  "licenseeName": "WALGREEN CO",
  "contactName": null,
  "contactRole": null,
  "contactPhone": null,
  "premiseAddress": { "street1": "29910 MURRIETA HOT SPRINGS RD", "street2": "# A", "city": "MURRIETA", "state": "CA", "zip": "92563-3812" },
  "mailingAddress": { "street1": "108 WILMOT RD", "street2": null, "city": "DEERFIELD", "state": "IL", "zip": "60015-0901" },
  "countyName": "RIVERSIDE",
  "phone": null,
  "nightPhone": null,
  "applicationDate": null,
  "issueDate": null,
  "expireDate": null,
  "startupDate": null,
  "privilegeSubmittedDate": null,
  "privilegeApprovedDate": null,
  "privilegeTerminatedDate": null,
  "statusChangeDate": null,
  "reasonDescription": null,
  "privilegeReasonCode": null,
  "recencyBasis": "publisher-file-timestamp",
  "recordKey": "california-liquor-licenses|00527073|APP|20|0",
  "completeness": "partial",
  "omitted": [
    { "field": "isAddOn", "reason": "derived", "note": "the ABC export publishes one licence type per row and no parent or subordinate licence" },
    { "field": "phone", "reason": "source-lacks-field", "note": "the official fixed-width record layout ends at the census tract and has no contact field" },
    { "field": "issueDate", "reason": "not-published", "note": "an application has not been issued, so it carries no issue date" }
  ],
  "raw": null
}
```

Output is available as JSON, CSV or Excel from the dataset tab. Run counters land in the
`SUMMARY` key-value record: records pushed, rows filtered out by the input, rows skipped as
already seen, the export date and the list of mapped columns that were missing.

### How to use it

1. 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.
2. Keep `includeApplications` on when you want businesses about to open, which is the most
   useful prospecting signal in the file. Turn it off for issued licences only.
3. Leave `businessTypes` and `licenseTypes` empty to get the whole export. Set them only when
   you deliberately want a narrower run; filtering happens locally after the download and does
   not make the download shorter.
4. Cap `maxResults` to the number of records you are willing to pay for, or leave `0` for the
   whole register.
5. Run. Records go to the default dataset, one per licence or application.

```json
{
  "mode": "full",
  "includeInactive": false,
  "includeApplications": true,
  "maxResults": 0
}
```

| Input | Default | What it does |
|---|---|---|
| `mode` | `full` | `full` returns the whole register, `new` returns only rows not seen by an earlier scheduled run |
| `includeInactive` | `false` | set `true` to also read the refused, surrendered, revoked and suspended rows |
| `includeApplications` | `true` | set `false` to drop rows where `Lic or App` is `APP` |
| `includeOutOfState` | `true` | set `false` to keep California premises only |
| `businessTypes` | empty, whole register | optional narrow-down on the normalized business type |
| `licenseTypes` | empty, whole register | optional narrow-down on the licence type code or name, e.g. `["20", "Off-Sale Beer and Wine"]` |
| `maxResults` | `0` | hard cap on saved records, `0` means the whole register |
| `includeRaw` | `false` | attach the untouched export row as ordered column and value pairs |
| `requestTimeoutSecs` | `120` | download timeout for the 7.4 MB archive |
| `runBudgetSecs` | empty | leave empty to use the run timeout; set a number only to stop earlier |
| `sourceUrl` | the ABC daily ZIP | pin a specific archive instead of the daily URL |

#### Ready-made tasks

One saved input for the question this actor exists for: which California 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 |
|---|---|---|
| [California New Liquor Licences, Daily](https://apify.com/ai-lead-gen-tools/california-liquor-licenses/examples/california-new-liquor-licenses-daily) | `mode`, `maxResults` | which licences and applications the ABC export gained since yesterday, billed once per row |

### Modes

| Mode | What it returns | Charged |
|---|---|---|
| `full` | the entire register as it stands 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

- **Alcohol lead lists** - every on-sale restaurant and bar in a county with premises address,
  ready for field sales or distributor outreach.
- **New openings pipeline** - applications ABC has accepted but not issued yet, which is the
  earliest public signal that a premises is about to start selling alcohol.
- **Territory planning** - count outlets per county and per licence type, then size a sales route
  instead of guessing.
- **Compliance and monitoring** - keep a daily `new` schedule and watch licences move to
  surrendered or revoked for a fixed list of counties.

### 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, 117 992 records, costs about $5.90 at the per-record rate. A
run capped at 5 000 records costs about $0.25.

Rows that are not chargeable: a row already delivered by an earlier scheduled run in `new` mode
is skipped before charging, so a re-run over an unchanged register costs nothing beyond the run
start. Rows filtered out by `businessTypes`, `licenseTypes` or `includeApplications`, and records
beyond `maxResults`, are never saved and never charged.

### Honest limits

- No ABC bulk export publishes a phone number. `phone` and `nightPhone` are always `null`, and
  `contactName`, `contactRole` and `contactPhone` are always `null` too, because the official
  fixed-width record layout ends at the census tract and carries no contact field at all.
- `applicationDate` is always `null` on every row: ABC publishes no filing date. An application
  is identified by `Lic or App` being `APP` and nothing else.
- `isAddOn`, `addOnLicenseNumber` and `addOnPrivilege` are always `null` or `false`. The export
  publishes one licence type per row and no parent or subordinate licence, so there is nothing
  to derive an add-on from.
- Code `92` has no published name anywhere in ABC's own lists. It appears in the export and in
  none of their type tables, so `licenseClassLabel` stays `null` with a `not-published` note and
  `businessType` falls back to `other`. Guessing the label would poison a type filter silently.
- The mailing address is empty on 40 % of records, because ABC does not require one. The
  `mailingAddress` object is always present with null members and is not listed in `omitted`.
- `businessType` is derived from the licence type code, never from the trade name. A restaurant
  called something with `LIQUOR` in it stays a restaurant.
- One `File Number` can appear several times with the same licence type, and those occurrences
  are real: a business holding two of the same licence is two licences. Identity is the file
  number, the `Lic or App` marker, the type code and an occurrence counter, so nothing collapses.
- The export is a 27.7 MB CSV, so a full run takes a few minutes. `maxResults` does not make the
  download shorter, the whole archive is fetched and decompressed first.

### FAQ

**Is this the same data as the ABC licence lookup site?**
Yes. The actor reads the same daily export the site is built on, so a licence you find in the
lookup appears here with the same file number and the same status.

**Why do I get several rows for one licence number?**
Because ABC licenses types, not outlets. A store that is both off-sale beer and wine and off-sale
general appears twice, once per type, each with its own dates. The occurrence counter in
`recordKey` keeps them apart.

**Do I need a proxy or an API key?**
No. The ZIP is a public file on `abc.ca.gov`. Runs on a datacenter IP work without a proxy, and
there is no account or token involved.

**What is `mode: new` for?**
A daily schedule 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. `new` needs a saved task, otherwise the seen set
lives in memory only and the run logs a warning.

**Do I have to filter by licence type?**
No. The default run returns every licence and application in the export, and you sort for the
segment you need downstream. `businessTypes` only makes a run narrower: it matches the
normalized business type, not the raw licence type text.

**Why is `issueDate` null on some active records?**
Those are applications. ABC marks them `ACTIVE` and `APP` at the same time, which means the
filing was accepted and the business has not opened yet. They carry no issue date and no expiry.

**Can I pin a specific day's export?**
Yes. Set `sourceUrl` to the exact archive URL, or download the ZIP yourself and keep it. Use it
when you need a fixed vintage for comparison, not for routine runs.

**Does the actor retry when the download fails?**
It reports the problem in `SUMMARY` under `downloadProblem` and finishes without saving partial
parsing results. Rerun the actor; the daily file is usually available again within a minute.

### 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.
- [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.
- [New York Liquor Licenses Scraper](https://apify.com/ai-lead-gen-tools/new-york-liquor-licenses) - SLA licences with premises and licensee detail.
- [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. The ABC daily export, 48 fields per row, daily change mode
  for saved tasks, output sample taken from a run on the 2026-11-13 export.

# Actor input Schema

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

"full" returns the entire register. "new" remembers every record already returned and only saves records that are new since the last scheduled run — use it on a daily schedule.

## `includeInactive` (type: `boolean`):

The export keeps licences after they stop being valid: 10 665 of the 128 657 distinct rows are pending, surrendered, suspended, revoked or in an unreported state. Leave this off to read only the 117 992 active records. Turn it on for the full 128 657-row register.

## `includeApplications` (type: `boolean`):

ABC marks every row as `LIC` (issued licence) or `APP` (application). Active applications are businesses that have filed and not yet opened, which is the most useful signal for prospecting. Turn this off to keep issued licences only.

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

Some California licences are held for premises outside the state — 3 074 rows across 49 states, mostly out-of-state manufacturers, shippers and importers. Turn this off for California premises only.

## `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 ABC licence types. Match is exact on the numeric code, or a case-insensitive substring of the published type name. Examples: "21" or "Off-Sale General" for liquor stores, "41" for beer and wine restaurants, "47" for full-bar restaurants, "20" for beer and wine stores, "74" for craft distillers. Leave empty for every type.

## `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 scope is 117 992 rows.

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

Attach the untouched export row under the `raw` field. Useful for auditing, roughly doubles the dataset size.

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

Timeout for downloading the 7 MB ZIP archive that holds the export.

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

## `sourceUrl` (type: `string`):

Optional. The ABC daily export as a ZIP archive. Change it only if ABC moves the file; the default is the publisher's current address.

## Actor input object example

```json
{
  "mode": "full",
  "includeInactive": false,
  "includeApplications": true,
  "includeOutOfState": true,
  "maxResults": 0,
  "includeRaw": false,
  "requestTimeoutSecs": 120,
  "runBudgetSecs": 205,
  "sourceUrl": "https://www.abc.ca.gov/wp-content/uploads/DailyExport-CSV.zip"
}
```

# 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/california-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/california-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/california-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/california-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/Gd5TpXbislSHdj9yG/builds/SqJUbVAtyr0qwh5nx/openapi.json
