# Victory — 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 Victory supermarket's full product catalog, view detailed item information, explore product categories, and discover current promotions all in one place. Get instant access to pricing, availability, and special offers to find exactly what you need for your shopping.

**Category:** Food & Dining | **Website:** [www.victory.co.il/](https://www.victory.co.il/) | **Docs:** [parse.bot/marketplace/9cae97cd-9d91-4b91-b2f3-4ba2e7bfb684/victory-co-il-api](https://parse.bot/marketplace/9cae97cd-9d91-4b91-b2f3-4ba2e7bfb684/victory-co-il-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-victory-co-il-api-9cae97cd/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

Retrieve the complete category tree for Victory's online store. Each category includes its subcategories. No parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-victory-co-il-api-9cae97cd/get_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_product

Retrieve full details for a single product by its numeric ID. Returns pricing, description (ingredients), multiple images, category hierarchy, and active promotions.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Numeric product ID (e.g. from search_products results). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-victory-co-il-api-9cae97cd/get_product \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"<string>"}'
```

### get_promotions

Retrieve current active promotions and deals. Returns products with active discounts, including regular and sale prices, promotion descriptions, and validity dates.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-victory-co-il-api-9cae97cd/get_promotions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_products

Full-text search over Victory's online product catalog. Returns paginated results with pricing, stock availability, and category info. Results are auto-iterated across pages.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination, 1-based. |
| `query` | string | Yes | Search query text in Hebrew or English (e.g. 'חלב' for milk). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-victory-co-il-api-9cae97cd/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```
