# 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/tools/aldi
- Handle: `@aldi`
- Category: [Commerce](https://fous.com/tools/category/commerce)
- Source website: https://aldi.us
- Last verified: Oct 7, 2026

## Methods

### Search products

Operation `search_products`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

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 | `"Simply Nature Organic Cage Free Eggs - 1 Dozen"` |  |
| `products[].size` | string or null | `"24 oz"` |  |
| `products[].brand` | string or null | `"simply nature"` |  |
| `products[].price` | number or null | `4.15` | Price in USD, or null when unavailable. |
| `products[].category` | string or null | `"Whole Eggs"` |  |
| `products[].currency` | string | `"USD"` |  |
| `products[].image_link` | string or null | `"https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_2a475e1f-fb98-44e3-ad57-8f036752e56a.jpg"` |  |
| `products[].product_id` | string | `"17498616"` |  |
| `products[].unit_price` | string or null | `"$0.17/oz"` | Displayed price per unit, if available. |
| `products[].product_link` | string | `"https://www.aldi.us/store/aldi/products/17498616-simply-nature-organic-cage-free-brown-eggs-12-ct"` |  |

**Example input**

```json
{
  "query": "eggs"
}
```

**Example output**

```json
{
  "products": [
    {
      "name": "Simply Nature Organic Cage Free Eggs - 1 Dozen",
      "size": "24 oz",
      "brand": "simply nature",
      "price": 4.15,
      "category": "Whole Eggs",
      "currency": "USD",
      "image_link": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_2a475e1f-fb98-44e3-ad57-8f036752e56a.jpg",
      "product_id": "17498616",
      "unit_price": "$0.17/oz",
      "product_link": "https://www.aldi.us/store/aldi/products/17498616-simply-nature-organic-cage-free-brown-eggs-12-ct"
    },
    {
      "name": "Goldhen Large Grade A Eggs - 1 Dozen",
      "size": "12 ct",
      "brand": "goldhen",
      "price": 1.85,
      "category": "Whole Eggs",
      "currency": "USD",
      "image_link": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_32d401d6-6b1f-4231-ade3-19ed0ab7071b.jpg",
      "product_id": "115095",
      "unit_price": "$0.15 each",
      "product_link": "https://www.aldi.us/store/aldi/products/115095-goldhen-grade-a-large-eggs-12-ct"
    },
    {
      "name": "Goldhen Pasture Raised Large Grade A Brown Eggs - 12 Count",
      "size": "24 oz",
      "brand": "goldhen",
      "price": 3.95,
      "category": "Whole Eggs",
      "currency": "USD",
      "image_link": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_cd1d34ac-014d-4555-81de-76115cf16461.jpg",
      "product_id": "25319931",
      "unit_price": "$0.16/oz",
      "product_link": "https://www.aldi.us/store/aldi/products/25319931-golden-star-grade-a-pasture-raised-large-brown-eggs-12-ct"
    }
  ]
}
```

## Quick start

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_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.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

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=180) 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.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_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);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/aldi`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `search_products`: Search products. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-aldi https://api.fous.com/mcp/tools/aldi --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

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

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this Aldi tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. 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. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Oct 7, 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/tools/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/tools/instacart.md): Search grocery products available from nearby stores.
- [Tesco API](https://fous.com/tools/tesco.md): Search Tesco groceries, prices, and promotions.
- [Walmart API](https://fous.com/tools/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/tools/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/tools/trader-joes.md): Trader Joe's groceries, beverages, flowers, plants, and other products.
- [Ulta Beauty API](https://fous.com/tools/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/tools/kohls.md): Shop products and deals on Kohl's.
- [All Commerce tools](https://fous.com/tools/category/commerce)
