# Treez Menu Scraper - Dispensary Products & Prices (`confidential_gnat/treez-menu-scraper`) Actor

Scrape Treez dispensary online menus (treez.io): products, brands, THC and CBD, prices, discounts, stock, strain types, lab results and store details. Paste menu URLs or store names. Cache returns only new or changed products.

- **URL**: https://apify.com/confidential_gnat/treez-menu-scraper.md
- **Developed by:** [ActorFlow](https://apify.com/confidential_gnat) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 1,000 results

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

## Treez Dispensary Menu Scraper - Cannabis Products, Prices & Stock

![Treez Menu Scraper cover](https://i.postimg.cc/XqGHgJTz/Gemini-Generated-Image-y9tl0ey9tl0ey9tl.jpg)

**Scrape cannabis menus from Treez dispensary online menus (treez.io)**: product name, brand, category, strain type, **THC and CBD**, size, **price**, discounts, stock, images, lab results and store details such as address, phone, opening hours and ordering options. Export to JSON, CSV or Excel, or call it as an **API**. Paste a menu URL such as `https://cannablue.treez.io/onlinemenu/`, press Start and get one clean record per product and size.

**Target website:** [Treez online menus, e.g. cannablue.treez.io](https://cannablue.treez.io/onlinemenu/)

### ✨ Features of this Treez dispensary menu scraper

- **Dispensary menu extraction** - every product of a store, one record per variant and size, with the store address, city, state, zip and phone joined to each record.
- **Pagination support** - walks every category of the store page by page until the limit you set.
- **Category filtering** - keep only categories such as FLOWER, EDIBLE, CARTRIDGE or PREROLL.
- **Adult use or medical menu** - choose which menu to read.
- **Lab results and deals** - optionally add the full cannabinoid and terpene panel and the discounts attached to each product.
- **Store records** - optionally add one record per store with opening hours, pickup, curbside and delivery options, and delivery details.
- **Cache deduplication** - skips products saved in earlier runs whose price and stock did not change (deduplication), so scheduled runs return only new or changed products.
- **No browser required** - runs are fast and cheap.

### 🚀 How to scrape Treez dispensary menus in 5 steps

1. [Sign up](https://apify.com/sign-up) for a free Apify account - includes **$5 monthly credit**.
2. Open the actor page and click **Try for free**.
3. Fill in the **Input** fields (a Treez menu URL or a store name is required).
4. Click **Start** and wait for the run to complete.
5. Download results from the **Output** tab in JSON, CSV, or Excel format.

You can also run this actor via the [Apify API](https://docs.apify.com/api/v2) or integrate it directly into your workflows using [Zapier](https://zapier.com/apps/apify), [Make](https://www.make.com/), or [n8n](https://n8n.io/).

### 💰 Pricing for the Treez menu scraper

This actor uses **pay-per-result** billing based on the compute units a run consumes.

- New Apify accounts include **$5 of free monthly credit**.
- It costs significantly less to run than browser-based scrapers.

### 🖼️ Treez menu scraper input screenshot

![Treez Menu Scraper input form in Apify Console: Treez menu URLs, max products per store, cache project name, store names, menu type, categories, include lab results and include deals](https://i.postimg.cc/d3kH91zn/Gemini-Generated-Image-5vqy895vqy895vqy.jpg)

1. **Treez menu URLs** - store menu pages to scrape.
2. **Max products per store** - the limit for each store.
3. **Cache project name - For deduplication** - set a name to get only new or changed products on later runs.
4. **Store names** - extra stores by name, such as `tiogagreen`.
5. **Menu type** - adult-use or medical menu.
6. **Categories** - only these product categories.
7. **Include lab results** - adds the cannabinoid and terpene panel where the store provides one.
8. **Include deals** - adds each product's discounts and who qualifies.

### 🔧 Treez menu scraper input configuration

| Field | Type | Required | Default | Description |
| ----- | ---- | -------- | ------- | ----------- |
| Treez menu URLs (`startUrls`) | array | - | `https://cannablue.treez.io/onlinemenu/` | Online menu pages of Treez dispensaries. |
| Store names (`storeSlugs`) | array | - | - | Store names from the menu address, for example `cannablue` for cannablue.treez.io. A full menu URL also works. |
| Menu type (`customerType`) | string | - | `ADULT` | `ADULT` or `MEDICAL`. Stores with one menu return the same products for both. |
| Categories (`categories`) | array | - | - | Only these menu categories, for example FLOWER, EDIBLE, CARTRIDGE, PREROLL, EXTRACT, TINCTURE, TOPICAL, BEVERAGE, PILL, PLANT, MERCH. Empty = all categories of the store. |
| Max products per store (`maxItems`) | integer | - | 5 | Maximum products (one per variant and size) saved for each store. |
| Include lab results (`includeLabResults`) | boolean | - | false | Add the full cannabinoid and terpene lab panel to each product when the store publishes it. |
| Include deals (`includeDeals`) | boolean | - | false | Add the discounts attached to each product. |
| Include store record (`includeStoreRecord`) | boolean | - | false | Add one extra record per store with address, hours, ordering options and delivery details. |
| Cache project name (`cacheProjectName`) | string | - | - | Skip products unchanged since earlier runs saved under this name (price and stock); each record gets changeType: new or updated. Use the same name on each scheduled run. Leave empty to scrape everything. |

**Supported URL types:**

- Store menu: `https://cannablue.treez.io/onlinemenu/`
- Any page of a store menu on a `*.treez.io` address; the actor reads the whole store menu.

### 📦 Treez menu scraper output data

The output is a flat dataset (JSON, CSV or Excel) with these fields: `recordType`, `storeSlug`, `storeName`, `storeUrl`, `storeAddress`, `storeCity`, `storeState`, `storeZip`, `storeLatitude`, `storeLongitude`, `storePhone`, `storeHours`, `storeOpenTime`, `storeCloseTime`, `fulfillment`, `deliveryCost`, `deliveryMinimum`, `deliveryZipCodes`, `storeCategories`, `storeOrgId`, `storeEntityId`, `productId`, `productGroupId`, `name`, `menuTitle`, `category`, `productType`, `subTypes`, `brand`, `strainType`, `flavors`, `effects`, `thcPercent`, `cbdPercent`, `totalCannabinoidsPercent`, `terpenesPercent`, `size`, `weight`, `weightUnit`, `mgDose`, `price`, `discountedPrice`, `discountPercent`, `taxRate`, `inStock`, `unitsInStock`, `customerType`, `description`, `imageUrl`, `imageUrls`, `labResultUrl`, `labResults`, `deals`, `scrapedFrom`, `scrapedAt`, `changeType`. Fields without data are `null`. Product records have `recordType` set to `product`; store records have `recordType` set to `store` and fill the store-only fields (hours, ordering options, delivery details).

The dataset has 2 views: **Products** lists name, brand, category, size, price, stock and THC per product, and **Stores** lists address, phone, hours and ordering options per store.

**Output at a glance:**

| Store | Category | Brand | Product | Size | Price | In stock | THC |
| ----- | -------- | ----- | ------- | ---- | ----- | -------- | --- |
| [Cannablue](https://cannablue.treez.io/onlinemenu/) | BEVERAGE | LAGUNITAS/ABX | 4PK- 12OZ- HI-FI SESSIONS- BALANCE | 20 MG | 29.99 | 25 | 20 |
| [Cannablue](https://cannablue.treez.io/onlinemenu/) | BEVERAGE | LAGUNITAS/ABX | SINGLE- CLOUDBERRY- 12OZ- HI-FI SESSIONS | 10 MG | 8.99 | 5 | 10 |
| [Cannablue](https://cannablue.treez.io/onlinemenu/) | BEVERAGE | LAGUNITAS/ABX | SINGLE- 12OZ- HI-FI SESSIONS- BALANCE | 5 MG | 8.99 | 15 | 5 |
| [Cannablue](https://cannablue.treez.io/onlinemenu/) | BEVERAGE | CANN | 8CT- ROADIES- GRAPEFRUIT ROSEMARY | 16 MG | 29.99 | 34 | 16 |
| [Cannablue](https://cannablue.treez.io/onlinemenu/) | BEVERAGE | CANN | 8CT- ROADIES- BLOOD ORANGE CARDAMOM | 16 MG | 29.99 | 27 | 16 |

**Sample output (raw JSON):**

```json
[
  {
    "recordType": "product",
    "storeSlug": "cannablue",
    "storeName": "Cannablue",
    "storeUrl": "https://cannablue.treez.io/onlinemenu/",
    "storeAddress": "2179 Lake Tahoe Blvd",
    "storeCity": "South Lake Tahoe",
    "storeState": "CA",
    "storeZip": "96150",
    "storeLatitude": 38.9173282,
    "storeLongitude": -119.9986671,
    "storePhone": "+15303091440",
    "storeHours": null,
    "storeOpenTime": null,
    "storeCloseTime": null,
    "fulfillment": null,
    "deliveryCost": null,
    "deliveryMinimum": null,
    "deliveryZipCodes": null,
    "storeCategories": null,
    "storeOrgId": null,
    "storeEntityId": null,
    "productId": "904cb380-95df-4cbe-b855-8474f81c4449",
    "productGroupId": "904cb380-95df-4cbe-b855-8474f81c4449",
    "name": "4PK- 12OZ- HI-FI SESSIONS- BALANCE",
    "menuTitle": "4PK- 12OZ- HI-FI SESSIONS- BALANCE",
    "category": "BEVERAGE",
    "productType": "BEVERAGE",
    "subTypes": [
      "BEER"
    ],
    "brand": "LAGUNITAS/ABX",
    "strainType": [
      "CBD"
    ],
    "flavors": null,
    "effects": null,
    "thcPercent": 20,
    "cbdPercent": 20,
    "totalCannabinoidsPercent": null,
    "terpenesPercent": null,
    "size": "20 MG",
    "weight": 20,
    "weightUnit": "MILLIGRAMS",
    "mgDose": 20,
    "price": 29.99,
    "discountedPrice": 29.99,
    "discountPercent": null,
    "taxRate": 0.095,
    "inStock": true,
    "unitsInStock": 25,
    "customerType": "ADULT",
    "description": "Citrus-tinged hoppy sparkling water, crisp and light with a Lagunitas IPA-style bite but zero alcohol, zero calories, and zero sugar. Each 12oz can holds an even 5mg THC and 5mg CBD (20mg of each per 4-pack), the 1:1 balance aimed at an easygoing, just-right buzz that's mellow enough for any time of day. Hi-Fi Sessions is a collaboration between Lagunitas and California cannabis maker ABX.",
    "imageUrl": "https://d1hhy58mqsa6c3.cloudfront.net/e03e2109-21d3-482d-8d7f-3c61b8ae0d88/1b981c8e-375f-4989-88e4-e3132f7209f2",
    "imageUrls": [
      "https://d1hhy58mqsa6c3.cloudfront.net/e03e2109-21d3-482d-8d7f-3c61b8ae0d88/1b981c8e-375f-4989-88e4-e3132f7209f2"
    ],
    "labResultUrl": null,
    "labResults": null,
    "deals": null,
    "scrapedFrom": "https://cannablue.treez.io/onlinemenu/",
    "scrapedAt": "2026-11-17T15:17:34.970Z",
    "changeType": null
  }
]
```

### 🔁 Scrape only new Treez menu products with cache deduplication

Turn on **Only new or updated products** and give the run a **Cache project name**. Each scheduled run then uses the same cache for **deduplication**: products already saved under that name whose price and stock did not change are skipped, not charged and not counted towards Max products. Every record gets `changeType` set to `new` or `updated`. Different names keep separate caches. Tip: pair it with an Apify Schedule to track daily price and stock changes.

### 🐍 How to scrape Treez menus with Python, JavaScript or the API

Run the actor programmatically with the official Apify clients. Replace `<YOUR_API_TOKEN>` with the token from your [Apify Console](https://console.apify.com/account/integrations).

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")

run = client.actor("<username>/treez-menu-scraper").call(run_input={
    "startUrls": [{"url": "https://cannablue.treez.io/onlinemenu/"}],
    "categories": ["FLOWER"],
    "maxItems": 50,
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**JavaScript** (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });

const run = await client.actor('<username>/treez-menu-scraper').call({
    startUrls: [{ url: 'https://cannablue.treez.io/onlinemenu/' }],
    categories: ['FLOWER'],
    maxItems: 50,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**cURL** - start a run and wait for the dataset:

```bash
curl -X POST "https://api.apify.com/v2/acts/<username>~treez-menu-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"startUrls": [{"url": "https://cannablue.treez.io/onlinemenu/"}], "categories": ["FLOWER"], "maxItems": 50}'
```

### 💡 What you can use Treez dispensary menu data for

- Cannabis price monitoring across dispensaries and brands
- Tracking stock levels and sell-outs of specific products
- Brand and product assortment analysis by category, strain type and THC level
- Deal and discount tracking for consumer apps and newsletters
- Lead lists and market maps of dispensaries with address, phone and hours

Cannabis brands, market analysts, price comparison apps, retailers and investors use this data to follow menu prices and availability across California and other legal markets.

### ⚠️ Limitations of the Treez menu scraper

- **Treez online menus only** - the actor reads menus on `*.treez.io` addresses. Dispensaries that show their Treez menu on their own website address are not supported by a store name or URL on that website; use the `treez.io` menu address of the store.
- **No store search** - there is no directory of stores, so you provide the menu URLs or store names.
- **Lab results vary by store** - some stores do not publish lab panels, so the list is empty for them.
- **Deals include member-only discounts** - the `deals` list shows every discount attached to a product, and the `conditions` field says who qualifies (for example a customer group).

### ❓ Treez menu scraper FAQ

#### Can I scrape Treez dispensary menus legally?

The actor only collects menu data that is already publicly visible on the store menu page - no login, paywall or private content is accessed. Scraping publicly available data is generally considered lawful (see *hiQ Labs v. LinkedIn*), and you remain responsible for complying with the site's Terms of Service and applicable laws.

#### What data does the Treez menu scraper return?

Product name, brand, category, sub types, strain type, THC and CBD, size, weight, price, discounted price, stock, description and images, plus store name, address, phone and coordinates on every record. Optional switches add lab results, deals and a separate store record with hours and ordering options.

#### How many products can I scrape from one Treez menu?

`maxItems` limits the products saved for each store, so every store in the run gets its own limit. A large store has over a thousand products, and setting a high `maxItems` returns the full menu.

#### How do I scrape Treez menus with Python?

Use the Python example above and iterate over the dataset items with the Apify client.

#### Can I run this Treez scraper on a schedule?

Yes. Use Apify Schedules to run it daily or hourly. With **Only new or updated products** and a cache project name, repeated runs apply **deduplication** and return only products that are new or whose price or stock changed.

#### What output formats are supported?

JSON, CSV, Excel, XML and RSS, either from the **Output** tab or through the Apify API.

#### Is this the cheapest Treez menu scraper on Apify?

Probably yes. The cache **deduplication** skips products saved in earlier runs, so repeated runs are not charged for duplicates.

#### Why do some products have no lab results or THC values?

Stores decide what they publish. When a store does not upload lab panels or potency, those fields are `null` or the lab list is empty.

### 🔗 Relevant actors for Treez dispensary data

| Scraper | Description |
| ------- | ----------- |
| [Dutchie Dispensary & Menu Scraper](https://apify.com/confidential_gnat/dutchie-dispensary-menu-scraper) | Scrape Dutchie cannabis dispensaries and menus: products by size, prices and brands. |
| [🌿 Flowhub Dispensary Menu Scraper](https://apify.com/confidential_gnat/flowhub-menu-scraper) | Scrape Flowhub dispensary menus: products, prices, THC, terpenes, deals and chains. |
| [🌿 Blaze Cannabis Menu Scraper](https://apify.com/confidential_gnat/blaze-menu-scraper) | Scrape BLAZE-powered dispensary menus: products, prices, THC, deals and rewards. |
| [🌿 Leafly Scraper](https://apify.com/confidential_gnat/leafly-scraper) | Scrape Leafly dispensaries, menus, strains, brands and reviews. |

### 🔗 Other actors you may find useful

| Scraper | Description |
| ------- | ----------- |
| [🍷 Total Wine Scraper](https://apify.com/confidential_gnat/totalwine-scraper) | Scrapes Total Wine & More wine, liquor and beer prices, sizes and ratings. |
| [👗 Poshmark Listings Scraper](https://apify.com/confidential_gnat/poshmark-listings-scraper) | Scrapes Poshmark listings by keyword, brand, category, closet or link. |
| [🎁 Uncommon Goods Products Scraper](https://apify.com/confidential_gnat/uncommongoods-products-scraper) | Scrapes Uncommon Goods products: price, sale price, reviews and categories. |
| [🍇 Vivino Wine Scraper](https://apify.com/confidential_gnat/vivino-wine-scraper) | Scrapes wine data from Vivino: wine name, winery, vintage and region. |
| [🛒 Woolworths Products Scraper](https://apify.com/confidential_gnat/woolworths-products-scraper) | Scrape Woolworths Australia grocery products: name, brand, price and package size. |

### 💬 Support & contact

If you encounter any issues or have questions, please [open an issue](https://apify.com/confidential_gnat/treez-menu-scraper/issues/open).

You can also find more of our actors on the [Actor Flow](https://apify.com/confidential_gnat) page.

# Actor input Schema

## `startUrls` (type: `array`):

Online menu pages of Treez dispensaries. Example: https://cannablue.treez.io/onlinemenu/

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

Maximum products (one per variant and size) saved for each store.

## `cacheProjectName` (type: `string`):

Set a name to skip products already saved under it whose price and stock have not changed (not counted towards Max products). Use the same name on each scheduled run; separate names keep separate caches. Each record gets changeType: new or updated. Leave empty to scrape everything.

## `storeSlugs` (type: `array`):

Optional: store names from the menu address, for example cannablue for cannablue.treez.io. A full menu URL also works.

## `customerType` (type: `string`):

Which menu to read: adult use or medical. Stores with one menu return the same products for both.

## `categories` (type: `array`):

Optional: only these menu categories, for example FLOWER, EDIBLE, CARTRIDGE, PREROLL, EXTRACT, TINCTURE, TOPICAL, BEVERAGE, PILL, PLANT, MERCH. Empty = all categories of the store.

## `includeLabResults` (type: `boolean`):

Add the full cannabinoid and terpene lab panel to each product when the store publishes it.

## `includeDeals` (type: `boolean`):

Add the discounts attached to each product (title, amount, conditions such as customer group).

## `includeStoreRecord` (type: `boolean`):

Add one extra record per store with address, opening hours, ordering options and delivery details.

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

Optional. Leave as is to use the built-in connection, or pick your own proxy.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://cannablue.treez.io/onlinemenu/"
    }
  ],
  "maxItems": 5,
  "storeSlugs": [],
  "customerType": "ADULT",
  "categories": [],
  "includeLabResults": false,
  "includeDeals": false,
  "includeStoreRecord": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrls": [
        {
            "url": "https://cannablue.treez.io/onlinemenu/"
        }
    ],
    "maxItems": 5,
    "storeSlugs": [],
    "categories": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("confidential_gnat/treez-menu-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 = {
    "startUrls": [{ "url": "https://cannablue.treez.io/onlinemenu/" }],
    "maxItems": 5,
    "storeSlugs": [],
    "categories": [],
}

# Run the Actor and wait for it to finish
run = client.actor("confidential_gnat/treez-menu-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 '{
  "startUrls": [
    {
      "url": "https://cannablue.treez.io/onlinemenu/"
    }
  ],
  "maxItems": 5,
  "storeSlugs": [],
  "categories": []
}' |
apify call confidential_gnat/treez-menu-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,confidential_gnat/treez-menu-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/ORgyBY9pADfXBit4i/builds/ZEq5ryxoAbSMTu41I/openapi.json
