# BC Liquor Price List Tracker (`truthful_realm/bc-liquor-price-list-tracker`) Actor

Track the BC Liquor Stores product price list from official open data: every SKU with price, price per litre and per litre of alcohol, plus new listings, price increases/decreases and delistings since your last run, with price history.

- **URL**: https://apify.com/truthful_realm/bc-liquor-price-list-tracker.md
- **Developed by:** [Daniel Poirier](https://apify.com/truthful_realm) (community)
- **Categories:** E-commerce, Automation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 price rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## BC Liquor Price List Tracker

**Track BC Liquor Stores product prices from official open data. You get every SKU with its price, price per litre and price per litre of alcohol. On later runs you also see new listings, price increases and decreases, and delistings, with price history.**

### What you get

- **Product rows.** SKU, name, category, sub-category, class, country of origin, UPC, litres per container, containers per unit, alcohol %, price, `pricePerLitre`, `pricePerLitreOfAlcohol`, and sweetness code.
- **Change tracking.** `changeType` (`new`, `priceIncrease`, `priceDecrease`, `delisted`, `unchanged`), `previousPrice`, `priceChange` and `priceChangePct`, compared with the last list this monitor saw (`comparedWithList`).
- **Price history (optional).** The price points recorded for each SKU, one per published list.

### How monitoring works

BC publishes a new price list in the BC Data Catalogue from time to time (roughly monthly; the current one is the July 2026 list, published Oct 14, 2026). The first run saves a baseline. Later runs in `changesOnly` mode output only what changed since the previous list. If the official list hasn't changed, nothing is output and nothing is charged (`skipIfListUnchanged`). Schedule it daily or weekly.

### Input

| Field | What it does |
|---|---|
| `mode` | `fullList` or `changesOnly` |
| `categories`, `classKeywords`, `nameKeywords`, `countries` | Product filters |
| `minPrice` / `maxPrice`, `minAlcoholPercent` / `maxAlcoholPercent` | Range filters |
| `changeTypes`, `minPriceChangePct` | Change filters |
| `sortBy` | Sort by price, price per litre, price per litre of alcohol, or biggest drop or increase |
| `includePriceHistory`, `stateKey`, `skipIfListUnchanged`, `maxItems` | Monitoring and caps |

Example: `{"mode":"changesOnly","categories":["Spirits"],"changeTypes":["priceDecrease"],"sortBy":"biggestDropPct"}`

### Pricing (pay per event)

| Event | Price |
|---|---|
| Product row (`price-row`) | **$2.00 per 1,000** |

### Data and licence

This Actor uses product data only. It contains no personal information. Source: "BC Liquor Store Product Price List" (BC Data Catalogue, catalogue.data.gov.bc.ca). *Contains information licensed under the Open Government Licence – British Columbia.* This Actor is independent. It is not affiliated with or endorsed by the Government of British Columbia or BC Liquor Stores. Shelf prices in stores can differ from the published list.

### Limitations

- History starts from your first run, because the catalogue keeps only the current list file.
- Prices are as published. Promotions and store-level prices are not included.

### Note for the publisher (Console setup)

Remove the synthetic `apify-default-dataset-item` event in the pay-per-event settings so rows are not charged twice.

# Actor input Schema

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

fullList = every matching product in the current list (with change flags once a previous list is remembered). changesOnly = only new, re-priced and delisted products versus the last list this monitor saw.

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

Leave empty for all.

## `classKeywords` (type: `array`):

E.g. 'Red Wine', 'Whisky', 'Lager', 'Italy'. Matches the sub-category or class name.

## `nameKeywords` (type: `array`):

Any of these words in the product name (case/accent-insensitive).

## `countries` (type: `array`):

Exact country names as published, e.g. CANADA, FRANCE, ITALY.

## `minPrice` (type: `integer`):

Minimum shelf price in whole dollars.

## `maxPrice` (type: `integer`):

Maximum shelf price in whole dollars.

## `minAlcoholPercent` (type: `integer`):

Minimum alcohol by volume.

## `maxAlcoholPercent` (type: `integer`):

Maximum alcohol by volume.

## `changeTypes` (type: `array`):

Which changes to output. Empty = all changes.

## `minPriceChangePct` (type: `integer`):

Only price changes at least this large (absolute %).

## `sortBy` (type: `string`):

Output order before the row cap is applied.

## `includePriceHistory` (type: `boolean`):

Attach the price points this monitor has recorded for each SKU (grows with each new monthly list).

## `stateKey` (type: `string`):

Snapshots/history are remembered per monitor name in a named key-value store.

## `skipIfListUnchanged` (type: `boolean`):

In changes mode, output nothing (and charge nothing) if the official list is the same one seen last run.

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

Hard cap on rows pushed (and charged) per run.

## Actor input object example

```json
{
  "mode": "fullList",
  "sortBy": "none",
  "includePriceHistory": false,
  "stateKey": "default",
  "skipIfListUnchanged": true,
  "maxItems": 10000
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("truthful_realm/bc-liquor-price-list-tracker").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("truthful_realm/bc-liquor-price-list-tracker").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 '{}' |
apify call truthful_realm/bc-liquor-price-list-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,truthful_realm/bc-liquor-price-list-tracker"
        }
    }
}
```

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/PhGHKCYiqeHomvJRH/builds/qZQZSp0loco6f5kJY/openapi.json
