# Aldi Scraper (Pay Per Result) (`123webdata/aldi-scraper`) Actor

A scraper for Aldi to extract product information and pricing from category and product pages. Great for inventory tracking, market analysis, and AI datasets. Pricing: $0.005/result. 10 results on free trial.

- **URL**: https://apify.com/123webdata/aldi-scraper.md
- **Developed by:** [Milán Vásárhelyi](https://apify.com/123webdata) (community)
- **Categories:** E-commerce, AI
- **Stats:** 19 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.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?

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

## Aldi.us Scraper

This actor scrapes product data from [Aldi.us](https://www.aldi.us/) and other international Aldi websites, a global discount supermarket chain.

### Issues and feature requests

If you encounter any issue, or you'd like us to change or add anything, please open an issue in the actor page or write to us directly at hello@123webdata.com

### Output Example (simplified)

The actor provides a convenient overview mode that displays the most important product information in a tabular format. Here's an example of how the data looks in the overview mode:

| Image | Product URL | Product Name | Current Price | Regular Price | Currency | Description | Scraped At |
|-------|-------|-------|-------|-------|-------|-------|-------|
| <img src="https://dm.cms.aldi.cx/is/image/prod1amer/product/jpg/scaleWidth/864/997f6e93-8412-4751-8b84-a63495d536ce/Uncured%20%20%20Beef%20%20Franks%2015%20oz" style="max-width: 100px; max-height: 100px; object-fit: contain;"> | https://www.aldi.us/product/parkview-uncured-beef-franks-15-oz-0000000000000081 | Uncured Beef Franks, 15 oz | 4.09 | 0 | USD | Parkview Beef Franks are pa... | 2025-07-21 |
| <img src="https://dm.cms.aldi.cx/is/image/prod1amer/product/jpg/scaleWidth/864/6c304765-6467-4618-b8f5-418b3a8204ff/Boneless%20%20%20Skinless%20Chicken%20Thighs" style="max-width: 100px; max-height: 100px; object-fit: contain;"> | https://www.aldi.us/product/kirkwood-boneless-skinless-chicken-thighs-0000000000008915 | Boneless Skinless Chicken T... | 6.64 | 0 | USD | Items to be weighed out (e.... | 2025-07-21 |
| <img src="https://dm.cms.aldi.cx/is/image/prod1amer/product/jpg/scaleWidth/864/0d3a5ab4-a40c-41f3-be12-c0c83bf816a4/Salmon%20%20with%20Mediterranean%20Herb" style="max-width: 100px; max-height: 100px; object-fit: contain;"> | https://www.aldi.us/product/salmon-with-mediterranean-herb-0000000000004320 | Salmon with Mediterranean Herb | 11.29 | 11.29 | USD | Take the guesswork out of t... | 2025-07-21 |

### Features

- Scrapes detailed product information from Aldi.us product pages
- Extracts data from both individual product URLs and category pages
- Follows pagination links on category pages (optional)
- Supports various product categories with specific fields like brand, price, and category
- Works with multiple Aldi country domains (.us, .co.uk, .de, etc.)

### Input

The actor accepts the following input parameters:

| Field | Type | Description |
|-------|------|-------------|
| `productUrls` | array | List of Aldi product URLs to scrape |
| `categoryUrls` | array | List of Aldi category URLs to scrape |
| `maxResultsPerScrape` | integer | Maximum number of results to extract (default: 1000) |
| `usePagination` | boolean | Whether to follow pagination links on category pages (default: true) |

### Output Example (full)

The actor outputs data in the following structure:

```json
{
	"url": "https://www.aldi.us/product/parkview-uncured-beef-franks-15-oz-0000000000000081",
	"name": "Uncured Beef Franks, 15 oz",
	"price": 4.09,
	"regular_price": 0,
	"currency": "USD",
	"in_stock": true,
	"sku": "0000000000000081",
	"mpn": null,
	"gtin": null,
	"brand": "Parkview",
	"breadcrumbs": [
		"Home",
		"BBQ & Picnic",
		"Grilled Meat & Seafood"
	],
	"main_image": "https://dm.cms.aldi.cx/is/image/prod1amer/product/jpg/scaleWidth/864/997f6e93-8412-4751-8b84-a63495d536ce/Uncured%20%20%20Beef%20%20Franks%2015%20oz",
	"images": [
		"https://dm.cms.aldi.cx/is/image/prod1amer/product/jpg/scaleWidth/864/997f6e93-8412-4751-8b84-a63495d536ce/Uncured%20%20%20Beef%20%20Franks%2015%20oz"
	],
	"description": "Parkview Beef Franks are packed with flavor and are perfect for grilling. Enjoy them alone in a tasty bun, topped with mustard or your favorite condiments, or even chopped and mixed into pasta sauces, soups, or stews. These beef franks are fully cooked and will make a great addition to any savory recipe!",
	"color": null,
	"size": "15 oz",
	"weight": "15 ounce",
	"material": null,
	"style": null,
	"features": [],
	"attributes": {},
	"rating_value": null,
	"review_count": null,
	"canonical_url": "https://www.aldi.us/product/parkview-uncured-beef-franks-15-oz-0000000000000081",
	"scraped_at": "2025-07-21T12:10:33.337Z"
}
```

### Use Cases

- Monitoring grocery product prices across international Aldi stores
- Analyzing product availability and trends
- Tracking price changes over time
- Market research and competitive analysis in the discount grocery sector

# Actor input Schema

## `productUrls` (type: `array`):

List of Aldi product URLs to scrape from any Aldi country domain.

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

List of Aldi category URLs to scrape. The scraper will extract all product URLs from these pages.

## `maxResultsPerScrape` (type: `integer`):

Maximum number of results to extract. Default is 20.

## `usePagination` (type: `boolean`):

Whether to follow pagination links on category pages.

## Actor input object example

```json
{
  "productUrls": [
    "https://www.aldi.us/product/parkview-uncured-beef-franks-15-oz-0000000000000081"
  ],
  "categoryUrls": [
    "https://www.aldi.us/products/bbq-picnic/k/234"
  ],
  "maxResultsPerScrape": 20,
  "usePagination": true
}
```

# 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 = {
    "productUrls": [
        "https://www.aldi.us/product/parkview-uncured-beef-franks-15-oz-0000000000000081"
    ],
    "categoryUrls": [
        "https://www.aldi.us/products/bbq-picnic/k/234"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("123webdata/aldi-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 = {
    "productUrls": ["https://www.aldi.us/product/parkview-uncured-beef-franks-15-oz-0000000000000081"],
    "categoryUrls": ["https://www.aldi.us/products/bbq-picnic/k/234"],
}

# Run the Actor and wait for it to finish
run = client.actor("123webdata/aldi-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 '{
  "productUrls": [
    "https://www.aldi.us/product/parkview-uncured-beef-franks-15-oz-0000000000000081"
  ],
  "categoryUrls": [
    "https://www.aldi.us/products/bbq-picnic/k/234"
  ]
}' |
apify call 123webdata/aldi-scraper --silent --output-dataset

```

## MCP server setup

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