# Jumbo — 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 and browse products from Jumbo supermarket, discover current promotions and discounts, and explore product categories with intelligent search suggestions. Get real-time access to Jumbo's inventory and deals to compare prices and find what you're looking for quickly.

**Category:** Food & Dining | **Website:** [www.jumbo.com/producten/](https://www.jumbo.com/producten/) | **Docs:** [parse.bot/marketplace/a9732c4f-67ed-4bf6-88d2-ae3a8f6fe363/jumbo-com-api](https://parse.bot/marketplace/a9732c4f-67ed-4bf6-88d2-ae3a8f6fe363/jumbo-com-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-jumbo-com-api-a9732c4f/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

Returns the full Jumbo product category tree. Each top-level category includes child subcategories (controlled by depth). Useful for discovering browsable product departments and building navigation.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `depth` | integer | No | Depth of category tree to return. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jumbo-com-api-a9732c4f/get_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"depth":"<integer>"}'
```

### search_products

Full-text search over Jumbo supermarket products. Returns paginated results with product details (price, promotions, availability), available filter facets (brand, category, promotions), and sort options. Pagination is offset-based with ~24 products per page. Facets returned in the response enumerate the available filter values for narrowing results. Server-side filtering via the filters param uses the format 'FacetKey:FacetValue'.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `filters` | string | No | Filter string in format 'FacetKey:FacetValue'. Use 'Aanbiedingen:Alle aanbiedingen' to show only promoted/discounted products. Use 'Merken:<brand>' to filter by brand. Available facets and values are returned in the response. |
| `offset` | integer | No | Pagination offset. Each page returns ~24 products. |
| `query` | string | Yes | Search query term (e.g. 'melk', 'kaas', 'brood'). |
| `sort` | string | No | Sort order for results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jumbo-com-api-a9732c4f/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filters":"<string>","offset":"<integer>","query":"<string>","sort":"<string>"}'
```

### search_suggestions

Returns autocomplete suggestions for a partial search query. Provides keyword completions and matching brand suggestions. Useful for building search-as-you-type interfaces or discovering related search terms.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Partial search query to get suggestions for (e.g. 'mel', 'kaas'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jumbo-com-api-a9732c4f/search_suggestions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
