# New Aldi — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search for grocery products available at ALDI stores near your location by ZIP code and instantly access pricing, availability status, and current sales information. Browse detailed product information to find exactly what you need and compare deals across your local ALDI stores.

**Category:** Food & Dining | **Website:** [new.aldi.us/](https://new.aldi.us/) | **Docs:** [parse.bot/marketplace/7704b58d-b45d-4936-8871-a6379c79a77d/new-aldi-us-api](https://parse.bot/marketplace/7704b58d-b45d-4936-8871-a6379c79a77d/new-aldi-us-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-new-aldi-us-api-7704b58d/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_product_details

Get detailed information about a specific ALDI product by its product ID, including price, availability, dietary attributes, and weight estimate. The product_id comes from search_products results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Numeric product ID from search_products results. |
| `zip_code` | string | No | 5-digit US ZIP code for store-specific pricing and availability. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-new-aldi-us-api-7704b58d/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"<string>","zip_code":"<string>"}'
```

### search_products

Search ALDI grocery products by keyword, scoped to a store near the given ZIP code. Returns product name, price, size, availability, sale status, image, and direct product link. Results are auto-iterated; pass limit to cap total items returned.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of products to return (max 60). |
| `query` | string | Yes | Search keyword. |
| `sort` | string | No | Sort order for results. |
| `zip_code` | string | No | 5-digit US ZIP code for store location context. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-new-aldi-us-api-7704b58d/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","query":"<string>","sort":"<string>","zip_code":"<string>"}'
```
