# Nemlig Scraper - Danish Online Grocery Products & Prices (`blackfalcondata/nemlig-scraper`) Actor

Scrape Nemlig grocery products from nemlig.com as structured JSON with shelf prices, current offers, per-unit comparison prices, categories, product images, ingredients, nutrition details and basket totals for Danish grocery price monitoring.

- **URL**: https://apify.com/blackfalcondata/nemlig-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 Nemlig Scraper do?

Nemlig Scraper extracts structured product data from [nemlig.com](https://nemlig.com) — including current shelf price and campaign flags, per-unit comparison pricing, and multi-resolution product images. It supports keyword search and controllable result limits, so you can run the same query consistently over time.

### How to use this actor

- 👉 **Register for a free Apify account** — no credit card required.
- 🎉 Just click **[Sign up free on Apify →](https://console.apify.com/sign-up?fpr=1h3gvi&fp_sid=ctarich)** and complete a quick signup.
- 💰 A free Apify account includes $5 in monthly credits — enough to test this actor.
- ⏳ Scrape during the free trial, with no commitment or upfront payment required.

### Key features

<!-- KEY_FEATURES:START -->
- **🔍 Keyword search or full catalog** — search with `query` ("mælk", "økologisk", "kaffe"...) or leave it empty to scan the Nemlig catalog.
- **🛒 Category-scoped scraping** — use the `category` dropdown for top-level Nemlig categories, `categories` for precise category terms, or paste a Nemlig category URL with `categoryUrls`.
- **💰 Current price + offers** — every row carries shelf `price`, `inStock`, `isOnOffer`, offer text, multi-buy price and offer window when available.
- **⚖️ Per-unit comparison pricing** — `comparePrice`, `compareUnit` and `normalComparePrice` make pack-size comparisons easier.
- **🔖 Offers-only filter** — flip `campaignsOnly` to emit only products currently on offer.
- **🥗 Ingredients + structured nutrition** — get `ingredients` and `nutrition[]` rows whenever Nemlig publishes them.
- **🏷️ Structured unit size, brand + labels** — `unitSize`, `unitMeasure`, `brand` and `labels[]` are separate fields.
- **🛒 Basket monitoring** — track a shopping list by product ID or URL with optional `quantities` and basket totals.
- **📦 Compact mode** — keep shopping essentials only for dashboards, AI agents and small payloads.
- **♻️ Incremental price tracking** — run with `incrementalMode` and a `stateKey` to emit only new, updated or expired products.
<!-- KEY_FEATURES:END -->

### What data can you extract from nemlig.com?

Each result includes Core product fields (`productId`, `articleId`, `name`, `brand`, `categoryLvl0`, `categoryLvl1`, `categoryLvl2`, and `attributes`, and more) and detail fields when enrichment is enabled (`offerDescription`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core 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`** — Keyword search across the Nemlig catalog (e.g. "mælk", "økologisk", "kaffe"). Searches product names, brands and categories. Leave empty to scan the full catalog. Ignored when Basket product IDs are supplied.
- **`productIds`** — Track a specific shopping list by Nemlig product ID or product URL (e.g. ["103368", "701012", "https://www.nemlig.com/minimaelk-0-4-oeko-103368"]). Returns just those products with per-line basket economics. Pair with Quantities to weight each item. (default: `[]`)
- **`quantities`** — Optional per-product counts for basket mode. Accepted forms: object map like {"103368": 2, "701012": 6}, or array of pairs like [{"productId": "103368", "qty": 2}]. Default qty=1 per product when omitted. Ignored outside basket mode. (default: `{}`)
- **`maxResults`** — Maximum total products (0 = unlimited). (default: `200`)
- **`campaignsOnly`** — Only emit products currently on offer. (default: `false`)
- **`inStockOnly`** — Drop products flagged as out of stock. (default: `false`)
- **`compact`** — Keep only shopping essentials (identity, current price, per-unit price, offer flags, units, image) and drop heavy fields (nutrition, ingredients, image variants, category arrays). Smaller rows for AI agents and dashboards. Same row count, same billing. (default: `false`)
- **`incrementalMode`** — Compare against the previous run's state and emit only NEW / UPDATED / EXPIRED products (price changes, new products, delistings). Requires State Key. EXPIRED detection only fires for a basket or a full uncapped catalog scan. (default: `false`)
- **`stateKey`** — Stable id for incremental tracking (e.g. "my-weekly-basket"). Required when Incremental Mode is on so multiple baskets or queries don't share state.
- ...and 21 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 filtered output** — Combine filters with compact mode for a lightweight AI-agent or MCP data source.

→ Core fields only — ideal for piping into LLMs or downstream tools without token overhead.

```json
{
  "query": "mælk",
  "category": "all",
  "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
{
  "productId": "103368",
  "articleId": "103368",
  "name": "Minimælk 0,4% øko.",
  "brand": "Arla",
  "categoryLvl0": "Mejeri",
  "categoryLvl1": "Mælk og fløde",
  "categoryLvl2": "Minimælk",
  "attributes": {
    "Serie": [
      "ØKO"
    ],
    "Oprindelsesland": [
      "Danmark"
    ]
  },
  "origin": "Danmark",
  "price": 12.95,
  "currency": "DKK",
  "comparePrice": 12.95,
  "compareUnit": "kr./Ltr.",
  "isOnOffer": true,
  "offerDescription": "Discount",
  "inStock": true,
  "unitSize": 1,
  "unitMeasure": "l",
  "imageUrl": "https://www.nemlig.com/scommerce/images/minimaelk-0-4-oeko.jpg?i=yZOaOThd/103368",
  "source": "nemlig.com",
  "portalUrl": "https://www.nemlig.com/minimaelk-0-4-oeko-103368",
  "scrapedAt": "2026-06-30T00:00:00.000Z"
}
```

### 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.

### How to scrape nemlig.com

1. Go to [Nemlig Scraper](https://apify.com/blackfalcondata/nemlig-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

- Extract product data from nemlig.com for market research and competitive analysis.
- Track pricing trends across regions and categories over time.
- Monitor new and changed products on scheduled runs without processing the full dataset every time.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape nemlig.com?

Nemlig 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 nemlig.com?

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

#### Does Nemlig 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 Nemlig Scraper with other apps?

Yes. Nemlig 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 Nemlig 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 Nemlig 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 nemlig.com?

This actor extracts publicly available data from nemlig.com. 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/nemlig-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.
- [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=ctarich) — 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).

# Actor input Schema

## `productIds` (type: `array`):

Track a specific shopping list by Nemlig product ID or product URL (e.g. \["103368", "701012", "https://www.nemlig.com/minimaelk-0-4-oeko-103368"]). Returns just those products with per-line basket economics. Pair with Quantities to weight each item.

## `categoryUrls` (type: `array`):

Paste Nemlig category or listing URLs such as https://www.nemlig.com/vin?sortorder=price. The scraper uses the URL path as a category hint and honors sortorder when present.

## `category` (type: `string`):

Limit the run to one top-level Nemlig category. Choose All categories to scan/search without this filter.

## `quantities` (type: `object,array,string`):

Optional per-product counts for basket mode. Accepted forms: object map like {"103368": 2, "701012": 6}, or array of pairs like \[{"productId": "103368", "qty": 2}]. Default qty=1 per product when omitted. Ignored outside basket mode.

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

Keyword search across the Nemlig catalog (e.g. "mælk", "økologisk", "kaffe"). Searches product names, brands and categories. Leave empty to scan the full catalog. Ignored when Basket product IDs are supplied.

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

Advanced category filters. Use category terms or full paths such as \["Mejeri", "Mælk og fløde", "Vin og spiritus > Rødvin > Rødvin Frankrig"]. Leave empty for all matching categories.

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

Maximum total products (0 = unlimited).

## `campaignsOnly` (type: `boolean`):

Only emit products currently on offer.

## `sortOrder` (type: `string`):

Sort search/category results using Nemlig's live sort options. Category URLs with sortorder=price/type/etc. set this automatically unless you choose a value here.

## `filters` (type: `array`):

Optional Nemlig search facets. Use values such as tilbud, oekologisk, premium, or discount/prismatch.

## `inStockOnly` (type: `boolean`):

Drop products flagged as out of stock.

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

Keep only shopping essentials (identity, current price, per-unit price, offer flags, units, image) and drop heavy fields (nutrition, ingredients, image variants, category arrays). Smaller rows for AI agents and dashboards. Same row count, same billing.

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

Drop null, empty-string and empty-array fields from each record before push.

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

Compare against the previous run's state and emit only NEW / UPDATED / EXPIRED products (price changes, new products, delistings). Requires State Key. EXPIRED detection only fires for a basket or a full uncapped catalog scan.

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

Stable id for incremental tracking (e.g. "my-weekly-basket"). Required when Incremental Mode is on so multiple baskets or queries don't share state.

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

Include products with no detected change in the output (default: skip - only changes are emitted).

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

Include products that disappeared since the prior run (delisted or out of stock). Only meaningful for basket or full-catalog runs.

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

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

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

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

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

Discord incoming webhook URL.

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

Slack incoming webhook URL.

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

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

## `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 - for n8n / Make / Zapier / custom backends.

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

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

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

Maximum number of products included in each notification message (1-20).

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

When Incremental Mode is on, only send notifications for products with a lifecycle event (NEW / UPDATED). Unchanged products are still pushed to the dataset but don't trigger alerts.

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

Optional. Pick a connected app under Settings -> API & Integrations to receive your results. Notion is supported today (a run-summary page); other MCP connectors are best-effort as Apify expands its catalog.

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

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## Actor input object example

```json
{
  "productIds": [],
  "categoryUrls": [],
  "category": "all",
  "quantities": {},
  "query": "mælk",
  "categories": [],
  "maxResults": 50,
  "campaignsOnly": false,
  "sortOrder": "default",
  "filters": [],
  "inStockOnly": false,
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notificationLimit": 5,
  "notifyOnlyChanges": 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": 50,
    "compact": false,
    "excludeEmptyFields": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/nemlig-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": 50,
    "compact": False,
    "excludeEmptyFields": False,
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/nemlig-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": 50,
  "compact": false,
  "excludeEmptyFields": false
}' |
apify call blackfalcondata/nemlig-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Nemlig Scraper - Danish Online Grocery Products & Prices",
        "description": "Scrape Nemlig grocery products from nemlig.com as structured JSON with shelf prices, current offers, per-unit comparison prices, categories, product images, ingredients, nutrition details and basket totals for Danish grocery price monitoring.",
        "version": "0.1",
        "x-build-id": "H5A19MVauoNUg1QpA"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/blackfalcondata~nemlig-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-blackfalcondata-nemlig-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~nemlig-scraper/runs": {
            "post": {
                "operationId": "runs-sync-blackfalcondata-nemlig-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~nemlig-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-blackfalcondata-nemlig-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": {
                    "productIds": {
                        "title": "Basket - product IDs or URLs",
                        "type": "array",
                        "description": "Track a specific shopping list by Nemlig product ID or product URL (e.g. [\"103368\", \"701012\", \"https://www.nemlig.com/minimaelk-0-4-oeko-103368\"]). Returns just those products with per-line basket economics. Pair with Quantities to weight each item.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "categoryUrls": {
                        "title": "Category/listing URLs",
                        "type": "array",
                        "description": "Paste Nemlig category or listing URLs such as https://www.nemlig.com/vin?sortorder=price. The scraper uses the URL path as a category hint and honors sortorder when present.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "category": {
                        "title": "Category filter",
                        "enum": [
                            "all",
                            "Tørvarer",
                            "Drikke",
                            "Køl",
                            "Kød og fisk",
                            "Nonfood",
                            "Mejeri",
                            "Pleje",
                            "Vin og spiritus",
                            "Brød",
                            "Konfekture",
                            "Frost",
                            "Frugt og grønt",
                            "Blomster",
                            "Husholdning",
                            "Baby og børn",
                            "Dyremad og tilbehør",
                            "Kiosk",
                            "Ydelser",
                            "Div"
                        ],
                        "type": "string",
                        "description": "Limit the run to one top-level Nemlig category. Choose All categories to scan/search without this filter.",
                        "default": "all"
                    },
                    "quantities": {
                        "title": "Basket - quantities per product",
                        "description": "Optional per-product counts for basket mode. Accepted forms: object map like {\"103368\": 2, \"701012\": 6}, or array of pairs like [{\"productId\": \"103368\", \"qty\": 2}]. Default qty=1 per product when omitted. Ignored outside basket mode.",
                        "default": {}
                    },
                    "query": {
                        "title": "🔍 Search query",
                        "type": "string",
                        "description": "Keyword search across the Nemlig catalog (e.g. \"mælk\", \"økologisk\", \"kaffe\"). Searches product names, brands and categories. Leave empty to scan the full catalog. Ignored when Basket product IDs are supplied."
                    },
                    "categories": {
                        "title": "Category paths / terms",
                        "type": "array",
                        "description": "Advanced category filters. Use category terms or full paths such as [\"Mejeri\", \"Mælk og fløde\", \"Vin og spiritus > Rødvin > Rødvin Frankrig\"]. Leave empty for all matching categories.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 0,
                        "maximum": 50000,
                        "type": "integer",
                        "description": "Maximum total products (0 = unlimited).",
                        "default": 200
                    },
                    "campaignsOnly": {
                        "title": "Offers only",
                        "type": "boolean",
                        "description": "Only emit products currently on offer.",
                        "default": false
                    },
                    "sortOrder": {
                        "title": "Sort order",
                        "enum": [
                            "default",
                            "recommended",
                            "navn",
                            "brand",
                            "price",
                            "dyrest",
                            "type"
                        ],
                        "type": "string",
                        "description": "Sort search/category results using Nemlig's live sort options. Category URLs with sortorder=price/type/etc. set this automatically unless you choose a value here.",
                        "default": "default"
                    },
                    "filters": {
                        "title": "Search filters",
                        "type": "array",
                        "description": "Optional Nemlig search facets. Use values such as tilbud, oekologisk, premium, or discount/prismatch.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "inStockOnly": {
                        "title": "In stock only",
                        "type": "boolean",
                        "description": "Drop products flagged as out of stock.",
                        "default": false
                    },
                    "compact": {
                        "title": "Compact Output",
                        "type": "boolean",
                        "description": "Keep only shopping essentials (identity, current price, per-unit price, offer flags, units, image) and drop heavy fields (nutrition, ingredients, image variants, category arrays). Smaller rows for AI agents and dashboards. Same row count, same billing.",
                        "default": false
                    },
                    "excludeEmptyFields": {
                        "title": "Exclude empty fields",
                        "type": "boolean",
                        "description": "Drop null, empty-string and empty-array fields from each record before push.",
                        "default": false
                    },
                    "incrementalMode": {
                        "title": "Incremental Mode",
                        "type": "boolean",
                        "description": "Compare against the previous run's state and emit only NEW / UPDATED / EXPIRED products (price changes, new products, delistings). Requires State Key. EXPIRED detection only fires for a basket or a full uncapped catalog scan.",
                        "default": false
                    },
                    "stateKey": {
                        "title": "State Key",
                        "type": "string",
                        "description": "Stable id for incremental tracking (e.g. \"my-weekly-basket\"). Required when Incremental Mode is on so multiple baskets or queries don't share state."
                    },
                    "emitUnchanged": {
                        "title": "♻️ Emit Unchanged",
                        "type": "boolean",
                        "description": "Include products with no detected change in the output (default: skip - only changes are emitted).",
                        "default": false
                    },
                    "emitExpired": {
                        "title": "⚰️ Emit Expired",
                        "type": "boolean",
                        "description": "Include products that disappeared since the prior run (delisted or out of stock). Only meaningful for basket or full-catalog runs.",
                        "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 (e.g. \"-100123456789\"). 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."
                    },
                    "whatsappAccessToken": {
                        "title": "WhatsApp Access Token",
                        "type": "string",
                        "description": "WhatsApp Cloud API token. Recipient must have messaged the business number within the last 24h."
                    },
                    "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 - for n8n / Make / Zapier / custom backends."
                    },
                    "webhookHeaders": {
                        "title": "Webhook Headers",
                        "type": "object",
                        "description": "Optional JSON object of custom headers (e.g. {\"Authorization\":\"Bearer ...\"})."
                    },
                    "notificationLimit": {
                        "title": "Max Items Per Notification",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Maximum number of products included in each notification message (1-20).",
                        "default": 5
                    },
                    "notifyOnlyChanges": {
                        "title": "Notify Only Changes",
                        "type": "boolean",
                        "description": "When Incremental Mode is on, only send notifications for products with a lifecycle event (NEW / UPDATED). Unchanged products are still pushed to the dataset but don't trigger alerts.",
                        "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. Notion is supported today (a run-summary page); other MCP connectors are best-effort as Apify expands its catalog."
                    },
                    "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, if that app requires one."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
