# ALDI US Scraper — Grocery Prices by ZIP Code (`blackfalcondata/aldi-us-scraper`) Actor

Scrape aldi.us grocery products with prices, sizes, brands, categories, per-unit pricing and stock. Scoped to any US ZIP code, because ALDI US prices differ by store. Browse the full 13,000+ catalogue or paste product links, and track price changes between runs.

- **URL**: https://apify.com/blackfalcondata/aldi-us-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 3 total users, 2 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. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#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 ALDI US Scraper do?

ALDI US Scraper extracts structured product data from [aldi.us](https://aldi.us) — including current shelf price, stock status, and multi-resolution product images. It supports keyword search, location filters, and controllable result limits, so you can run the same query consistently over time. The actor also offers detail enrichment (extra per-record fields the search results omit).

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

### Key features

- **📍 Prices for YOUR store, by ZIP code** — ALDI US prices differ from store to store, so a price without its store is not a fact. Set a ZIP code and every row is priced at that store and stamped with the `postalCode` it came from. Pass several ZIP codes to compare the same products across locations in one run — measured on a live sample, 18 of 58 shared products were priced differently between Geneva IL and New York NY.
- **🔗 Paste-mode** — paste aldi.us links straight from your browser. Product links are priced at the ZIP code you chose — both the current `/store/aldi/products/...` form and older `/product/...` links — and search links run as searches. Mix links with a keyword in the same run; results dedupe by product id. Category links from the old ALDI US site are reported and skipped rather than followed: that page now redirects to the storefront, so following it would quietly return nothing.
- **📋 Detail enrichment** — turn on Include Product Details and every row also carries the product description, ingredients, nutrition text, allergen warnings and extra images. Measured on a live sample: 16 of 19 products publish a description, and it costs one extra request each — bound it with Max Product Details when you only want the top of a large run.
- **🏷️ Structured unit size + brand** — `unit` (`1 gal`, `13 oz`), `entityName` for the brand, and `isStoreBrand` to separate ALDI's own labels from national brands — as separate fields, not something to regex out of the product title.
- **⚖️ Per-unit comparison pricing** — `pricePerUnit` on every product the store publishes one for (`$0.02/fl oz`, `$0.55 each`) — the same per-unit figure printed on the shelf label. Compare pack sizes without writing your own normalizer.
- **📚 The whole store, not just page one** — leave the search term empty and the actor walks the store's entire catalogue — 13,000+ products with prices — instead of one page of search results. Keyword search is capped at 300 products per term by the site itself, so browse mode is the one with complete coverage. Results stream to the dataset as they are collected, so a full run fits inside the default memory.
- **♻️ Incremental mode** — recurring runs return and charge for only the products that are new or whose price or availability moved, each carrying its price change. The first run builds the baseline. Opt into `emitUnchanged` for everything, or `emitExpired` to be told which products disappeared from the store — that one only fires on a run that read the full catalogue, because a run stopped early cannot tell "gone" from "not reached".
- **📌 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`.
- **🔔 Notifications** — Telegram, Slack, Discord, WhatsApp Cloud API and a generic webhook, out of the box. Pair with incremental mode and `notifyOnlyChanges` to be alerted the moment a price moves at your store, without polling.
- **📦 Compact mode** — keep the shopping essentials — product, brand, size, price, per-unit price, category, availability and the ZIP it was priced in — and drop the rest. Smaller rows for AI agents, MCP servers and LLM context windows.
- **💰 Current price + tilbud with discount %** — every reduced product carries `regularPrice` and a `discountPercent` derived from it, alongside the current `price` and the store's own `isOnSale` flag. Filter with On Sale Only to sweep the whole store for deals: about 3% of the catalogue is reduced at any time, so a run that scanned ~1,950 products returned 15 genuine markdowns — the cap counts products delivered, not products looked at.

### What data can you extract from aldi.us?

Each result includes Core product fields (`listingId`, `listingKey`, `title`, `subtitle`, `entityName`, `category`, `subcategory`, and `location`, and more) and detail fields when enrichment is enabled (`description`, `descriptionText`, `descriptionHtml`, `descriptionMarkdown`, 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 fetch each record's detail page — extra fields the search results omit.

### Input

The main inputs are a search keyword, an optional location filter, and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`location`** — US ZIP code of the ALDI store to price. Prices and assortment are per store, so the same product can cost different amounts in different ZIPs — this field decides which store you get, it is not a filter. (default: `"60174"`)
- **`query`** — Search the store for a keyword, e.g. "milk". Leave EMPTY to get the store's full product catalogue — that is the only mode with complete coverage. Search is capped at 300 products per term by the site itself.
- **`startUrls`** — Paste aldi.us product links to price exactly those products, or search links to run those searches. Product links are matched to the ZIP Code above, so you always get the price at the store you chose. Category links are not supported — that page no longer exists on aldi.us. (default: `[]`)
- **`country`** — Which market to search. (default: `"US"`)
- **`maxResults`** — Maximum total products (0 = unlimited, i.e. the whole catalogue in browse mode). (default: `25`)
- **`sortBy`** — Order for keyword searches. The full-catalogue pass (empty search term) returns products in the store's own order — the site offers no sort there. (default: `"bestMatch"`)
- **`onSaleOnly`** — Return only products the store currently marks as reduced. About 3% of the catalogue is on sale at any time, so combine this with an empty search term to sweep the whole store for deals. (default: `false`)
- **`minPrice`** — Skip products priced below this. Products with no price are excluded when a price bound is set.
- **`maxPrice`** — Skip products priced above this. Products with no price are excluded when a price bound is set.
- **`brand`** — Return only products whose brand contains this text, e.g. "friendly farms". Case-insensitive.
- **`includeDetails`** — Also fetch each product's description, ingredients, nutrition text, warnings and extra images. This costs one extra request per product — roughly 10x the data of a plain run — so it is off by default. Use Max Product Details to bound it. (default: `false`)
- **`maxDetails`** — Stop fetching details after this many products (0 = every product returned). Only applies when Include Product Details is on. (default: `0`)
- ...and 22 more parameters

### Input examples

**Basic search** — Keyword-driven search scoped to a city with a tight radius.

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

```json
{
  "query": "milk",
  "location": "60174",
  "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": "milk",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "milk-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": "milk",
  "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": "6c832920a925d4d6ac7e484fd17490b186cb63bb5aa9133bb39bf9ee42638514",
  "listingKey": "25744424",
  "title": "La Croix LimonCello Sparkling Flavored Water",
  "subtitle": "12 fl oz",
  "entityName": "lacroix",
  "subcategory": "Sparkling Water",
  "location": "60174",
  "priceText": "$6.59",
  "priceValue": 6.59,
  "priceCurrency": "USD",
  "listingType": "national_brand",
  "url": "https://www.aldi.us/store/aldi/products/25744424-lacroix-sparkling-water-limoncello-12-fl-oz",
  "portalUrl": "https://www.aldi.us/store/aldi/products/25744424-lacroix-sparkling-water-limoncello-12-fl-oz",
  "contentHash": "958a006ed87b24dd19b8363eb74a722eb9964248b95df6749444f4dfe8f812c7",
  "imageUrl": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_07e692ea-7460-4b4d-a235-763ece527707.png",
  "productId": "25744424",
  "unit": "12 fl oz",
  "pricePerUnit": "$0.55 each",
  "isStoreBrand": false,
  "isOnSale": false,
  "inStock": true,
  "stockLevel": "Likely out of stock",
  "postalCode": "60174",
  "attributes": [
    "pricePerUnit: $0.55 each",
    "stockLevel: Likely out of stock"
  ],
  "condition": "in_stock",
  "contentQuality": "serp_only",
  "detailFetched": false,
  "scrapedAt": "2026-08-05T10:29:34.118Z",
  "source": "aldi.us"
}
```

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

1. Go to [ALDI US Scraper](https://apify.com/blackfalcondata/aldi-us-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword and optional location filter.
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 aldi.us 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.
- Use structured location data for regional analysis, mapping, and geo-targeting.
- 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 aldi.us?

ALDI US 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: 100 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.21 | $0.02 | $0.19 (90%) | $0.60 |
| 15% — moderate broad query | $0.21 | $0.04 | $0.17 (81%) | $1.20 |
| 30% — high-volume aggregator | $0.21 | $0.07 | $0.14 (67%) | $2.10 |

Full re-scrape monthly cost at the same cadence: $6.30. First month with incremental costs $0.79 / $1.37 / $2.24 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 aldi.us?

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

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

Yes. ALDI US 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 ALDI US 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 ALDI US 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 aldi.us?

This actor extracts publicly available data from aldi.us. 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/aldi-us-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,.
- [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 \[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 ·.
- [Carrefour MAF \[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 ·.
- [Coop365 \[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.
- [Kvickly \[Just 💰$2\] — Danish grocery deals](https://apify.com/blackfalcondata/kvickly-scraper?fpr=1h3gvi) — 💰 $2 per 1,000 products. Scrape kvickly.dk — leaflet names & prices · unit quantities & per-unit.

### 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 aldi.us. 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 ALDI US'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 ALDI US.

### Search keywords

aldi scraper, aldi api, apify aldi, aldi data extraction, aldi us scraper, aldi us api, apify aldi us, aldi us data extraction, aldi.us scraper, aldi.us data, aldi.us api.

# Actor input Schema

## `location` (type: `string`):

US ZIP code of the ALDI store to price. Prices and assortment are per store, so the same product can cost different amounts in different ZIPs — this field decides which store you get, it is not a filter.

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

Search the store for a keyword, e.g. "milk". Leave EMPTY to get the store's full product catalogue — that is the only mode with complete coverage. Search is capped at 300 products per term by the site itself.

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

Paste aldi.us product links to price exactly those products, or search links to run those searches. Product links are matched to the ZIP Code above, so you always get the price at the store you chose. Category links are not supported — that page no longer exists on aldi.us.

## `country` (type: `string`):

Which market to search.

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

Maximum total products (0 = unlimited, i.e. the whole catalogue in browse mode).

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

Order for keyword searches. The full-catalogue pass (empty search term) returns products in the store's own order — the site offers no sort there.

## `onSaleOnly` (type: `boolean`):

Return only products the store currently marks as reduced. About 3% of the catalogue is on sale at any time, so combine this with an empty search term to sweep the whole store for deals.

## `minPrice` (type: `integer`):

Skip products priced below this. Products with no price are excluded when a price bound is set.

## `maxPrice` (type: `integer`):

Skip products priced above this. Products with no price are excluded when a price bound is set.

## `brand` (type: `string`):

Return only products whose brand contains this text, e.g. "friendly farms". Case-insensitive.

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

Also fetch each product's description, ingredients, nutrition text, warnings and extra images. This costs one extra request per product — roughly 10x the data of a plain run — so it is off by default. Use Max Product Details to bound it.

## `maxDetails` (type: `integer`):

Stop fetching details after this many products (0 = every product returned). Only applies when Include Product Details is on.

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

Truncate description to N chars. 0 = no truncation.

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

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

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

Only return products that are new or changed since your last run, with a price-change field on each. Runs with different search settings are tracked separately, so they never overwrite each other's history.

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

Optional. Stable identifier for the tracked product set. Leave empty to derive one from your search settings.

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

In incremental mode, also return products whose price and availability did not move since the last run.

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

In incremental mode, also return a row for products that disappeared from the store since the last run. Only fires on a run that read the full catalogue — a run limited by Max Results cannot tell 'gone' from 'not reached'.

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

When incremental, skip listings whose content matches an expired listing 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.

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

Maximum number of listings included in each notification message (1–20).

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

When Incremental Mode is on, only send notifications for NEW and UPDATED listings. 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 (including any contact details). 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`):

Pick a single description representation. `all` keeps every variant; `text` / `html` / `markdown` drop the others.

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

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

## Actor input object example

```json
{
  "location": "60174",
  "query": "milk",
  "startUrls": [],
  "country": "US",
  "maxResults": 5,
  "sortBy": "bestMatch",
  "onSaleOnly": false,
  "includeDetails": false,
  "maxDetails": 25,
  "descriptionMaxLength": 0,
  "compact": false,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "skipReposts": false,
  "notificationLimit": 5,
  "notifyOnlyChanges": false,
  "descriptionFormat": "all",
  "excludeEmptyFields": false
}
```

# Actor output Schema

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

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "location": "60174",
    "query": "milk",
    "maxResults": 5,
    "maxDetails": 25,
    "descriptionFormat": "all",
    "excludeEmptyFields": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/aldi-us-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 = {
    "location": "60174",
    "query": "milk",
    "maxResults": 5,
    "maxDetails": 25,
    "descriptionFormat": "all",
    "excludeEmptyFields": False,
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/aldi-us-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 '{
  "location": "60174",
  "query": "milk",
  "maxResults": 5,
  "maxDetails": 25,
  "descriptionFormat": "all",
  "excludeEmptyFields": false
}' |
apify call blackfalcondata/aldi-us-scraper --silent --output-dataset

```

## MCP server setup

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