# Aldi API

> Aldi returns grocery products and prices as a workflow and API.

Aldi’s Search products method returns matching groceries in site order, including product names, sizes, brands, categories, links, and prices. Search products needs a grocery query and can use a ZIP code to select a delivery store; omit it to use the site’s default store. Prices and availability vary by store; related results may follow direct matches.

- Page: https://fous.com/workflows/aldi
- Handle: `@aldi`
- Category: [Commerce](https://fous.com/workflows/category/commerce)
- Source website: https://aldi.us
- Last verified: Sep 29, 2026
- Fous is not affiliated with Aldi.

## Methods

### Search products

Operation `search_products`, version 1. 1 credit per call.

Search ALDI US groceries in site order with prices for the selected store. Prices and availability vary by store; related search results may follow direct matches.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `query` | string | yes | `"eggs"` | Groceries to find, for example eggs. |
| `zip_code` | string | no | `"10001"` | US ZIP code for the nearest available delivery store, for example 10001. Omit to use the site’s default store. |
| `max_results` | integer | no | `12` | Maximum products to return, for example 20. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "Groceries to find, for example eggs.",
      "examples": [
        "eggs",
        "milk",
        "zzzxqqqnonexistentfood"
      ]
    },
    "zip_code": {
      "type": "string",
      "pattern": "^[0-9]{5}$",
      "description": "US ZIP code for the nearest available delivery store, for example 10001. Omit to use the site’s default store.",
      "examples": [
        "10001"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 60,
      "minimum": 1,
      "description": "Maximum products to return, for example 20.",
      "x-fous-developer": true,
      "examples": [
        12
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "query": "eggs"
    },
    {
      "query": "milk",
      "zip_code": "10001",
      "max_results": 12
    },
    {
      "query": "zzzxqqqnonexistentfood"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `products` | array |  |  |
| `products[].name` | string | `"Friendly Farms Whole Milk"` |  |
| `products[].size` | string or null | `"1 gal"` |  |
| `products[].brand` | string or null | `"friendly farms"` |  |
| `products[].price` | number or null | `2.89` | Price in USD, or null when unavailable. |
| `products[].category` | string or null | `"Plain Milk"` |  |
| `products[].currency` | string | `"USD"` |  |
| `products[].image_link` | string or null | `"https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_b4aaab37-66cf-46e3-9638-f37987fca803.jpg"` |  |
| `products[].product_id` | string | `"16902710"` |  |
| `products[].unit_price` | string or null | `"$0.02/fl oz"` | Displayed price per unit, if available. |
| `products[].product_link` | string | `"https://www.aldi.us/store/aldi/products/16902710-friendly-farms-vitamin-d-milk-1-gal"` |  |

**Example input**

```json
{
  "query": "milk",
  "zip_code": "10001",
  "max_results": 12
}
```

**Example output**

```json
{
  "products": [
    {
      "name": "Friendly Farms Whole Milk",
      "size": "1 gal",
      "brand": "friendly farms",
      "price": 2.89,
      "category": "Plain Milk",
      "currency": "USD",
      "image_link": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_b4aaab37-66cf-46e3-9638-f37987fca803.jpg",
      "product_id": "16902710",
      "unit_price": "$0.02/fl oz",
      "product_link": "https://www.aldi.us/store/aldi/products/16902710-friendly-farms-vitamin-d-milk-1-gal"
    },
    {
      "name": "Friendly Farms 2% Reduced Fat Milk",
      "size": "1 gal",
      "brand": "friendly farms",
      "price": 2.89,
      "category": "Plain Milk",
      "currency": "USD",
      "image_link": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_a4e29d62-0127-4e6f-ab85-97d4bc756cff.jpg",
      "product_id": "20957684",
      "unit_price": "$0.02/fl oz",
      "product_link": "https://www.aldi.us/store/aldi/products/20957684-friendly-farms-2-milk-1-gal"
    },
    {
      "name": "Friendly Farms 2% Reduced Fat Milk",
      "size": "0.5 gal",
      "brand": "friendly farms",
      "price": 1.49,
      "category": "Plain Milk",
      "currency": "USD",
      "image_link": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_6b0869e5-bd09-436f-84d5-6fb8ccea4c41.jpg",
      "product_id": "20986614",
      "unit_price": "$0.02/fl oz",
      "product_link": "https://www.aldi.us/store/aldi/products/20986614-friendly-farms-2-milk-0-5-gal"
    }
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@aldi",
  "visibility": "public",
  "operation": "search_products",
  "version": 1,
  "input": {
    "query": "eggs"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@aldi\",\n  \"visibility\": \"public\",\n  \"operation\": \"search_products\",\n  \"version\": 1,\n  \"input\": {\n    \"query\": \"eggs\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@aldi",
  "visibility": "public",
  "operation": "search_products",
  "version": 1,
  "input": {
    "query": "eggs"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@aldi","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Compare grocery prices for a selected store
- Find products by name or category
- Review product sizes and brands
- Collect product links for grocery planning

## FAQ

### Is Fous affiliated with Aldi?

No. Fous is not affiliated with Aldi. This workflow reads the public aldi.us website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a Aldi account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from aldi.us when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### What does Aldi charge for a grocery product?

Search products returns product prices in US dollars when available; prices vary by store.

### Which products match a grocery search?

Search products returns matching groceries in site order, with related results possibly following direct matches.

### Which store's products will a search show?

Search products can use a ZIP code to select a delivery store, or use the site’s default store when omitted.

## Related

- [Costco API](https://fous.com/workflows/costco.md): Costco returns US product prices/details and warehouse hours/services/gas prices; delivery affects availability, member prices may be hidden, and posted gas and holiday hours may differ.
- [Instacart API](https://fous.com/workflows/instacart.md): Search grocery products available from nearby stores.
- [Tesco API](https://fous.com/workflows/tesco.md): Search Tesco groceries, prices, and promotions.
- [Walmart API](https://fous.com/workflows/walmart.md): Walmart helps shoppers find products from Walmart and marketplace sellers, view details, prices, ratings and reviews; availability uses Walmart’s default location, not ZIP codes.
- [AliExpress API](https://fous.com/workflows/aliexpress.md): AliExpress returns product listings and selected product details, including prices, variants, reviews, and destination-specific shipping options shown for the displayed variant.
- [Trader Joe's API](https://fous.com/workflows/trader-joes.md): Trader Joe's groceries, beverages, flowers, plants, and other products.
- [Ulta Beauty API](https://fous.com/workflows/ulta-beauty.md): Ulta Beauty returns searchable beauty products and product details, including current pricing and availability that may change.
- [Kohl's API](https://fous.com/workflows/kohls.md): Shop products and deals on Kohl's.
- [All Commerce workflows](https://fous.com/workflows/category/commerce)
