# Shufersal Price & Promo Changes (`thescrapelab/shufersal-price-promo-changes`) Actor

Track observed shelf-price and promotion changes at one Shufersal branch. Get prior values, coupon and club conditions, and intact promotion groups from official XML.

- **URL**: https://apify.com/thescrapelab/shufersal-price-promo-changes.md
- **Developed by:** [Inus Grobler](https://apify.com/thescrapelab) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.10 / 1,000 output 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

## Shufersal Price & Promo Changes

Monitor Shufersal prices and promotions at a specific branch. This Shufersal scraper compares official price-transparency files with your saved history and returns observed price changes, promotion conditions, and coupon or club restrictions.

**$0.10 per 1,000 unique output rows, plus $0.01 per completed branch check.** Each check covers the branch's available products and promotions. The first monitoring run saves your starting point; later runs return observed changes.

Use it for retail price monitoring, grocery brand research, distributor reporting, and tracking which products participate in an offer. Product names and original promotion terms remain in Hebrew.

הכלי מתאים למעקב אחר מחירי שופרסל, מבצעי שופרסל, קופונים והטבות מועדון מתוך קובצי שקיפות מחירים הרשמיים.

### Quick start

1. Open the [Input tab](https://apify.com/thescrapelab/shufersal-price-promo-changes/input-schema).
2. Enter a branch ID, such as `098`, or its exact published Hebrew name.
3. Click **Start**. The first monitoring run returns the starting prices and promotions.
4. Run it again using the same account and monitor name to see observed changes.

```json
{
  "branch": "098",
  "maxResults": 100
}
```

No retailer login, cookies, or proxy setup is required. You can run each branch separately and use your own Apify schedule for regular checks.

### Pricing: pay for useful output

The current version uses two charges, in **USD**:

- **$0.10 per 1,000 unique output rows** ($0.0001 per row).
- **$0.01 per completed branch check**, including checks with no changes.

An output row is one product-price observation or one promotion observation. A promotion containing many products still counts as one promotion row. Completion receipts, duplicate previews and retries of the same saved observation are not billed as extra output.

| Example | Output fee | Check fee | Total |
| --- | ---: | ---: | ---: |
| First baseline with 9,000 records | $0.90 | $0.01 | **$0.91** |
| Later check with 20 observed changes | $0.002 | $0.01 | **$0.012** |
| Later check with no changes | $0 | $0.01 | **$0.01** |

**The first baseline can contain thousands of billable rows.** The preview limit does not reduce this charge: the complete observation dataset is saved and linked. For example, a 100-row preview of a 9,000-row baseline still costs $0.91. A catalog export charges for the unique records in that export, even if you exported the same catalog in another completed check.

Set the run's maximum charge to cover the complete dataset and the check fee. If it cannot cover the full observation, the Actor stops before making a new charge or saving a new billable dataset; it does not silently bill a partial batch. Monitoring history does not advance on that budget rejection.

There are no additional Actor startup or page charges. Platform usage for the Actor run is included. Your Apify subscription and separate downstream services are outside this price.

Charges happen after the complete observations have been saved. Row and check fees are tracked separately so an interruption between them can resume without charging either fee twice. If a previous charge cannot be confirmed, the Actor stops rather than repeating it. A run interrupted after a fee was issued can already have that fee, with the saved data available for recovery.

**Older versions:** builds `0.2.x` retain their $0.35 fixed check fee. That legacy charge is an alternative for pinned older builds and pre-upgrade saved checks; it is **not added** to the two current-version fees. Finish an interrupted current-version check using the current default build.

### Inputs

| Input | Default | What it does |
| --- | --- | --- |
| `branch` | `"098"` | A published branch ID or its exact Hebrew name. |
| `maxResults` | `100` | Maximum data rows shown in the preview. The complete observation dataset is still saved and linked. |
| `output` | `"monitor"` | Use `monitor` for a baseline followed by observed changes, or `catalog` for current products and promotions. |
| `monitorName` | `"default"` | Advanced: give independent histories different names. Reuse the same name for repeat checks of a history. |

Each run accepts one branch. A nonexistent or ambiguous branch produces a clear error. Catalog exports do not change your monitoring history.

### Get your complete results

The default dataset contains a completion receipt followed by up to `maxResults` preview rows. Open **Complete observations** in the receipt to access all records from that check. API users can also find the complete dataset link and ID in `RUN_SUMMARY`.

The preview limit does **not** limit how many products the branch check monitors or how many complete-dataset rows are billable. Each check supports up to **10,000 observations**; a larger collection stops clearly before completion billing.

Use **JSON for complete promotion groups and conditions**. CSV and Excel are convenient for product and price columns, but complex nested offers may lose fields when flattened.

### What data do you get?

| Data | Included fields |
| --- | --- |
| Branch and record identity | Branch ID and name, chain/subchain IDs, stable event ID, record type. |
| Product prices | Product code and code type, Hebrew name, ILS shelf price before and after, numeric change when a prior price is known. |
| Promotions | Promotion ID, current and previous source conditions, participating products and group IDs, quantities, dates, club restrictions, and coupon flags. |
| Product details within offers | Names and observed shelf prices matched by product code and type within that branch. Missing matches remain `null`. |
| Source reference | Official source URL, filename, source update time, and collection time. |

Records distinguish starting snapshots, first-observed products or promotions, genuine shelf-price changes, promotion-condition changes, and check receipts. A newly observed product is not presented as a verified price change. Internal product codes retain their original type and are not assumed to be universal barcodes.

Mix-and-match groups keep their original identity and participating items. The Actor does not calculate a single unit price for basket-dependent offers or decide whether an individual customer qualifies for a coupon. Source update times retain the retailer's local time; collection times are UTC.

### Example output

Shortened actual baseline record from branch `098`:

```json
{
  "recordType": "baseline_item",
  "eventId": "5f5a6c341cd074fa620b1ea1b08327dc2a8c1aa8c390aa66e255c35408174feb",
  "branch": "098",
  "productCode": "10900302814",
  "productCodeType": "1",
  "productName": "ניילון נצמד 30ס\"מ30* מטר",
  "shelfPriceBefore": null,
  "shelfPriceAfter": 10,
  "trustedNumericChange": null,
  "currency": "ILS",
  "sourceFilename": "PriceFull7290027600007-002-098-20261116-034226.gz",
  "collectedAt": "2026-11-16T18:38:40.404Z"
}
```

Unknown previous prices and conditions remain `null`; they are not estimated.

### Common uses

- Check where a brand's branch price changed since the last observation.
- Track changes to the products included in a multibuy or mix-and-match promotion.
- Review club and coupon conditions published by the retailer.
- Export a branch catalog for research or downstream reporting.

### Coverage and limitations

Data comes from the official [Shufersal price-transparency portal](https://prices.shufersal.co.il/). Source filenames and links stay with the observations. This Actor is independent of Shufersal.

Monitoring begins when you initialize a history. It cannot reconstruct observations from before that point. The retailer can replace files between checks, so a change that occurs and reverts between observations may be missed. Available incremental files are processed in time order, and repeated values do not create new change events.

A product or promotion disappearing from a file is not reported as a separate deletion event. The output reflects published source data; it does not verify a customer's checkout price or personal coupon eligibility.

If a run is interrupted, the next run can finish its saved observation and return a recovery receipt linking to the complete results. Run again afterward for a fresh comparison. Runs sharing the same branch history cannot write concurrently; after a hard stop, allow about 60 seconds before retrying.

### Python API example

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("thescrapelab/shufersal-price-promo-changes").call(
    run_input={"branch": "098", "maxResults": 100}
)

summary = client.key_value_store(run["defaultKeyValueStoreId"]).get_record(
    "RUN_SUMMARY"
)["value"]

for record in client.dataset(summary["fullDatasetId"]).iterate_items():
    print(record)
```

This reads the complete observation dataset rather than only the preview. A successful unchanged check has no change rows; its completion receipt is in the run's default dataset.

### FAQ

**Does every run return all products?** The first monitoring run returns a baseline. Later monitoring runs return observed changes. Choose `output: "catalog"` whenever you want the current catalog.

**What if nothing changed?** You receive a successful check receipt and an empty change dataset. You pay only the $0.01 completed-check fee.

**Does a smaller preview cost less?** No. Billing counts unique rows in the complete saved dataset, not the preview. The check fee is $0.01.

**Can I compare several branches?** Run each branch separately. Prices and histories remain branch-specific.

**Can I automate daily checks?** Yes. Use your own Apify schedule or API workflow with the same account and monitor name.

**How do I report a problem?** Open the [Issues tab](https://apify.com/thescrapelab/shufersal-price-promo-changes/issues) with the branch ID and Apify run ID. Never include API tokens or other secrets.

# Actor input Schema

## `branch` (type: `string`):

Published Shufersal branch ID, such as 098, or its exact Hebrew name.

## `maxResults` (type: `integer`):

Preview data rows, plus one completion receipt. All unique observations are saved in the linked complete dataset and are billable. This is not a billable-output limit; the first baseline can contain thousands of rows.

## `output` (type: `string`):

Monitor establishes history then returns observed changes. Catalog returns current products and promotions.

## `monitorName` (type: `string`):

Use the same name for repeated checks of one history.

## Actor input object example

```json
{
  "branch": "098",
  "maxResults": 100,
  "output": "monitor",
  "monitorName": "default"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

Complete observation dataset URL, preview status, source coverage and recovery links.

# 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 = {
    "branch": "098"
};

// Run the Actor and wait for it to finish
const run = await client.actor("thescrapelab/shufersal-price-promo-changes").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 = { "branch": "098" }

# Run the Actor and wait for it to finish
run = client.actor("thescrapelab/shufersal-price-promo-changes").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 '{
  "branch": "098"
}' |
apify call thescrapelab/shufersal-price-promo-changes --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thescrapelab/shufersal-price-promo-changes"
        }
    }
}
```

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/g2qUUG8jAbyns57aF/builds/epG5Mh1K1npbWIPzG/openapi.json
