# Coop365 Scraper - Danish Grocery Products & Prices (`blackfalcondata/coop365-scraper`) Actor

Scrape current Coop365 leaflet rows from 365discount.coop.dk with structured names, prices, unit quantities, comparison prices, validity windows, catalog context and product links for Danish grocery price tracking.

- **URL**: https://apify.com/blackfalcondata/coop365-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

### What does Coop365 Scraper do?

Coop365 Scraper extracts structured rows from current [365discount.coop.dk](https://365discount.coop.dk/) leaflet offers. It returns product IDs, offer IDs, names, DKK prices, unit quantities, validity windows and product or leaflet links. It is built for tracking advertised grocery offers, not for dumping a full shelf catalog.

**New to Apify?** [Sign up free](https://console.apify.com/sign-up?fpr=1h3gvi&fp_sid=ctaplain) and use the included $5 monthly platform credit to test this actor.

### Key features

<!-- KEY_FEATURES:START -->
- **🛒 Current Coop365 leaflet products** — export active Coop365 leaflet rows with structured product IDs where the leaflet exposes them, plus offer IDs, names, prices, validity windows and product or leaflet links.
- **💰 Product price fields** — each row carries the active offer `price` in DKK, optional `normalPrice`, computed `discountPercent` and the offer validity window for price monitoring.
- **⚖️ Per-unit comparison pricing** — when the leaflet exposes enough quantity data, the actor computes `comparePrice` and `compareUnit` such as kr/kg, kr/l or kr/pcs.
- **🔍 Keyword filtering** — use `query` to filter current rows by product name, offer title or description text. Leave it empty to export all active Coop365 leaflet rows in one run.
- **📦 Compact mode** — drop page coordinates and secondary catalog fields when you only need essential offer data for dashboards, agents or LLM workflows.
- **♻️ Incremental mode** — track leaflet rows by stable row ID and emit `changeType`, `firstSeenAt`, `lastSeenAt` and `expiredAt` for price monitoring and weekly offer change detection.
- **🔔 Notifications** — Send product alerts to Telegram, Discord, Slack, WhatsApp or a generic webhook, with optional change-only notifications when incremental mode is enabled.
- **🔌 MCP connectors** — Send scraped product rows to a connected app such as Notion, Sheets, Slack or an issue tracker through Apify MCP connectors.
<!-- KEY_FEATURES:END -->

### What data can you extract from 365discount.coop.dk?

Each result is a Coop365 leaflet row with fields such as `leafletRowKey`, `productId`, `offerId`, `name`, `description`, `price`, `currency`, `quantityText`, `comparePrice`, `validFrom`, `validTo`, `changeType`, `firstSeenAt`, `lastSeenAt`, `expiredAt`, `productImageUrl`, `productUrl` and `viewerUrl`. Product IDs and product images are filled for leaflet product rows where the source exposes product-level data; paged-only catalog rows are split into source-exposed choices such as `A, B eller C` when the leaflet text names them, otherwise they remain offer-level rows without `productId`. In standard mode, catalog context such as catalog tags, publication types and hotspot coordinates is included where available. In compact mode, only the core product fields are returned.


### Input

The main inputs are a search keyword and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`query`** — Optional keyword filter across product names and descriptions, e.g. "mælk", "kaffe", "økologisk". Leave empty to export all matching leaflet products.
- **`catalogIds`** — Optional exact catalog IDs. Leave empty to use active Coop365 catalogs automatically. (default: `[]`)
- **`maxResults`** — Maximum number of product rows to emit. Use 0 for unlimited. (default: `0`)
- **`sortBy`** — Optional ordering before maxResults is applied. (default: `"discount-desc"`)
- **`includeCatalogInserts`** — Include catalog inserts such as wine or themed leaflets when they are active. (default: `true`)
- **`includeFutureCatalogs`** — Include catalogs whose validity window starts in the future. (default: `false`)
- **`includeExpiredCatalogs`** — Include catalogs whose validity window already ended. (default: `false`)
- **`incrementalMode`** — Compare leaflet rows against previous run state and emit NEW, UPDATED and optionally EXPIRED rows. (default: `false`)
- **`stateKey`** — Stable identifier for incremental tracking. Leave empty to auto-generate from query, catalog IDs, sorting, maxResults and catalog filters.
- **`emitUnchanged`** — Include rows with no detected change in incremental output. (default: `false`)
- **`emitExpired`** — Include rows that disappeared since the previous run for the same state key. (default: `false`)
- **`telegramToken`** — Telegram bot token from @BotFather. Required for Telegram notifications.
- ...and 14 more parameters

### Input examples

**Basic search** — Keyword-driven search with a result cap.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "query": "mælk",
  "maxResults": 50
}
````

**Incremental tracking** — Only emit products that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "mælk",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "mælk-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "query": "mælk",
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured product records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example product record

```json
{
  "leafletRowKey": "9e37bd05345746989f0012c76d3c3204c0c0ebde",
  "offerId": "NQPVNeHFbd1t0cdDDxq65",
  "name": "Coop solsikkerugbrød",
  "offerTitle": "Coop solsikkerugbrød",
  "price": 5.95,
  "normalPrice": 7.95,
  "currency": "DKK",
  "discountPercent": 25.2,
  "quantityText": "500 g",
  "unitSizeFrom": 500,
  "unitSizeTo": 500,
  "unitMeasure": "g",
  "piecesFrom": 1,
  "piecesTo": 1,
  "comparePrice": 11.9,
  "compareUnit": "kg",
  "validFrom": "2026-06-24T22:00:00.000Z",
  "validTo": "2026-07-01T21:59:59.000Z",
  "publishedAt": "2026-06-22T22:01:00.000Z",
  "catalogId": "kpppiXEO",
  "catalogLabel": "Uge 26",
  "catalogValidFrom": "2026-06-24T22:00:00.000Z",
  "catalogValidTo": "2026-07-01T21:59:59.000Z",
  "catalogTypes": [
    "paged"
  ],
  "page": 3,
  "pageImageUrl": "https://image-transformer-api.tjek.com/?u=s3%3A%2F%2Fsgn-prd-assets%2Fuploads%2FkpppiXEO%2Fp-3.webp&w=700&s=1fca663de9e203d68cc049e597360568",
  "pageThumbUrl": "https://image-transformer-api.tjek.com/?u=s3%3A%2F%2Fsgn-prd-assets%2Fuploads%2FkpppiXEO%2Fp-3.webp&w=250&s=20b4643e7bf2fc73236eb03c297fe803",
  "viewerUrl": "https://publication-viewer.tjek.com/v1/embeds/kpppiXEO",
  "hotspotBox": [
    [
      0.11,
      0.8800011264
    ],
    [
      0.11,
      1.3266683648
    ],
    [
      0.87,
      1.3266683648
    ],
    [
      0.87,
      0.8800011264
    ]
  ],
  "scrapedAt": "2026-06-30T20:57:39.354Z",
  "changeType": "NEW",
  "firstSeenAt": "2026-06-30T20:57:39.354Z",
  "lastSeenAt": "2026-06-30T20:57:39.354Z"
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `firstSeenAt`, `lastSeenAt` — ISO-8601 timestamps tracking the listing across runs.

### How to scrape 365discount.coop.dk

1. Go to [Coop365 Scraper](https://apify.com/blackfalcondata/coop365-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword.
3. Set `maxResults` to control how many results you need.
4. Click **Start** and wait for the run to finish.
5. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Track Coop365 advertised products and weekly price changes.
- Build dashboards for Danish grocery tilbud and campaign monitoring.
- Export leaflet product data to spreadsheets, BI tools, connected apps or price-alert workflows.
- Send Telegram, Discord, Slack, WhatsApp or webhook alerts when monitored rows change.
- Feed compact product records into AI agents or automated comparison pipelines.

### How much does it cost to scrape 365discount.coop.dk?

Coop365 Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.01 per run
- **Per result:** $0.002 per product record

Example costs:

- 10 results: **$0.03**
- 25 results: **$0.06**
- 100 results: **$0.21**
- 200 results: **$0.41**
- 500 results: **$1.01**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of products that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 250 results per run, daily polling (30 runs/month). Event-pricing examples scale linearly with result count.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.51 | $0.04 | $0.47 (93%) | $1.05 |
| 15% — moderate broad query | $0.51 | $0.08 | $0.43 (83%) | $2.55 |
| 30% — high-volume aggregator | $0.51 | $0.16 | $0.35 (69%) | $4.80 |

Full re-scrape monthly cost at daily polling: $15.30. First month with incremental costs $1.53 / $2.97 / $5.15 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage (compute and proxies) is billed separately by Apify based on actual consumption. Incremental runs consume less on result processing, though fixed per-run overhead stays the same.

### FAQ

#### How many results can I get from 365discount.coop.dk?

The number of results depends on the search query and available products on 365discount.coop.dk. Use the `maxResults` parameter to control how many results are returned per run.

#### Does Coop365 Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed products on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate Coop365 Scraper with other apps?

Yes. Coop365 Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use Coop365 Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use Coop365 Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape 365discount.coop.dk?

This actor extracts publicly available data from 365discount.coop.dk. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/coop365-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [Bilka Scraper - Danish Grocery Products & Prices](https://apify.com/blackfalcondata/bilka-scraper?fpr=1h3gvi) — Scrape Bilka (Salling Group), Denmark's largest hypermarket chain. Get the full product catalog.
- [Føtex Scraper - Danish Grocery Products & Prices](https://apify.com/blackfalcondata/foetex-scraper?fpr=1h3gvi) — Scrape Føtex (Salling Group), one of Denmark's largest supermarket chains. Get the full product.
- [Lidl Scraper - European Grocery Products & Prices](https://apify.com/blackfalcondata/lidl-scraper?fpr=1h3gvi) — Scrape Lidl grocery products and prices across 28 European markets, each row tagged by country. Get.
- [Nemlig Scraper - Danish Online Grocery Products & Prices](https://apify.com/blackfalcondata/nemlig-scraper?fpr=1h3gvi) — Scrape Nemlig grocery products from nemlig.com as structured JSON with shelf prices, current.
- [Netto Scraper - Danish Grocery Products & Prices](https://apify.com/blackfalcondata/netto-scraper?fpr=1h3gvi) — Scrape Netto (Salling Group), Denmark's largest discount-grocery chain. Get the full product.
- [REMA 1000 Scraper - Danish Grocery Products & Prices](https://apify.com/blackfalcondata/rema1000-scraper?fpr=1h3gvi) — Scrape rema1000.dk — Denmark's largest discount-grocery chain with 3900 SKUs. Search products by.
- [SuperBrugsen Scraper - Danish Grocery Products & Prices](https://apify.com/blackfalcondata/superbrugsen-scraper?fpr=1h3gvi) — Scrape current SuperBrugsen leaflet rows from superbrugsen.dk with structured names, prices, unit.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi\&fp_sid=ctaplain) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

### Disclaimer

This actor currently covers source-exposed Coop365 leaflet rows. It does not claim to return the full in-store shelf catalog, historical pricing, categories or store-specific availability.

# Actor input Schema

## `query` (type: `string`):

Optional keyword filter across product names and descriptions, e.g. "mælk", "kaffe", "økologisk". Leave empty to export all matching leaflet products.

## `catalogIds` (type: `array`):

Optional exact catalog IDs. Leave empty to use active Coop365 catalogs automatically.

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

Maximum number of product rows to emit. Use 0 for unlimited.

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

Optional ordering before maxResults is applied.

## `includeCatalogInserts` (type: `boolean`):

Include catalog inserts such as wine or themed leaflets when they are active.

## `includeFutureCatalogs` (type: `boolean`):

Include catalogs whose validity window starts in the future.

## `includeExpiredCatalogs` (type: `boolean`):

Include catalogs whose validity window already ended.

## `incrementalMode` (type: `boolean`):

Compare leaflet rows against previous run state and emit NEW, UPDATED and optionally EXPIRED rows.

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

Stable identifier for incremental tracking. Leave empty to auto-generate from query, catalog IDs, sorting, maxResults and catalog filters.

## `emitUnchanged` (type: `boolean`):

Include rows with no detected change in incremental output.

## `emitExpired` (type: `boolean`):

Include rows that disappeared since the previous run for the same state key.

## `telegramToken` (type: `string`):

Telegram bot token from @BotFather. Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID. Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL.

## `notificationLimit` (type: `integer`):

Maximum number of product rows included in notification messages.

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED rows.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API token. Recipient must have messaged the business number within the last 24 hours.

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID.

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without +, e.g. "4512345678".

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers, e.g. {"Authorization":"Bearer ..."}.

## `compact` (type: `boolean`):

Keep core product fields and drop page coordinates, tags and catalog detail fields.

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty strings, empty arrays and empty objects from each output row.

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team name or ID the summary issue is created under.

## Actor input object example

```json
{
  "query": "mælk",
  "catalogIds": [],
  "maxResults": 500,
  "sortBy": "discount-desc",
  "includeCatalogInserts": true,
  "includeFutureCatalogs": false,
  "includeExpiredCatalogs": false,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notificationLimit": 10,
  "notifyOnlyChanges": false,
  "compact": false,
  "excludeEmptyFields": false
}
```

# 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 = {
    "query": "mælk",
    "maxResults": 500,
    "compact": false,
    "excludeEmptyFields": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/coop365-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 = {
    "query": "mælk",
    "maxResults": 500,
    "compact": False,
    "excludeEmptyFields": False,
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/coop365-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "mælk",
  "maxResults": 500,
  "compact": false,
  "excludeEmptyFields": false
}' |
apify call blackfalcondata/coop365-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=blackfalcondata/coop365-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Coop365 Scraper - Danish Grocery Products & Prices",
        "description": "Scrape current Coop365 leaflet rows from 365discount.coop.dk with structured names, prices, unit quantities, comparison prices, validity windows, catalog context and product links for Danish grocery price tracking.",
        "version": "0.1",
        "x-build-id": "rxKhK2vOh3OmoYcwe"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/blackfalcondata~coop365-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-blackfalcondata-coop365-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/blackfalcondata~coop365-scraper/runs": {
            "post": {
                "operationId": "runs-sync-blackfalcondata-coop365-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/blackfalcondata~coop365-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-blackfalcondata-coop365-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "query": {
                        "title": "🔍 Search query",
                        "type": "string",
                        "description": "Optional keyword filter across product names and descriptions, e.g. \"mælk\", \"kaffe\", \"økologisk\". Leave empty to export all matching leaflet products."
                    },
                    "catalogIds": {
                        "title": "📒 Catalog IDs",
                        "type": "array",
                        "description": "Optional exact catalog IDs. Leave empty to use active Coop365 catalogs automatically.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "maxResults": {
                        "title": "💯 Max Results",
                        "minimum": 0,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of product rows to emit. Use 0 for unlimited.",
                        "default": 0
                    },
                    "sortBy": {
                        "title": "↕️ Sort by",
                        "enum": [
                            "discount-desc",
                            "price-asc",
                            "price-desc",
                            "compare-asc",
                            "compare-desc",
                            "name-asc",
                            "valid-from-asc",
                            "valid-to-asc"
                        ],
                        "type": "string",
                        "description": "Optional ordering before maxResults is applied.",
                        "default": "discount-desc"
                    },
                    "includeCatalogInserts": {
                        "title": "🧾 Include inserts",
                        "type": "boolean",
                        "description": "Include catalog inserts such as wine or themed leaflets when they are active.",
                        "default": true
                    },
                    "includeFutureCatalogs": {
                        "title": "🗓️ Include future catalogs",
                        "type": "boolean",
                        "description": "Include catalogs whose validity window starts in the future.",
                        "default": false
                    },
                    "includeExpiredCatalogs": {
                        "title": "📦 Include expired catalogs",
                        "type": "boolean",
                        "description": "Include catalogs whose validity window already ended.",
                        "default": false
                    },
                    "incrementalMode": {
                        "title": "♻️ Incremental Mode",
                        "type": "boolean",
                        "description": "Compare leaflet rows against previous run state and emit NEW, UPDATED and optionally EXPIRED rows.",
                        "default": false
                    },
                    "stateKey": {
                        "title": "🔑 State Key",
                        "type": "string",
                        "description": "Stable identifier for incremental tracking. Leave empty to auto-generate from query, catalog IDs, sorting, maxResults and catalog filters."
                    },
                    "emitUnchanged": {
                        "title": "📤 Emit Unchanged",
                        "type": "boolean",
                        "description": "Include rows with no detected change in incremental output.",
                        "default": false
                    },
                    "emitExpired": {
                        "title": "🚮 Emit Expired",
                        "type": "boolean",
                        "description": "Include rows that disappeared since the previous run for the same state key.",
                        "default": false
                    },
                    "telegramToken": {
                        "title": "🔑 Telegram Bot Token",
                        "type": "string",
                        "description": "Telegram bot token from @BotFather. Required for Telegram notifications."
                    },
                    "telegramChatId": {
                        "title": "💬 Telegram Chat ID",
                        "type": "string",
                        "description": "Telegram chat or channel ID. Required when telegramToken is set."
                    },
                    "discordWebhookUrl": {
                        "title": "🎮 Discord Webhook URL",
                        "type": "string",
                        "description": "Discord incoming webhook URL."
                    },
                    "slackWebhookUrl": {
                        "title": "💼 Slack Webhook URL",
                        "type": "string",
                        "description": "Slack incoming webhook URL."
                    },
                    "notificationLimit": {
                        "title": "📊 Max Items Per Notification",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Maximum number of product rows included in notification messages.",
                        "default": 10
                    },
                    "notifyOnlyChanges": {
                        "title": "🔄 Notify Only Changes",
                        "type": "boolean",
                        "description": "When Incremental Mode is on, only send notifications for NEW and UPDATED rows.",
                        "default": false
                    },
                    "whatsappAccessToken": {
                        "title": "📱 WhatsApp Access Token",
                        "type": "string",
                        "description": "WhatsApp Cloud API token. Recipient must have messaged the business number within the last 24 hours."
                    },
                    "whatsappPhoneNumberId": {
                        "title": "📞 WhatsApp Phone Number ID",
                        "type": "string",
                        "description": "Your WhatsApp Business phone-number ID."
                    },
                    "whatsappTo": {
                        "title": "📲 WhatsApp Recipient",
                        "type": "string",
                        "description": "Recipient phone in E.164 format without +, e.g. \"4512345678\"."
                    },
                    "webhookUrl": {
                        "title": "🪝 Generic Webhook URL",
                        "type": "string",
                        "description": "Receives a JSON POST with {metadata, items} after each run."
                    },
                    "webhookHeaders": {
                        "title": "📋 Webhook Headers",
                        "type": "object",
                        "description": "Optional JSON object of custom headers, e.g. {\"Authorization\":\"Bearer ...\"}."
                    },
                    "compact": {
                        "title": "📦 Compact Output",
                        "type": "boolean",
                        "description": "Keep core product fields and drop page coordinates, tags and catalog detail fields.",
                        "default": false
                    },
                    "excludeEmptyFields": {
                        "title": "🚿 Exclude empty fields",
                        "type": "boolean",
                        "description": "Drop null, empty strings, empty arrays and empty objects from each output row.",
                        "default": false
                    },
                    "appConnector": {
                        "title": "Send results to Notion or another connected app",
                        "type": "string",
                        "description": "Optional. Pick a connected app under Settings → API & Integrations to receive your results."
                    },
                    "mcpIssueTeam": {
                        "title": "Issue tracker team",
                        "type": "string",
                        "description": "Only when the connected app is an issue tracker: the team name or ID the summary issue is created under."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
