# Texas Liquor Licenses - TABC AIMS Register (`ai-lead-gen-tools/texas-liquor-licenses`) Actor

\[💰$0.05/1K] Every Texas liquor licence in the TABC AIMS register with the trade name and the holder. Each row carries the licence number, its two-letter type, the tier, the status, the premises address, the county, the mailing address, both dates and the subordinate permits.

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

## Texas Liquor Licenses - TABC AIMS Register

Every Texas liquor licence published in the TABC AIMS register, normalized to one row per licence. A full read of the register as published on 2026-11-13 found **128 650 licence rows across 55 columns**, of which **79 266 are Active** and 49 384 are expired, surrendered, cancelled or suspended. The default scope also reads the separate table of original applications TABC has received but not yet issued, which holds **849 rows**, so one run with default settings returns **80 115 records**.

The source is the state's own machine-readable register, not a scrape of a search page: `https://data.texas.gov/resource/7hf9-qc9f.json`. No login, no API key, no proxy of your own.

### What you get

One dataset item per register row. The record shape is shared with the other actors in this group, so the same field names work across states:

| Field | Meaning | Source |
| --- | --- | --- |
| `licenseNumber` | The AIMS licence number, unique on the licence table | `license_id` |
| `licenseClassRaw` | The two-letter licence type code, e.g. `BG` or `MB,LH` | `license_type` |
| `privilege` | The licence type as published, same value as the raw code | `license_type` |
| `businessType` | Normalized type: bar, restaurant, package store, club and so on | derived from `tier` and the code |
| `tier` | Industry tier TABC assigns: Retail, Distribution or Manufacturing | `tier` |
| `status` | Normalized status: active or inactive | derived from `primary_status` |
| `statusRaw` | The status exactly as TABC prints it | `primary_status` |
| `businessName` | Trade name on the licence | `owner_name` |
| `licenseeName` / `legalName` | The licence holder as registered | `owner_name` |
| `premiseAddress` | Street, city, state and ZIP of the licensed premises | `premise_*` |
| `mailingAddress` | Where the holder receives post, often not the premises | `mail_address` and related |
| `countyName` | County of the premises | `county` |
| `issueDate` / `expireDate` | Issue date and expiry date of the licence | `issue_date`, `expiration_date` |
| `originalIssueDate` | First issue date when TABC keeps it | `original_issue_date` |
| `subordinateTypes` | Subordinate permits listed on the row, e.g. Brew Pub | `subordinates` |
| `recordKey` | Stable key: source, licence number and licence type | derived |

A real record, trimmed to the fields most people use:

```json
{
  "source": "texas-liquor-licenses",
  "sourceDataAsOf": "2026-11-13",
  "licenseNumber": "100000290",
  "licenseClassRaw": "BG",
  "licenseClassLabel": null,
  "privilege": "BG",
  "businessType": "bar",
  "status": "active",
  "statusRaw": "Active",
  "feed": "active",
  "businessName": "CROSS ROADS TAVERN",
  "legalName": "BONNIE HEGEMEYER",
  "premiseAddress": {
    "street1": "12716 FM 1094",
    "city": "Sealy",
    "state": "TX",
    "zip": "77474-9870"
  },
  "mailingAddress": {
    "street1": "12716 FM 1094",
    "city": "Sealy",
    "state": "TX",
    "zip": "77474-9870"
  },
  "countyName": "Austin",
  "issueDate": "2025-12-15",
  "expireDate": "2027-12-10",
  "originalIssueDate": "1987-12-11",
  "tier": "Retail",
  "subordinateTypes": [],
  "recordKey": "texas-liquor-licenses|100000290||BG|license|0"
}
```

Each record also carries a `SUMMARY` in the run's key-value store with the row counts read per table, the pages fetched, whether the read-through gateway was used and whether the time budget stopped the run early.

### How to use it

1. Open the actor and press **Start** with the defaults. That reads both tables and returns about 80 115 records.
2. Set `includeInactive` to true if you want the full history, which brings the licence table to 128 650 rows.
3. Leave `businessTypes` and `licenseTypes` empty to get the whole register. Set them only when you deliberately want a narrower run: `businessTypes` takes normalized types such as `bar` or `package_store`, `licenseTypes` takes two-letter codes such as `MB` or `P`.
4. Turn `includeSubordinates` off to drop rows that carry a subordinate permit and keep primary licences only.
5. Set `maxResults` to a number while testing, so one charged run cannot exceed what you expect.

Input for the whole register:

```json
{
  "mode": "full",
  "datasets": ["license"],
  "includeInactive": false,
  "maxResults": 0,
  "includeRaw": false
}
```

| Input | Type | Default | What it does |
| --- | --- | --- | --- |
| `mode` | select | `full` | `full` returns the register, `new` returns only licences that were not saved by an earlier run |
| `datasets` | select | `["license", "pending"]` | `license` is the 128 650-row register, `pending` is the 849-row application table |
| `includeInactive` | boolean | `false` | Adds the 49 384 expired, surrendered, cancelled and suspended rows |
| `businessTypes` | select | empty, whole register | Optional narrow-down on the normalized business type |
| `licenseTypes` | stringList | empty, whole register | Optional narrow-down: keeps rows whose code contains one of these values |
| `includeSubordinates` | boolean | `true` | Keeps rows that list a subordinate permit |
| `includeOutOfState` | boolean | `true` | Keeps holders whose premises sit outside Texas |
| `maxResults` | integer | `0` | Hard cap on records saved, 0 means no cap |
| `includeRaw` | boolean | `false` | Attaches the untouched source row under `raw` |
| `pageSize` | integer | `5000` | Rows per request, the licence table finishes in 16 pages at the default |
| `requestTimeoutSecs` | integer | `60` | Per-page timeout before a retry |
| `runBudgetSecs` | integer | 205 prefilled | Stop and return what was found when the budget runs out |
| `gatewayUrl` | string | `https://r.jina.ai/` | Read-through gateway used when data.texas.gov answers HTTP 403 |

### Modes

| Mode | What it returns | Charged |
|---|---|---|
| `full` | the entire register as it stands today | one event per saved record |
| `new` | only licences that were not saved by an earlier run | 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

- Build a Texas bar and restaurant prospect list with the mailing address of the owner rather than the address of the premises.
- Watch the `pending` table to reach businesses that have applied for a licence and are about to open.
- Track new licences in one county or one licence type over time with `mode: new` on a daily schedule.
- Cross-check a supplier list against the register to confirm which holders are currently active.

### Cost

The actor charges **$0.05 per 1 000 records**, counted once per dataset item written.

- A default run over both tables, about 80 115 records, costs about $4.01.
- The whole licence table including every inactive row, about 129 500 records, costs about $6.47.
- A test run capped at 5 000 records costs about $0.25.
- Rows that are read but filtered out before saving are not charged.

### Honest limits

- `licenseClassLabel` is always null. TABC publishes the licence type as a two-letter code and publishes no machine-readable code-to-name table, so the actor will not invent names.
- There is no phone number. The `phone` column is declared by TABC and is empty on all 128 650 licence rows and all 849 application rows, which was verified twice.
- 49 384 of the 128 650 licence rows are inactive. They are only read when `includeInactive` is true, and the record says `status: inactive` rather than hiding them.
- There is no contact person on either table, so `contactName`, `contactRole` and `contactPhone` are null with a stated reason.
- The application table carries no issue date, no expiry date and no mailing address. Pending records have those fields null.
- TABC publishes no closure reason and no reason code, so `reasonDescription` and `privilegeReasonCode` are null on every row.
- `data.texas.gov` answers HTTP 403 to some datacenter IP ranges. The actor then retries each page through a public read-through gateway, which works but is slower than a direct read.
- A row can carry several licence codes at once, for example `MB,LH`. The filter matches the code as a substring, and the row is saved once.

### FAQ

**How many records does a default run return?**
About 80 115: 79 266 Active licences plus 849 pending applications.

**Does it need a proxy or an API key?**
No. The gateway fallback is built in and needs no key of its own.

**What is the difference between the two tables?**
`license` holds issued licences. `pending` holds original applications TABC has received but not yet issued, which is the earliest public signal that a venue is opening.

**Why is the licence type a code instead of a name?**
Because that is what TABC publishes. The code is exact and stable, and `businessType` gives you a normalized category on top of it.

**Can I get the full history of inactive licences?**
Yes, set `includeInactive` to true. The licence table then returns all 128 650 rows instead of 79 266.

**What happens if a run hits the time budget?**
It stops and returns the records found so far. The summary reports that the budget was reached and how many pages were read.

**Which mode should I pick, `full` or `new`?**
`full` for a snapshot of the whole register, `new` for a daily feed of what appeared since the last run. `new` works on a saved task: the actor remembers the keys it already saved and returns only licences that are new since the last run, which on an unchanged register is none.

**Is the mailing address different from the premises address?**
Often, yes. TABC publishes both, and for direct mail the mailing address of the holder is usually the useful one.

#### Ready-made tasks

| Task | Input | Question it answers |
|---|---|---|
| [Texas New Liquor Licences, Daily](https://apify.com/ai-lead-gen-tools/texas-liquor-licenses/examples/texas-new-liquor-licenses-daily) | `mode: new`, `maxResults: 200`, `runBudgetSecs: 280` | which TABC licences appeared since the last run of this task |

The seen set lives in the task's own key-value store, so a schedule on it charges only for licences that are actually new.

### 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 48 fields per row.
- [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.

### Changelog

- 2026-11-13: first public release. The TABC AIMS register, 46 shared fields plus 12 Texas-specific fields, daily change mode for saved tasks, output sample taken from a run on the 2026-11-13 register.
- 2026-11-16: fixed a broken first line in `src/main.js` that made every run fail on start, task `texas-new-liquor-licenses-daily` published and linked above.

# Actor input Schema

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

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

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

"license" is the 128 650-row TABC licence register. "pending" is the 849-row table of original new applications TABC has received but not yet issued — useful for prospecting businesses that are about to open. Keep both for the default 80 115 records.

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

The register keeps licences after they stop being valid: 49 384 of the 128 650 rows are expired, surrendered, cancelled or suspended. Leave this off to read only the 79 266 Active licences. Turn it on for the full 128 650-row history.

## `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 type codes, matched case-insensitively as a substring of the source value. TABC publishes licence types as two-letter codes, and a row can carry several, e.g. "MB,LH". Examples: "MB" keeps mixed beverage (bars and restaurants), "BG" beer on-premise, "BQ" beer off-premise, "P" package store, "N" private club. Leave empty for every type.

## `includeSubordinates` (type: `boolean`):

TABC records subordinate permits (Brew Pub, Brewer's Self-Distribution, Local Cartage, Food and Beverage Certificate, Late Hours Certificate, Local Distributor's Permit, Water Park) as flags on the primary licence row. Turn this off to keep only rows with no subordinate permit.

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

Texas licenses holders whose premises address is outside the state — wineries, brewers, distillers and shippers headquartered elsewhere, plus importers. Turn this off for Texas premises only.

## `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 roughly 80 100 rows.

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

Attach the untouched dataset row under the `raw` field. 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.texas.gov serves the 128 650-row licence table without a page ceiling, so the default finishes it in 16 pages.

## `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.texas.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": [
    "license",
    "pending"
  ],
  "includeInactive": false,
  "includeSubordinates": true,
  "includeOutOfState": true,
  "maxResults": 0,
  "includeRaw": false,
  "pageSize": 5000,
  "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/texas-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/texas-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/texas-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/texas-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/WSU8z1AZBauRWm1aj/builds/HBGWvbaA4cdZwfphM/openapi.json
