# SPAR Denmark Scraper — Grocery Prices by Store (`blackfalcondata/spar-dk-scraper`) Actor

Scrape Danish grocery prices by store from SPAR. Each shop prices its own shelves, so you choose the store and get the price a shopper actually pays there. The everyday price and the offer price stay separate fields. Most rows also carry an EAN and a unit price.

- **URL**: https://apify.com/blackfalcondata/spar-dk-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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 SPAR Denmark Scraper do?

SPAR Denmark Scraper collects Danish grocery prices by store for SPAR (spar.dk). Each SPAR shop prices its own shelves and runs its own storefront, so the actor takes a shop address and returns that store's everyday shelf price with the offer price as a separate field, plus EAN, unit price, pack size, category, store id and a link to the product page in that shop. Ingredients and a full nutrition table are available as an opt-in per product.

### 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)** 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

- **🏪 Prices for the store you pick, not a national average:** SPAR prices PER STORE, and the difference is not small: across three stores on one day, 78% of the products they share carried different prices. Give the shop address (storeUrl, e.g. https://arden.spar.dk) and every row carries that store's own shelf price plus storeId, storeName and a portalUrl link straight to the product page in that shop, so a price you show a shopper is the price they will actually pay at SPAR Arden rather than an average of somewhere else.
- **💰 Shelf price and offer price, never merged:** every row carries the store's everyday shelf price in price and, when the product is on offer, offerPrice beside it - never folded together, because a comparison needs both. Multi-buy offers are handled properly: this platform prices "2 for 35" as offerPrice 35 with offerQuantity 2, so a 500 g line at 21.95 normal would read as DEARER than normal if you took the offer figure at face value. offerUnitPrice carries the per-pack price (17.50) and offerComparePrice the per-kg figure, both divided by the quantity. 37.4% of live offers measured on one store were multi-buy.
- **⚖️ Per-unit comparison pricing:** `comparePrice` + `compareUnit` (kr/kg, kr/ltr, kr/stk) on every product — the same number consumer-law requires on the shelf label. Apples-to-apples comparisons across pack sizes without writing your own normalizer.
- **🔢 EAN / UPC barcodes:** `barcodes[]` on every product — match REMA SKUs to your existing inventory, ERP, or competitive-pricing dataset without name-based fuzzy joins. Multiple codes per SKU when the supplier ships variants under different barcodes.
- **🏷️ Structured unit size + brand:** `unitSize`, `unitMeasure`, and `brand` parsed from the shelf-label string — so "1 LTR. / REMA 1000" becomes `1` + `ltr` + `REMA 1000` as separate fields. No regex on the subtitle. 14 unit tokens recognized across the full catalog (gr / ml / stk / cl / ltr / kg / par / mtr / pk / sæt / bakke / bdt / pose / rl) at 100% parse rate.
- **🛒 Department-scoped scraping:** restrict a run to one or more departments (frugt & grønt, frost, mejeri, drikkevarer, slik …) via `departmentIds`. Every product carries `departmentId` + `departmentName` so dashboards filter cleanly without keyword guessing.
- **🥗 Ingredients + structured nutrition:** every product row carries the full `ingredients` text (allergens already stripped of inline HTML markup) plus a structured `nutrition[]` array — name/value pairs for energy, fat, saturated fat, carbs, sugars, fibre, protein, salt — pulled straight from the compliance-grade source the chain itself publishes. No regex over marketing prose.
- **🔍 Keyword search:** search the catalog with `query` ("mælk", "økologisk", "pasta", brand names …) — matches across product names, descriptions, and category terms. Pair with Incremental Mode to monitor every product that matches a query, even as new SKUs enter the catalog.
- **♻️ Incremental mode:** daily runs emit only products whose price, campaign flag, or validity window changed since the prior run — the rest stay UNCHANGED and are filtered out by default. Perfect for price-tracking apps and tilbud-alert pipelines. Saves 80–95% on recurring monitoring.
- **📦 Compact mode:** drop the heavy fields (ingredients text, full nutrition table, image variants, manufacturer block, label objects, price history) and keep shopping essentials: identity, current price, per-unit price, campaign flags + discount %, parsed unit size + brand, and basket line totals. Cuts each row by ~77% — ideal for AI agents, MCP servers, and LLM context windows where allergen text is noise.
- **🔌 MCP connectors:** export your results into Notion via Apify's MCP connectors — a clean run-summary page, no glue code. Opt-in via the App connector field; deterministic field-mapping, no AI. Built on Apify's connector framework, so more destinations open up as their catalog grows.

### What data can you extract from spar.dk?

Each result includes Core product fields (`listingId`, `searchQuery`, `contentQuality`, `scrapedAt`, `changeType`, `productId`, `ean`, and `name`, and more) and detail fields when enrichment is enabled (`detailFetched`). 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.

Enable detail enrichment in the input to fetch each record's detail page — extra fields the search results omit.

### Input

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

Key parameters:

- **`storeUrl`** — Address of the SPAR shop you want prices from, e.g. https://arden.spar.dk. Prices differ from store to store, so this decides which store's shelf prices you get.
- **`merchantId`** — Numeric store number, if you already know it (SPAR Arden is 1243). Optional when you give a shop address above. Do not give both for different stores.
- **`query`** — Only return products whose name contains this text (case-insensitive). Leave empty to get the store's entire assortment. Paste a JSON array such as \["kaffe","mælk"] to match any of several terms.
- **`categoryId`** — Optional. Restrict the scan to one category of the store's category tree. Leave empty to scan every category.
- **`maxResults`** — Maximum number of products to return (0 = the whole assortment). Set 0 for the whole store. (default: `50`)
- **`compact`** — Core fields only (for AI-agent/MCP workflows). (default: `false`)
- **`excludeEmptyFields`** — Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards. (default: `false`)
- **`incrementalMode`** — Compare against the previous run and report what changed — this is how you track price movements over time. stateKey is optional; it defaults to a value derived from the store, category and filter so different scans never share state. (default: `false`)
- **`stateKey`** — Optional. Stable identifier for the tracked product universe. Leave empty to auto-generate from the store, category and filter.
- **`emitUnchanged`** — When incremental, also emit products whose price and details are identical to the previous run. (default: `false`)
- **`emitExpired`** — When incremental, also emit products that were on the shelf in the previous run and have since disappeared. Forces a full scan of the assortment. (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": "kaffe",
  "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": "kaffe",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "kaffe-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": "kaffe",
  "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
{
  "listingId": "a60bbac6ef5234e841d50e47cf2adeea13af7a86350d73ccc2db4e8936f0f336",
  "contentQuality": "full",
  "detailFetched": true,
  "scrapedAt": "2026-09-08T20:53:07.993Z",
  "source": "spar.dk",
  "contentHash": "aca7f37811e282a9e26d0b2d310e9b647965c62538fbc8d29daf6c60ac68c2ac",
  "productId": 381181155,
  "ean": "5010029231526",
  "name": "Marvel Chokolate Stars",
  "price": 39.95,
  "currency": "DKK",
  "isOnOffer": false,
  "packSize": "375 GR",
  "unitSize": 375,
  "unitMeasure": "gr",
  "comparePrice": 106.53,
  "compareUnit": "kg",
  "brand": "Conaxess Trade Dk Food",
  "categoryId": 2,
  "categoryName": "Morgenmad",
  "categoryPath": "Kolonial > Morgenmad",
  "chain": "spar",
  "storeId": 1243,
  "storeName": "SPAR Arden",
  "portalUrl": "https://arden.spar.dk/produkter/marvel-chokolate-stars-5010029231526",
  "inStock": true,
  "ageRestricted": false,
  "imageUrl": "https://dagrofa-dam.s3.eu-central-1.amazonaws.com/PROD/600x600/5010029231526.600x600.jpg",
  "ingredients": "Ingredienser: FuldkornsHVEDE (78%), sukker, maltodextrin, fedtreduceret kakaopulver# (4.5%), salt, aroma, niacin, jern, riboflavin (B2), thiamin (B1), D-vitamin. #Rainforest Alliance-certificeret.",
  "allergens": [
    "Glutenholdigt korn",
    "Hvede (glutenholdigt korn)"
  ],
  "nutrition": [
    {
      "name": "Energi",
      "quantity": "1559 Kilojoule"
    },
    {
      "name": "Fedt",
      "quantity": "2.1 Gram"
    },
    {
      "name": "Heraf mættede fedtsyrer",
      "quantity": "0.5 Gram"
    },
    {
      "name": "Kulhydrater",
      "quantity": "73 Gram"
    },
    {
      "name": "Heraf sukkerarter",
      "quantity": "20 Gram"
    },
    "... 8 more items"
  ],
  "producer": "Conaxess Trade Dk Food",
  "countryOfOrigin": "England",
  "storageInstructions": "OPPBEVARES TØRT, IKKE FOR VARMT OG IKKE I NÆRHETEN AV VARER MED STERK LUKT / STÆRKT LUGTENDE MADVARER."
}
```

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

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

### Use cases

- Extract product data from spar.dk 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 spar.dk?

SPAR Denmark 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**

> **Platform usage is billed on top of these prices.** The figures above are Apify event fees only. Compute units and proxy traffic are billed separately by Apify at your actual consumption, and for proxy- or browser-heavy workloads they can exceed the event fees. What you actually pay depends on your own input — how many results you request, whether detail enrichment is on, the run memory you choose, and your proxy settings — so it cannot be stated as a fixed figure here. Every run reports its exact platform usage on the run detail page.
>
> The **Actor Start** event is charged once per GB of run memory (minimum one), so a run configured with 2 GB is charged two start events rather than one.

#### 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: 200 products per run, daily polling (30 runs/month). Costs scale linearly with the number of products.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.41 | $0.03 | $0.38 (93%) | $0.90 |
| 15% — moderate broad query | $0.41 | $0.07 | $0.34 (83%) | $2.10 |
| 30% — high-volume aggregator | $0.41 | $0.13 | $0.28 (68%) | $3.90 |

Full re-scrape monthly cost at the same cadence: $12.30. First month with incremental costs $1.28 / $2.44 / $4.18 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage (see the note above) also applies to these figures. Incremental runs consume less of it on result processing, though the fixed per-run overhead stays the same.

### FAQ

#### How many results can I get from spar.dk?

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

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

Yes. SPAR Denmark 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 SPAR Denmark 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 SPAR Denmark 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 spar.dk?

This actor extracts publicly available data from spar.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/spar-dk-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [ALDI Scraper — Grocery Prices, 14 Countries](https://apify.com/blackfalcondata/aldi-scraper?fpr=1h3gvi) — Scrape ALDI grocery products and prices across 14 countries — the UK, Ireland, Germany, Austria,.
- [ALDI US Scraper — Grocery Prices by ZIP Code](https://apify.com/blackfalcondata/aldi-us-scraper?fpr=1h3gvi) — Scrape aldi.us grocery products with prices, sizes, brands, categories, per-unit pricing and stock..
- [Bilka Scraper \[Just 💰$2\] — Danish Grocery Prices](https://apify.com/blackfalcondata/bilka-scraper?fpr=1h3gvi) — 💰 $2 per 1,000 products. Scrape bilka.dk — Salling Group's Danish hypermarket chain — full product.
- [BILLA Scraper — Austrian Grocery Prices & Promotions](https://apify.com/blackfalcondata/billa-scraper?fpr=1h3gvi) — Scrape shop.billa.at (BILLA Austria) for grocery prices, unit prices and promotions. Search by.
- [Carrefour MAF Scraper \[Just 💰$2\] — Groceries (7 Markets)](https://apify.com/blackfalcondata/carrefour-maf-scraper?fpr=1h3gvi) — 💰 $2 per 1,000 items. Scrape Carrefour MAF groceries across 7 Majid Al Futtaim markets — UAE ·.
- [Carrefour Scraper \[Just 💰$2\] — France Grocery Prices](https://apify.com/blackfalcondata/carrefour-scraper?fpr=1h3gvi) — 💰 $2 per 1,000 products. Scrape carrefour.fr — Carrefour France groceries with current prices ·.
- [Coop365 Scraper \[Just 💰$2\] — Danish discount grocery](https://apify.com/blackfalcondata/coop365-scraper?fpr=1h3gvi) — 💰 $2 per 1,000 products. Scrape 365discount.coop.dk — leaflet names & prices · unit quantities &.
- [Føtex Scraper \[Just 💰$2\] — Danish Grocery Prices](https://apify.com/blackfalcondata/foetex-scraper?fpr=1h3gvi) — 💰 $2 per 1,000 products. Scrape foetex.dk — Salling Group's Danish supermarket chain — full.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi) — 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 accesses only publicly available data on spar.dk. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with SPAR Denmark's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is not affiliated with, endorsed by, or connected to SPAR Denmark.

### Search keywords

spar scraper, spar api, apify spar, spar data extraction, spar denmark scraper, spar denmark api, apify spar denmark, spar denmark data extraction, spar.dk scraper, spar.dk data, spar.dk api.

# Actor input Schema

## `storeUrl` (type: `string`):

Address of the SPAR shop you want prices from, e.g. https://arden.spar.dk. Prices differ from store to store, so this decides which store's shelf prices you get.

## `merchantId` (type: `integer`):

Numeric store number, if you already know it (SPAR Arden is 1243). Optional when you give a shop address above. Do not give both for different stores.

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

Only return products whose name contains this text (case-insensitive). Leave empty to get the store's entire assortment. Paste a JSON array such as \["kaffe","mælk"] to match any of several terms.

## `categoryId` (type: `integer`):

Optional. Restrict the scan to one category of the store's category tree. Leave empty to scan every category.

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

Maximum number of products to return (0 = the whole assortment). Set 0 for the whole store.

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

Core fields only (for AI-agent/MCP workflows).

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

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

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

Compare against the previous run and report what changed — this is how you track price movements over time. stateKey is optional; it defaults to a value derived from the store, category and filter so different scans never share state.

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

Optional. Stable identifier for the tracked product universe. Leave empty to auto-generate from the store, category and filter.

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

When incremental, also emit products whose price and details are identical to the previous run.

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

When incremental, also emit products that were on the shelf in the previous run and have since disappeared. Forces a full scan of the assortment.

## `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. Server Settings → Integrations → Webhooks → New Webhook.

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

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `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 new and changed products. Has no effect outside incremental mode.

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

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

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

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

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

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

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

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

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

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

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

Optional. Pick a connected app under Settings → API & Integrations to receive your results. Best-effort across MCP connectors 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.

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

Product page addresses to look up directly, e.g. https://arden.spar.dk/produkter/… . Each is resolved by the product code in its address, so this costs one request per link instead of scanning the store. Give the shop address too, so prices come from the store you mean. When set, the assortment scan is skipped.

## `includeDetails` (type: `boolean`):

Also fetch each product's detail record: ingredients, allergens, a full nutrition table, producer and country of origin. This costs one extra request per product, so a whole-store run takes considerably longer. Off by default.

## Actor input object example

```json
{
  "storeUrl": "https://arden.spar.dk",
  "merchantId": 1243,
  "query": "kaffe",
  "maxResults": 50,
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notificationLimit": 5,
  "notifyOnlyChanges": false,
  "includeDetails": 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 = {
    "storeUrl": "https://arden.spar.dk",
    "merchantId": 1243,
    "query": "kaffe",
    "maxResults": 50,
    "excludeEmptyFields": false,
    "includeDetails": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/spar-dk-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 = {
    "storeUrl": "https://arden.spar.dk",
    "merchantId": 1243,
    "query": "kaffe",
    "maxResults": 50,
    "excludeEmptyFields": False,
    "includeDetails": False,
}

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

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

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

```

## CLI example

```bash
echo '{
  "storeUrl": "https://arden.spar.dk",
  "merchantId": 1243,
  "query": "kaffe",
  "maxResults": 50,
  "excludeEmptyFields": false,
  "includeDetails": false
}' |
apify call blackfalcondata/spar-dk-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blackfalcondata/spar-dk-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Km0bhJd6hBuOv6OK3/builds/inhJvGZSGmJhybux9/openapi.json
