# Ny Tobacco Retail Dealers Scraper (`bigibyte/ny-tobacco-retail-dealers-scraper`) Actor

Extract registered New York cigarette, tobacco, and vapor retailers into clean datasets. Collect COR license numbers, business names, addresses, and geocoded locations via custom filters, search, or full paging, then export directly to JSON, CSV, or Excel.

- **URL**: https://apify.com/bigibyte/ny-tobacco-retail-dealers-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

## NY Tobacco Retail Dealers Scraper

![NY Tobacco Retail Dealers Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/ny-tobacco-retail-dealers-scraper-cover.png)

Collect registered cigarette, tobacco, and vapor product retailer records across New York State. Retrieve business names, COR licence numbers, addresses, retailer classifications, and geographic coordinates in structured datasets for market research, business analysis, and compliance-related workflows.

### What It Does

The NY Tobacco Retail Dealers Scraper collects records from New York State's Registered Retail Dealers of Cigarettes and Tobacco Products and Vapor Products dataset.

It helps you retrieve registered retailer information, including COR identification numbers, legal business names, DBA names, physical addresses, and geolocation coordinates.

Choose from four collection modes to retrieve the complete dataset, search for matching businesses, apply custom filters, or inspect available dataset columns.

### Why Use This Scraper?

- **Retailer Discovery:** Find registered cigarette, tobacco, and vapor product dealers across New York State.
- **Business Information:** Collect COR licence numbers, legal business names, DBA names, and physical addresses.
- **Geographic Data:** Retrieve available location coordinates for mapping and geographic analysis.
- **Flexible Data Filtering:** Search by business name, city, ZIP code, or other available fields.
- **Multiple Collection Modes:** Retrieve complete datasets, search records, apply filters, or inspect dataset metadata.
- **Structured Exports:** Download results in JSON, CSV, Excel, and other supported Apify formats.

### Collection Modes

- **All Rows:** Retrieves records in batches, allowing you to collect larger portions of the dataset.
- **Full-Text Search:** Searches across available text fields using a keyword or phrase.
- **SoQL Filter:** Applies custom conditions to narrow results by city, business name, location, or other dataset fields.
- **Dataset Metadata:** Retrieves information about available columns, including their names, data types, and descriptions.

### Input Parameters

| Parameter | Description | Example |
|---|---|---|
| `mode` | Selects the collection mode: `all_rows`, `search`, `filter`, or the metadata mode supported by the actor. | `all_rows` |
| `searchText` | Keyword or phrase used in search mode. | `inc` |
| `where` | Custom SoQL filter condition used in filter mode. | `phys_city_adr='BROOKLYN'` |
| `maxItems` | Maximum number of records to collect. | `50` |
| `orderBy` | Field or expression used to order records in all-rows mode. | `:id` |
| `requestDelayMs` | Delay between collection requests, in milliseconds. | `500` |

### Input Examples

**1. Retrieve all retailer records**

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

**2. Search retailer records**

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

**3. Filter retailers by city**

```json
{
  "mode": "filter",
  "where": "phys_city_adr='BROOKLYN'",
  "maxItems": 25,
  "requestDelayMs": 500
}
```

**4. Filter records by update date**

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

### Output Example

Each dataset item represents a registered retailer record.

```json
{
  "cor_id": "010662776",
  "cor_seq_nmbr": "0",
  "cig_vape": "CIG",
  "last_or_bus_name": "NORTHERN CAKES, SNACK OUTLET & REDEMPTION CENTER, INC.",
  "dba_name": "NORTHERN CAKES",
  "phys_ln_2_adr": "1290 MILITARY TPKE",
  "phys_city_adr": "PLATTSBURGH",
  "phys_state_adr": "NY",
  "phys_zip_5_adr": "12901",
  "georeference": {
    "type": "Point",
    "coordinates": [
      -73.50533,
      44.67641
    ]
  },
  "scraped_at": "2026-10-26T00:00:00+00:00"
}
```

### Output Fields

| Field | Description |
|---|---|
| `cor_id` | COR identification number associated with the retailer. |
| `cor_seq_nmbr` | Sequence number associated with the retailer record. |
| `cig_vape` | Retailer classification, such as cigarette or vapor products. |
| `last_or_bus_name` | Legal business name or registered business name. |
| `dba_name` | Doing Business As (DBA) name, when available. |
| `phys_ln_2_adr` | Physical street address. |
| `phys_city_adr` | City where the retailer is located. |
| `phys_state_adr` | State associated with the physical address. |
| `phys_zip_5_adr` | Five-digit ZIP code. |
| `georeference` | Geographic location represented as a GeoJSON Point with longitude and latitude coordinates. |
| `scraped_at` | Timestamp indicating when the record was collected. |

Additional source columns are preserved in the output when available.

### Use Cases

- **Retailer Research:** Discover registered tobacco and vapor product businesses across New York State.
- **Business Lead Research:** Build structured business lists using publicly available retailer information, subject to applicable marketing and privacy requirements.
- **Compliance-Related Workflows:** Review retailer registration information and compare records during compliance research.
- **Market Analysis:** Examine cigarette and vapor retailer distribution across cities and ZIP codes.
- **Geographic Mapping:** Use location coordinates to visualize retailer distribution and perform geographic analysis.
- **Data Enrichment:** Match COR identification numbers and business addresses with existing business datasets.
- **Data Quality Checks:** Collect smaller batches to review available address and business information before larger exports.

### FAQ

**Who can use this scraper?**

This actor is useful for business researchers, market analysts, compliance professionals, and developers who need structured information about registered New York tobacco and vapor retailers.

**What types of retailers does it cover?**

It collects records from the New York State dataset covering registered dealers of cigarettes, tobacco products, and vapor products.

**What business information does it collect?**

Available information includes COR identification numbers, legal business names, DBA names, retailer classifications, physical addresses, ZIP codes, and geographic coordinates.

**Can I search for retailers by city or business name?**

Yes. Use search mode with `searchText` or filter mode with a custom SoQL condition.

**Can I filter cigarette and vapor retailers separately?**

You can use filter mode with the `cig_vape` field, provided the corresponding classification values are available in the source dataset.

**Can I export the results to Excel or CSV?**

Yes. Export your Apify dataset in JSON, CSV, Excel, and other supported formats.

**Can I schedule recurring collections?**

Yes. Use Apify Schedules to run the actor automatically at your preferred intervals.

### Related Tools

Explore other data collection solutions that may complement this scraper:

- **New Jersey Construction Permits Scraper** – Collect public construction permit and property-related records for research and analysis.
- **NYS Notaries Public Scraper** – Retrieve commissioned notary records from New York State's public dataset.
- **Government Data Scrapers** – Collect structured information from public government datasets and open data portals.

Looking to collect business information from another source or build a specialized data solution? **BigiByte** builds custom web scrapers, automation solutions, and data APIs tailored to your requirements.

Visit [BigiByte](https://bigibyte.com) to discuss your project.

### Trademark Notice

New York State Department of Taxation and Finance, New York State Open Data, and their associated names, logos, and trademarks belong to their respective owners. They are referenced solely to identify the source of the collected information. This actor does not imply affiliation, sponsorship, endorsement, or partnership with these organizations.

### Disclaimer

This actor is an independent data collection tool. It is not affiliated with, endorsed by, sponsored by, or officially associated with the New York State Department of Taxation and Finance or its owners.

The information is collected from publicly accessible dataset. Users are responsible for verifying the accuracy and current status of collected records and complying with applicable laws and source-platform policies.

### 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 information. Follow applicable privacy regulations, including GDPR and CCPA where relevant, and handle personal identifiers responsibly.
- **Copyrighted Content:** Public accessibility does not automatically remove copyright protections. Avoid duplicating or redistributing copyrighted text, images, or other creative assets without permission.
- **Platform Terms and Rate Limits:** Collect data responsibly, avoid excessive traffic, and respect the source platform's applicable usage policies and rate limits.

**Disclaimer:** This information is provided for educational purposes only and does not constitute legal advice. Consult a qualified legal professional if you need guidance about your specific use case.

For more information, read Apify's guide: [Is Web Scraping Legal?](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/ny-tobacco-retail-dealers-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/ny-tobacco-retail-dealers-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/ny-tobacco-retail-dealers-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bigibyte/ny-tobacco-retail-dealers-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/i6TQtGxBn677UcS1g/builds/CnSQattXefdlBk78j/openapi.json
