# Virginia ABC Liquor Price & Inventory Scraper (`obsequious_lemonade/virginia-abc-liquor-scraper`) Actor

Scrape Virginia's official ABC (control-state) liquor catalog: prices, sizes, SKUs, categories, ABV/proof, store & warehouse inventory, plus new-arrival, on-sale, limited-availability and lottery (allocated) flags.

- **URL**: https://apify.com/obsequious\_lemonade/virginia-abc-liquor-scraper.md
- **Developed by:** [will William](https://apify.com/obsequious_lemonade) (community)
- **Categories:** E-commerce, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Virginia ABC Liquor Price & Inventory Scraper

Pull the **Virginia ABC** official liquor catalog — a U.S. *control state* where spirits are sold only through the state's stores, so the state catalog **is** the market. Get every product's price, sizes, category, ABV/proof, and **store/warehouse inventory**, plus the signals that actually move the needle: **new arrivals, on-sale, limited availability, and lottery/allocated (rare) drops.**

### Who this is for

- **Spirits brands & importers** — monitor whether your products (and competitors') are listed, priced, and in stock across Virginia ABC.
- **Distributors & pricing-intelligence teams** — a clean, structured price + availability feed without buying an expensive managed report.
- **Rare-bottle hunters & retailers** — catch lottery/allocated and limited bottles the moment they appear.
- **Data teams** — a tidy JSON/CSV product feed you can diff daily for change alerts.

### What you get (per product)

| Field | Description |
|---|---|
| `name`, `url`, `productId` | Product label, page URL, stable ID |
| `class`, `category`, `type`, `detail` | Full taxonomy (e.g. Spirits ▸ Whiskey ▸ Bourbon ▸ Straight) |
| `priceRange`, `prices`, `sizes`, `skus`, `variants` | Price per size, size list, SKUs, paired variants |
| `priceSort`, `mlPrice` | Sortable price + price-per-ml (value comparison) |
| `abvMin/Max`, `proofMin/Max` | Strength |
| `inStore`, `inWarehouse`, `storeOnly` | Inventory location flags |
| `isNew`, `onSale`, `limitedAvailability`, `lottery`, `luxury` | The alert signals |
| `viewsCount`, `image`, `description`, `updatedAt` | Popularity, image, notes, last update |

### Typical uses

- **Full catalog feed** — set `maxItems` high (e.g. 100000) with no filters to pull the entire catalog (~11k+ products). The default `maxItems` is 1000 (a fast sample).
- **New-arrival alert** — set `onlyNew` and schedule daily; diff for what's newly listed.
- **Rare-drop alert** — set `onlyLottery` / `onlyLimited` to catch allocated bottles.
- **Sale tracker** — set `onlyOnSale`.
- **Category watch** — set `category` (e.g. `Bourbon`) + your filters.

### Input

All inputs are optional. Key ones: `query`, `category`, `onlyNew`, `onlyOnSale`, `onlyLottery`, `onlyLimited`, `onlyInStore`, `includeVariants`, `maxItems`. Use **Apify Proxy (US)** (default) for clean access.

### Output

One row per product (or per size variant with `includeVariants`). Export as JSON, CSV, Excel, or via API. Pair it with a scheduled run + the dataset diff to build change alerts.

### Notes

- Only **public, factual catalog data** is collected — no personal data.
- This is an independent tool and is not affiliated with or endorsed by the Virginia ABC.

# Actor input Schema

## `query` (type: `string`):

Free-text search, e.g. "buffalo trace" or "single barrel". Leave empty to pull the whole catalog.
## `category` (type: `string`):

Narrow by category keyword, e.g. Bourbon, Whiskey, Vodka, Tequila, Rum, Gin, Wine.
## `onlyNew` (type: `boolean`):

Return only products flagged as new.
## `onlyOnSale` (type: `boolean`):

Return only products currently on sale.
## `onlyLottery` (type: `boolean`):

Return only limited lottery / allocated bottles (e.g. rare bourbon drops).
## `onlyLimited` (type: `boolean`):

Return only products flagged as limited availability.
## `onlyInStore` (type: `boolean`):

Return only products that currently have retail-store inventory.
## `includeVariants` (type: `boolean`):

By default one row per product (with all sizes/prices). Enable to also emit a row per size variant.
## `maxItems` (type: `integer`):

Stop after this many products. Default 1000 (a fast sample). Set higher (e.g. 100000) to pull the entire catalog (~11k+ products).
## `proxyConfiguration` (type: `object`):

Use Apify Proxy (US recommended) so the Virginia ABC CDN serves requests cleanly.

## Actor input object example

```json
{
  "onlyNew": false,
  "onlyOnSale": false,
  "onlyLottery": false,
  "onlyLimited": false,
  "onlyInStore": false,
  "includeVariants": false,
  "maxItems": 1000,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  }
}
````

# 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 = {
    "query": "",
    "category": "",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("obsequious_lemonade/virginia-abc-liquor-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 = {
    "query": "",
    "category": "",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("obsequious_lemonade/virginia-abc-liquor-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "",
  "category": "",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  }
}' |
apify call obsequious_lemonade/virginia-abc-liquor-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=obsequious_lemonade/virginia-abc-liquor-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Virginia ABC Liquor Price & Inventory Scraper",
        "description": "Scrape Virginia's official ABC (control-state) liquor catalog: prices, sizes, SKUs, categories, ABV/proof, store & warehouse inventory, plus new-arrival, on-sale, limited-availability and lottery (allocated) flags.",
        "version": "0.1",
        "x-build-id": "Oh3XMCrlcD3Q3bSag"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/obsequious_lemonade~virginia-abc-liquor-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-obsequious_lemonade-virginia-abc-liquor-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/obsequious_lemonade~virginia-abc-liquor-scraper/runs": {
            "post": {
                "operationId": "runs-sync-obsequious_lemonade-virginia-abc-liquor-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/obsequious_lemonade~virginia-abc-liquor-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-obsequious_lemonade-virginia-abc-liquor-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "query": {
                        "title": "Keyword search (optional)",
                        "type": "string",
                        "description": "Free-text search, e.g. \"buffalo trace\" or \"single barrel\". Leave empty to pull the whole catalog."
                    },
                    "category": {
                        "title": "Category filter (optional)",
                        "type": "string",
                        "description": "Narrow by category keyword, e.g. Bourbon, Whiskey, Vodka, Tequila, Rum, Gin, Wine."
                    },
                    "onlyNew": {
                        "title": "Only new arrivals",
                        "type": "boolean",
                        "description": "Return only products flagged as new.",
                        "default": false
                    },
                    "onlyOnSale": {
                        "title": "Only on-sale",
                        "type": "boolean",
                        "description": "Return only products currently on sale.",
                        "default": false
                    },
                    "onlyLottery": {
                        "title": "Only lottery / allocated (rare)",
                        "type": "boolean",
                        "description": "Return only limited lottery / allocated bottles (e.g. rare bourbon drops).",
                        "default": false
                    },
                    "onlyLimited": {
                        "title": "Only limited availability",
                        "type": "boolean",
                        "description": "Return only products flagged as limited availability.",
                        "default": false
                    },
                    "onlyInStore": {
                        "title": "Only with store inventory",
                        "type": "boolean",
                        "description": "Return only products that currently have retail-store inventory.",
                        "default": false
                    },
                    "includeVariants": {
                        "title": "Include per-size variant rows",
                        "type": "boolean",
                        "description": "By default one row per product (with all sizes/prices). Enable to also emit a row per size variant.",
                        "default": false
                    },
                    "maxItems": {
                        "title": "Max products",
                        "minimum": 1,
                        "maximum": 100000,
                        "type": "integer",
                        "description": "Stop after this many products. Default 1000 (a fast sample). Set higher (e.g. 100000) to pull the entire catalog (~11k+ products).",
                        "default": 1000
                    },
                    "proxyConfiguration": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "Use Apify Proxy (US recommended) so the Virginia ABC CDN serves requests cleanly."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
