# TTB COLA Alcohol Label Approvals Scraper (Beer, Wine, Spirits) (`groundplanes/ttb-cola-alcohol-label-approval-scraper`) Actor

Pull newly approved US alcohol labels (TTB COLAs) for beer, wine and spirits from the TTB Public COLA Registry, with brand, permit, applicant business and address, status, class, origin and label image links.

- **URL**: https://apify.com/groundplanes/ttb-cola-alcohol-label-approval-scraper.md
- **Developed by:** [Groundplane Labs](https://apify.com/groundplanes) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 approvals

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

## TTB COLA Alcohol Label Approvals Scraper (Beer, Wine, Spirits)

Get every newly approved US alcohol label from the TTB Public COLA Registry as clean JSON: brand, product name, class, origin, permit number, the applicant business and its address, approval status, application type, wine varietal and appellation, and label image links. Built for tracking new craft beer, wine and spirits launches.

> This actor is an independent tool. It is not affiliated with or endorsed by the Alcohol and Tobacco Tax and Trade Bureau (TTB) or the US Department of the Treasury.

### What it does

- Searches TTB's Public COLA Registry (Certificates of Label Approval) by approval date, class/type and origin, and downloads each search's CSV export.
- **Never truncates silently.** TTB's export stops at 1,000 rows per search, so the actor reads each search's stated total first and splits any search over 1,000 (by date down to a single day, then by class code range) until every piece fits. Every piece's CSV row count is checked against TTB's stated total.
- **Covers letter-suffixed codes.** TTB's own range search skips codes like 80A (rosé), 84C (sparkling cider) or 402I (Virgin Islands rum): a search for 80-89 returns no rosé at all. The actor adds those codes to every range automatically.
- Repairs TTB's CSV, which does not quote fields: commas and line breaks inside brand names or class descriptions are resolved against TTB's own code lists, and anything still ambiguous is read from the certificate.
- Optionally opens every certificate for the fields the registry list does not carry.
- Returns newest approvals first.

### Who it's for

- Distributors, retailers and sales reps looking for new brands and new suppliers.
- Packaging, label-printing, ingredient and equipment suppliers prospecting breweries, wineries and distilleries that just launched a product.
- Market researchers tracking launches by category, state or country.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `dateCompletedFrom` | string | 30 days before today | Approval date from, **MM/DD/YYYY**. |
| `dateCompletedTo` | string | today | Approval date to, MM/DD/YYYY. |
| `productClassTypeCodes` | array | `["100-199","80-89","900-909"]` | TTB class/type codes (`101`, `80A`, `901`) or numeric ranges. The default is whisky, wine (every wine and cider code), and domestic malt beverages. Empty = every class. |
| `brandOrFancifulName` | string | empty | Optional; TTB's own name search on brand or fanciful name (up to 40 characters). |
| `originStatesOrCountries` | array | `[]` | Optional; TTB origin codes (`01`) or names (`CALIFORNIA`, `OREGON`, `FRANCE`). |
| `hydrateFullCertificateAndLabelImages` | boolean | `true` | Open each certificate (about half a second per COLA). Off returns the registry fields only, much faster. |
| `maxItems` | integer | `1000` | Maximum COLAs, newest approval first. |

Useful ranges: 100-199 whisky, 200-299 gin, 300-399 vodka, 400-499 rum, 500-599 brandy, 600-699 cordials and liqueurs, 700-799 cocktails, 80-89 wine and cider, 900-909 domestic malt beverages, 950-959 imported malt beverages. (900-999 is not all beer: 920-929 and 970-991 are spirits such as tequila, mezcal and sake.)

#### Example input

```json
{
  "productClassTypeCodes": ["100-199", "80-89", "900-909"],
  "originStatesOrCountries": [],
  "hydrateFullCertificateAndLabelImages": true,
  "maxItems": 1000
}
```

In a test on 2026-11-01 the default 30-day window held 4,263 matching COLAs; the default 1,000 newest covered 10/25 to 10/30/2026.

#### Example run options (default $50 max charge)

```json
{ "maxTotalChargeUsd": 50 }
```

The actor checks your max charge before every dataset push and stops cleanly when the limit is reached.

### Output

| Field | Type | Description |
|---|---|---|
| `ttbId` | string | 14-digit TTB ID. |
| `permitNumber` | string | Plant registry, basic permit or brewer's number (for example `BR-MO-21263`). |
| `serialNumber` | string | Applicant's serial number. |
| `completedDate` | string | Approval date, YYYY-MM-DD. |
| `fancifulName`, `brandName` | string or null | Product (fanciful) name and brand. |
| `originCode`, `originDesc` | string | Origin state or country. |
| `classTypeCode`, `classTypeDesc` | string | Class/type, for example `906` MALT BEVERAGES SPECIALITIES - FLAVORED. |
| `applicationType` | string or null | `LABEL APPROVAL`, `EXEMPTION FROM LABEL APPROVAL (for sale in XX only)`, `DISTINCTIVE LIQUOR BOTTLE APPROVAL`, `RESUBMISSION AFTER REJECTION (previous TTB ID ...)`. |
| `status` | string or null | `APPROVED`, `SURRENDERED`, `EXPIRED`, `REVOKED` and so on. |
| `applicantBusinessName` | string or null | Applicant business as shown on its permit (TTB often lists "trade name, legal name"). |
| `applicantStreetAddress` | string or null | Street, city, state and ZIP. |
| `alcoholContentAbvText` | string or null | See Limits: usually null. |
| `grapeVarietalOrAppellation` | string or null | Wine: varietal(s) and appellation, for example `Pinot noir; SONOMA COAST`. |
| `labelImageUrls` | array | Label image links (see Limits). |
| `colaDetailUrl` | string | The certificate on TTB's site, with the label images shown. |

Fields from `applicationType` to `labelImageUrls` are filled when **Read each certificate** is on.

#### Sample row (real)

```json
{
  "ttbId": "26301001000726",
  "permitNumber": "BR-MO-21263",
  "completedDate": "2026-10-29",
  "brandName": "SWITCH COFFEE PORTER",
  "originDesc": "MISSOURI",
  "classTypeCode": "906",
  "classTypeDesc": "MALT BEVERAGES SPECIALITIES - FLAVORED",
  "applicationType": "LABEL APPROVAL",
  "status": "APPROVED",
  "applicantBusinessName": "Urban Chestnut Brewing Company, Keg Holdings, LLC",
  "applicantStreetAddress": "4401-4465 MANCHESTER AVE, St. Louis, MO 63110",
  "labelImageUrls": ["https://ttbonline.gov/colasonline/publicViewAttachment.do?filename=Switch%20Coffee%20Porter.png&filetype=l"],
  "colaDetailUrl": "https://ttbonline.gov/colasonline/viewColaDetails.do?action=publicFormDisplay&ttbid=26301001000726"
}
```

### How pricing works

Pay per result. You only pay for rows returned.

### Data source and terms

- **TTB Public COLA Registry**, https://ttbonline.gov/colasonline/publicSearchColasBasic.do, public and free, no login. Search, CSV export (`publicSaveSearchResultsToFile.do`), the printable certificate (`viewColaDetails.do?action=publicFormDisplay`) and TTB's class/type and origin code lists.
- US government data. Requests are paced at 2 per second.
- TTB's server does not send one of its intermediate TLS certificates; the actor ships that public certificate ("Entrust OV TLS Issuing RSA CA 2", valid to 2027-12-10) and keeps full certificate checking on.
- **Update cadence:** approvals appear in the registry as TTB completes them, on business days. Weekend days normally add none (in testing, Sat 10/31 and Sun 11/01/2026 held 0).
- **Daily maintenance:** COLAs Online is down for scheduled maintenance from 4:00 to 6:00 AM Eastern Time, plus a monthly maintenance on the second Wednesday of each month. A run that hits it ends `PARTIAL` saying so; run again after 6:00 AM Eastern.

### Limits and FAQ

- **Label image links need a browser session.** TTB serves a label image only to a browser that has just opened that COLA's certificate. Open `colaDetailUrl` first (the images show there), or open the image links in the same browser right after. Clicked cold, an image link shows a TTB page instead. The actor stores no image files.
- **Alcohol content is almost always null.** TTB prints ABV on the label image, not as a field. The actor fills `alcoholContentAbvText` only when the applicant typed it into item 15 of the form: 4 of 1,000 COLAs in testing. No OCR is done.
- **A few certificates have no printable form.** For roughly 1 in 200 COLAs, TTB's printable form returns its own error page. The actor then reads the basic certificate page instead: same fields, but no label images or appellation, and `colaDetailUrl` points to that page.
- **Contact people are never output.** The certificate names the person who filed and a phone number; the actor leaves both out and outputs the business only.
- **Approvals only.** The registry lists completed COLAs; pending applications are not public.
- Typical run with certificates: about 10 minutes for the default 1,000 rows. Without certificates: about 25 seconds for 2,800 rows.

### Troubleshooting

- **PARTIAL with "maintenance window"**: run again after 6:00 AM Eastern.
- **PARTIAL with "exceed TTB's 1,000-row export and cannot be split further"**: one day and one class code had more than 1,000 approvals; narrow by origin or name to get the rest.
- **PARTIAL with "but its CSV export held"**: TTB's CSV did not match its own stated total, twice. Run again.
- **FAILED with "CSV header changed", "neither 'Total Matching Records'" or "certificate pages could not be read"**: TTB changed its site; nothing incomplete was delivered as complete.
- **Complete: 0**: nothing matched. Check the dates (MM/DD/YYYY) and codes.

If this keeps happening, please open an issue on this actor's Issues tab and we'll fix it fast.

### Changelog

- **0.1.1** (2026-11-01): review fix: README now states the registry update cadence and TTB's monthly maintenance window. No code change.
- **0.1** (2026-11-01): first build.

# Actor input Schema

## `brandOrFancifulName` (type: `string`):

Optional. Passed to TTB's own name search (brand or fanciful name), at most 40 characters.

## `dateCompletedFrom` (type: `string`):

First approval (completed) date, MM/DD/YYYY. Leave empty for 30 days before today.

## `dateCompletedTo` (type: `string`):

Last approval (completed) date, MM/DD/YYYY. Leave empty for today.

## `hydrateFullCertificateAndLabelImages` (type: `boolean`):

Open each COLA's certificate for status, application type, applicant business name and address, varietal and appellation, and label image links. About 0.5 s per COLA. Off: registry fields only (faster).

## `maxItems` (type: `integer`):

Maximum COLAs to return, newest approval first.

## `originStatesOrCountries` (type: `array`):

Optional. TTB origin codes (e.g. 01) or names (e.g. CALIFORNIA, OREGON, FRANCE). Empty = all origins.

## `productClassTypeCodes` (type: `array`):

TTB product class/type codes (e.g. 101 straight bourbon, 80A rose wine, 901 beer) or numeric ranges: 100-199 whisky, 200-299 gin, 300-399 vodka, 400-499 rum, 500-599 brandy, 600-699 cordials, 700-799 cocktails, 80-89 wine (all wine and cider codes, including 80A, 84C ...), 900-909 domestic malt beverages, 950-959 imported malt beverages. Empty = every class.

## Actor input object example

```json
{
  "brandOrFancifulName": "",
  "hydrateFullCertificateAndLabelImages": true,
  "maxItems": 1000,
  "originStatesOrCountries": [],
  "productClassTypeCodes": [
    "100-199",
    "80-89",
    "900-909"
  ]
}
```

# Actor output Schema

## `results` (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 = {
    "maxItems": 1000,
    "originStatesOrCountries": [],
    "productClassTypeCodes": [
        "100-199",
        "80-89",
        "900-909"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("groundplanes/ttb-cola-alcohol-label-approval-scraper").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 = {
    "maxItems": 1000,
    "originStatesOrCountries": [],
    "productClassTypeCodes": [
        "100-199",
        "80-89",
        "900-909",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("groundplanes/ttb-cola-alcohol-label-approval-scraper").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 '{
  "maxItems": 1000,
  "originStatesOrCountries": [],
  "productClassTypeCodes": [
    "100-199",
    "80-89",
    "900-909"
  ]
}' |
apify call groundplanes/ttb-cola-alcohol-label-approval-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,groundplanes/ttb-cola-alcohol-label-approval-scraper"
        }
    }
}
```

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/TdEZYvL9as0xYdpav/builds/kfgzWVOUin8FejcYn/openapi.json
