# SPAR Austria Scraper — Grocery Prices & Products (`blackfalcondata/spar-at-scraper`) Actor

Scrape spar.at for Austrian grocery products — name, brand, pack size, shelf price in EUR, price per unit, promotion flag, stock status and GTIN. Incremental runs return only new and changed prices. Structured rows, ready for a spreadsheet, database or price monitor.

- **URL**: https://apify.com/blackfalcondata/spar-at-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 6 total users, 1 monthly users, 85.7% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

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

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What does SPAR Austria Scraper do?

SPAR Austria Scraper extracts structured grocery product data from [spar.at](https://spar.at) — product name, brand, pack size, shelf price in EUR, price per unit, promotion flag, stock status and GTIN. It supports keyword search and controllable result limits, so you can run the same query consistently over time. Incremental mode returns only the products whose price or availability changed since the last run, and detail enrichment adds full descriptions where the source provides them.

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

- **🔔 Notifications:** Telegram, Slack, Discord, WhatsApp Cloud API, and generic webhook out of the box. Pair with incremental for daily new-listing alerts without pipeline glue.
- **🔗 Paste-mode:** paste any spar-at URL straight from your browser — single-listing pages, search-results URLs, or category SEO URLs. Mix freely with keyword and IDs in the same run; results dedupe by ID.
- **📋 Detail enrichment:** toggle two-stage scraping: first collect listings, then enrich each with full description + detail-page-only fields. Off by default to keep runs fast; flip on when you need the deep payload.
- **🎯 Batch searches:** pass `["term1", "term2"]` for query, location, or city to batch multiple searches in one run — shared dedup state, single dataset, one Actor-Start charge instead of N.
- **📦 Compact mode:** AI-agent and MCP-friendly payloads with core fields only.
- **✂️ Description truncation:** cap description length with `descriptionMaxLength` to control LLM prompt cost and dataset size — set 0 for full descriptions, or any char-limit to trim.
- **📌 Change classification:** each record carries a `changeType` of NEW / UPDATED / UNCHANGED / REAPPEARED / EXPIRED. Default emits NEW + UPDATED + REAPPEARED; opt into the others with `emitUnchanged` / `emitExpired`.
- **🔌 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.
- **📝 Description format selection:** pick a single description representation — `text`, `html`, or `markdown` — and the unused variants are dropped from each record. Halves payload size when your pipeline only consumes one format.
- **♻️ Incremental mode:** recurring runs emit and charge only for listings that are new or whose tracked content changed. First run builds the baseline; subsequent runs emit only NEW / UPDATED / REAPPEARED records (UNCHANGED + EXPIRED opt-in). Saves 80–95% on daily monitoring.
- **🧹 Empty-field stripping:** drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards that already handle missing fields gracefully.

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

Each result includes Core product fields (`listingId`, `productNumber`, `gtin`, `name`, `fullName`, `brand`, `packSize`, and `salesUnit`, and more) and detail fields when enrichment is enabled (`description` and `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 get richer fields such as descriptions where the source provides them.

### Input

The main inputs are a search keyword (or Start URLs) and a result limit. Additional filters and options are available in the input schema.

**Search depth:** SPAR's search returns at most 100 products per search term. When a term matches more, the run says so; use more specific terms or a category URL to get the rest. "\*" (browse) walks every top-level category and is not limited to 100.

**Start URLs** accept product pages (`https://www.interspar.at/p/6640354`), category pages (`https://www.interspar.at/c/obst-gemuese/frischgemuese` — the whole category, page by page) and searches (`https://www.interspar.at/search?q=karotten`).

Key parameters:

- **`query`** — Product search keywords, e.g. "Karotten", "Milch", "SPAR Natur*pur". Use "*" to browse the whole assortment. Paste a JSON array for multiple searches, e.g. \["Milch","Butter"].
- **`startUrls`** — One or more direct search or listing detail URLs to process. When set, other search filters are ignored.
- **`maxResults`** — Maximum total products (0 = unlimited). (default: `100`)
- **`descriptionMaxLength`** — Truncate the product marketing text to N chars. 0 = no truncation. (default: `0`)
- **`compact`** — Core product fields only (id, name, brand, pack size, prices, stock, URL) — 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 previous run state — emit only new and changed products (price changes, pack changes, stock changes). stateKey is optional and defaults to a value derived from your search inputs. (default: `false`)
- **`stateKey`** — Optional. Stable identifier for the tracked product universe. Leave empty to auto-generate from search inputs.
- **`emitUnchanged`** — When incremental mode is on, also emit products whose data has not changed since the last run. (default: `false`)
- **`emitExpired`** — When incremental mode is on, also emit products that were seen before but are no longer in the assortment. (default: `false`)
- **`skipReposts`** — When incremental, skip products whose content matches a delisted product from a prior run (cross-run duplicate detection). (default: `false`)
- **`includeDetails`** — Also collect the fuller product information that only appears on the individual product page: ingredients, the nutrition table, storage and preparation instructions, organic certification, the identification mark and the manufacturer contact. Adds roughly half a second per product. Records that could not be retrieved keep their other fields and set detailFetched to false. (default: `false`)
- **`telegramToken`** — Telegram bot token (from @BotFather). Required for Telegram notifications.
- **`telegramChatId`** — Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.
- ...and 12 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": "Karotten",
  "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": "Karotten",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "karotten-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": "Karotten",
  "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": "aa4b878e09d342eced54593bf98d667f87cdcb3e41641c7cc9b4987e42693dc6",
  "productNumber": "2020003743085",
  "gtin": "8805923815425",
  "name": "Bio-Karotten gelb",
  "fullName": "KAROTTE GELB BIO SNP 400g",
  "brand": "SPAR Natur*pur",
  "packSize": "400 G",
  "salesUnit": "Pieces",
  "approxWeight": false,
  "description": "Unsere gelben Bio-Karotten begeistern mit ihrem mild-süßen Geschmack und knackiger Frische. Natürlich biologisch angebaut – für farbenfrohe Vielfalt und puren Genuss auf deinem Teller.",
  "priceValue": 1.61,
  "priceCurrency": "EUR",
  "regularPrice": 1.61,
  "bestPrice": 1.61,
  "pricePerUnit": "4.03 €/kg",
  "isOnPromotion": false,
  "categoryNames": [
    "Produkte",
    "Wurzelgemüse",
    "Obst & Gemüse",
    "Frischgemüse"
  ],
  "categoryIds": [
    "110302130101",
    "1103",
    "11",
    "1",
    "1103021301",
    "... 31 more items"
  ],
  "categoryPaths": [
    "F1-1_Frischgemüse:F1-1-4_Wurzelgemüse",
    "root_Produkte:F1_Obst & Gemüse",
    "F1_Obst & Gemüse:F1-1_Frischgemüse"
  ],
  "badges": [
    "Bio"
  ],
  "badgeIconUrl": "https://cdn1.interspar.at/cachableservlets/graficImage.dam/at/ECR-BIO-NICHTBIO+bio/dt_main.png",
  "bioLevel": "Bio",
  "customerInfo": [
    "Bio"
  ],
  "freeFrom": [
    "Gluten",
    "Erdnuss",
    "Soja",
    "Sesam",
    "Weichtiere",
    "... 9 more items"
  ],
  "stockStatus": "inStock",
  "isNew": false,
  "purchasableStoreIds": [
    "8757",
    "8427",
    "8567",
    "8457",
    "8737",
    "... 8 more items"
  ],
  "visibleStoreIds": [
    "8757",
    "8897",
    "8887",
    "8567",
    "8737",
    "... 3 more items"
  ],
  "itemType": "Product",
  "country": "Österreich",
  "createdAt": "2021-03-29T10:05:42.847Z",
  "imageUrl": "https://cdn1.interspar.at/cachableservlets/articleImage.dam/at/2020003743085/dt_main.jpg",
  "url": "https://www.interspar.at/shop/lebensmittel/spar-naturpur-bio-karotten-gelb/p/2020003743085",
  "portalUrl": "https://www.interspar.at/shop/lebensmittel/spar-naturpur-bio-karotten-gelb/p/2020003743085",
  "searchRank": 1,
  "relevanceScore": 101.5,
  "searchQuery": "Bio",
  "contentQuality": "full",
  "detailFetched": false,
  "scrapedAt": "2026-08-07T16:46:09.148Z",
  "source": "spar.at",
  "contentHash": "2192c382bccb54db0de649aba26f58e4d89f5a4255c02db6a5442b563d473019"
}
```

### 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.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape spar.at

1. Go to [SPAR Austria Scraper](https://apify.com/blackfalcondata/spar-at-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 descriptions.
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.at 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.at?

SPAR Austria 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.005 per run
- **Per result:** $0.002 per product record

Example costs:

- 10 results: **$0.025**
- 25 results: **$0.055**
- 100 results: **$0.21**
- 200 results: **$0.41**
- 500 results: **$1**

#### 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 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.51 | $0.03 | $0.47 (94%) | $0.90 |
| 15% — moderate broad query | $0.51 | $0.08 | $0.42 (84%) | $2.40 |
| 30% — high-volume aggregator | $0.51 | $0.15 | $0.35 (69%) | $4.65 |

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

Platform usage is included in the per-result fee shown above.

### FAQ

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

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

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

Yes. SPAR Austria 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 Austria 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 Austria 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, `descriptionMaxLength`, a single `descriptionFormat`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape spar.at?

This actor extracts publicly available data from spar.at. 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-at-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 \[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 \[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.at. 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 Austria'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 an independent tool and is not affiliated with, endorsed by, or sponsored by SPAR Austria or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

### Search keywords

spar scraper, spar api, apify spar, spar data extraction, spar austria scraper, spar austria api, apify spar austria, spar austria data extraction, spar.at scraper, spar.at data, spar.at api.

# Changelog

This Actor's version history is a separate document: https://apify.com/blackfalcondata/spar-at-scraper/changelog.md

# Actor input Schema

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

Product search keywords, e.g. "Karotten", "Milch", "SPAR Natur*pur". Use "*" to browse the whole assortment. Paste a JSON array for multiple searches, e.g. \["Milch","Butter"].

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

Maximum total products (0 = unlimited).

## `descriptionMaxLength` (type: `integer`):

Truncate the product marketing text to N chars. 0 = no truncation.

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

Core product fields only (id, name, brand, pack size, prices, stock, URL) — 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 previous run state — emit only new and changed products (price changes, pack changes, stock changes). stateKey is optional and defaults to a value derived from your search inputs.

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

Optional. Stable identifier for the tracked product universe. Leave empty to auto-generate from search inputs.

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

When incremental mode is on, also emit products whose data has not changed since the last run.

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

When incremental mode is on, also emit products that were seen before but are no longer in the assortment.

## `skipReposts` (type: `boolean`):

When incremental, skip products whose content matches a delisted product from a prior run (cross-run duplicate detection).

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

## `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 ..."}).

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

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

## `descriptionFormat` (type: `string`):

Choose which representation of the listing description to include. `all` keeps every variant; the others keep only the selected one.

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

One or more direct search or listing detail URLs to process. When set, other search filters are ignored.

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

Also collect the fuller product information that only appears on the individual product page: ingredients, the nutrition table, storage and preparation instructions, organic certification, the identification mark and the manufacturer contact. Adds roughly half a second per product. Records that could not be retrieved keep their other fields and set detailFetched to false.

## Actor input object example

```json
{
  "query": "Karotten",
  "maxResults": 100,
  "descriptionMaxLength": 0,
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "skipReposts": false,
  "notificationLimit": 5,
  "notifyOnlyChanges": false,
  "descriptionFormat": "all",
  "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 = {
    "query": "Karotten",
    "maxResults": 100,
    "excludeEmptyFields": false,
    "descriptionFormat": "all",
    "includeDetails": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/spar-at-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": "Karotten",
    "maxResults": 100,
    "excludeEmptyFields": False,
    "descriptionFormat": "all",
    "includeDetails": False,
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/spar-at-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 '{
  "query": "Karotten",
  "maxResults": 100,
  "excludeEmptyFields": false,
  "descriptionFormat": "all",
  "includeDetails": false
}' |
apify call blackfalcondata/spar-at-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blackfalcondata/spar-at-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/FNyK9Z0XiujCI6Ivd/builds/zDXccsy3nuG4nvMSD/openapi.json
