# Montgomery County Md Alcohol Licensees Scraper (`bigibyte/montgomery-county-md-alcohol-licensees-scraper`) Actor

Extract Montgomery County, MD alcohol licensees easily. Pull active restaurant, bar, and retailer data into clean JSON, CSV, or Excel for leads and market research.

- **URL**: https://apify.com/bigibyte/montgomery-county-md-alcohol-licensees-scraper.md
- **Developed by:** [BigiByte](https://apify.com/bigibyte) (community)
- **Features:** Limited permissions
- **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/actors/running/actors-in-store.md#pay-per-usage

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

## Montgomery County MD Alcohol Licensees Scraper

![Montgomery County MD Alcohol Licensees Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/montgomery-county-md-alcohol-licensees-scraper-cover.png)

Collect alcohol licensee records from Montgomery County, Maryland. Search the county's public dataset, retrieve records in bulk, or apply custom filters to find licensee names, addresses, license details, privileges, and geographic information. Export the results in JSON, CSV, or Excel for research and data analysis.

### What It Does

The Montgomery County MD Alcohol Licensees Scraper collects records from the county's Department of Alcohol Beverage Services (ABS) Licensee Data collection.

Choose how you want to retrieve the information:

- **All Rows:** Collect records in paginated batches.
- **Search:** Find matching records using full-text search.
- **Filter:** Apply custom conditions to narrow down the results.
- **Dataset Metadata:** Retrieve available column names, data types, and descriptions.

The collected records are saved to your Apify dataset, ready for analysis and export.

### Scraping Modes

| Mode | Description |
|---|---|
| `all_rows` | Retrieves licensee records in paginated batches. |
| `search` | Searches across text fields using a search term. |
| `filter` | Returns records matching your custom filter conditions. |
| Dataset metadata | Retrieves information about available dataset columns and their types. |

### Input Configuration

#### Input Example

**Retrieve all licensee records:**

```json
{
  "mode": "all_rows",
  "maxItems": 50,
  "orderBy": ":id",
  "requestDelayMs": 500
}
```

**Search for licensees:**

```json
{
  "mode": "search",
  "searchText": "inc",
  "maxItems": 25,
  "requestDelayMs": 500
}
```

**Filter records by update date:**

```json
{
  "mode": "filter",
  "where": ":updated_at>'2020-01-01'",
  "maxItems": 25,
  "requestDelayMs": 500
}
```

#### Input Parameters

| Parameter | Type | Description |
|---|---|---|
| `mode` | String | Select the retrieval mode: `all_rows`, `search`, `filter`, or the dataset metadata option configured in the input schema. |
| `maxItems` | Integer | Maximum number of records to collect. |
| `orderBy` | String | Controls the sorting order when retrieving records. Defaults to `:id` in the example. |
| `searchText` | String | Text to search for across available text fields. Used in search mode. |
| `where` | String | Custom filter condition for selecting matching records. Used in filter mode. |
| `requestDelayMs` | Integer | Delay between requests in milliseconds. |

### Output Example

Each successful record contains licensee information, license details, privileges, and location data.

```json
{
  "licensee_name": "MAMMA LUCIA - BETHESDA",
  "street": "4916 ELM STREET",
  "city": "BETHESDA",
  "state": "MD",
  "zip": "20814",
  "licensee_number": "BBWLHR385",
  "licenseclass": "B",
  "licensetype": "BWL",
  "account_name": "MAMMA LUCIA OF BETHESDA, INC.",
  "rtd_contract": "No",
  "districtnumber": "4",
  "feestructure": "BBWLHR",
  "catering": "Y",
  "cafe": "Y",
  "cork": "N",
  "location": {
    "latitude": "38.9821",
    "longitude": "-77.09696",
    "human_address": "{\"address\": \"4916 ELM STREET\", \"city\": \"BETHESDA\", \"state\": \"MD\", \"zip\": \"20814\"}"
  },
  "scraped_at": "2026-10-26T00:00:00+00:00"
}
```

#### Output Fields

| Field | Description |
|---|---|
| `licensee_name` | Name of the licensed business or establishment. |
| `street` | Street address of the licensee. |
| `city` | City where the licensee is located. |
| `state` | State abbreviation. |
| `zip` | ZIP code of the business address. |
| `licensee_number` | License identification number. |
| `licenseclass` | Alcohol license class. |
| `licensetype` | Alcohol license type. |
| `account_name` | Registered account or business name. |
| `rtd_contract` | Retail trade or contract-related indicator. |
| `districtnumber` | Associated district number. |
| `feestructure` | License fee structure code. |
| `catering` | Indicates whether catering privileges are listed. |
| `cafe` | Indicates whether cafe privileges are listed. |
| `cork` | Indicates whether cork privileges are listed. |
| `location` | Geographic coordinates and formatted address information. |
| `scraped_at` | Date and time the record was collected. |

### Use Cases

- **Business Lead Research:** Identify restaurants, retailers, and other establishments holding alcohol licenses in Montgomery County.
- **Local Market Analysis:** Study license distribution by city, district, license class, or business category.
- **License Monitoring:** Compare collected records with internal business information to identify changes.
- **Privilege Research:** Examine catering, cafe, cork, and other listed license privileges.
- **Geographic Analysis:** Use location coordinates to map licensed establishments and understand their distribution.
- **Scheduled Data Collection:** Run the actor periodically through Apify Schedules to maintain refreshed datasets.

### Frequently Asked Questions

**What data does this actor collect?**

It collects publicly available Montgomery County alcohol licensee records, including business names, addresses, license information, privileges, and location details.

**Can I search for a specific business or keyword?**

Yes. Select search mode and provide a search term through `searchText` to find matching records.

**Can I filter records by city or update date?**

Yes. Use filter mode with a custom condition. For example, `city='BETHESDA'` filters records by city, while `:updated_at>'2020-01-01'` filters by update date.

**Can I collect the complete dataset?**

Yes. Select `all_rows` mode to retrieve records in paginated batches. Use `maxItems` to control the number of records collected.

**What export formats are supported?**

You can export your results in JSON, CSV, Excel, and other formats supported by Apify datasets.

**Can I schedule recurring collections?**

Yes. Configure an Apify Schedule to run the actor automatically at your preferred intervals.

### Related Tools

Explore other data collection solutions from BigiByte:

- **New Jersey Construction Permits Scraper** – Collect public construction permit records for property and development research.
- **NYS Notaries Public Scraper** – Retrieve public notary commission records from New York State.
- **Government Data Scrapers** – Explore public government datasets for research, analysis, and reporting.

Looking for data from another website or platform? BigiByte builds custom web scrapers and data solutions to help businesses collect, organize, and use the information they need.

Visit [BigiByte](https://bigibyte.com) to explore custom scraping solutions.

### Trademark Notice

Montgomery County, Maryland and its related names, logos, and trademarks belong to their respective owners. They are mentioned solely to identify the source of the collected information. This actor is not affiliated with, sponsored by, or endorsed by Montgomery County, Maryland.

### Disclaimer

This actor is an independent data collection tool. It is not an official product of Montgomery County, Maryland or its Department of Alcohol Beverage Services. The accuracy and availability of collected information depend on the source dataset. Users are responsible for verifying records and ensuring that their use of the data complies with applicable laws and regulations.

### Is Web Scraping Legal?

This actor extracts publicly accessible data without bypassing login screens, paywalls, or technical security layers. While collecting public web data is widely permitted, compliance depends on how data is gathered and used:

- **Personal Data:** Business records may contain personal identifiers. Follow applicable privacy laws, including GDPR and CCPA, when collecting, storing, or processing personal information.
- **Copyrighted Content:** Publicly accessible information may still contain copyrighted text, images, or creative assets. Avoid copying or redistributing protected material without permission.
- **Platform Terms and Rate Limits:** Collect data responsibly, avoid excessive traffic, and respect applicable platform policies and collection limits.

This information is provided for general guidance only and does not constitute legal advice. For a more detailed explanation, read [Apify's guide to web scraping legality](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

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

What to collect.

## `searchText` (type: `string`):

Full-text search across all columns ($q).

## `where` (type: `string`):

SoQL WHERE clause, e.g. :updated_at>'2020-01-01'.

## `orderBy` (type: `string`):

SoQL $order. Stable paging needs a unique order.

## `appToken` (type: `string`):

Optional Socrata app token (X-App-Token) for higher limits.

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

Stop after this many successful rows. Hard max is 1000.

## `requestDelayMs` (type: `integer`):

Polite pacing in milliseconds.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

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

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "all_rows",
  "searchText": "inc",
  "where": ":updated_at>'2020-01-01'",
  "orderBy": ":id",
  "maxItems": 100,
  "requestDelayMs": 500,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

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

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "searchText": "inc"
};

// Run the Actor and wait for it to finish
const run = await client.actor("bigibyte/montgomery-county-md-alcohol-licensees-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 = { "searchText": "inc" }

# Run the Actor and wait for it to finish
run = client.actor("bigibyte/montgomery-county-md-alcohol-licensees-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 '{
  "searchText": "inc"
}' |
apify call bigibyte/montgomery-county-md-alcohol-licensees-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bigibyte/montgomery-county-md-alcohol-licensees-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/pLjFhVnnFUVbGNDdG/builds/bMd1ahmU6AcsM4wbT/openapi.json
