# Gamma (Belgium) — 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 Gamma.be to find home improvement items with real-time pricing and detailed specifications. Get category listings and search suggestions to easily discover what you need at Belgium's leading home improvement store.

**Category:** E-commerce | **Website:** [gamma.be/](https://gamma.be/) | **Docs:** [parse.bot/marketplace/d70f9ed1-ee9f-4657-819b-c10febfa1986/gamma-be-api](https://parse.bot/marketplace/d70f9ed1-ee9f-4657-819b-c10febfa1986/gamma-be-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-gamma-be-api-d70f9ed1/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

Returns the full category tree from gamma.be. Top-level categories contain nested subcategories recursively, each with name, categoryUrl, and uid. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-gamma-be-api-d70f9ed1/get_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_product_details

Point-lookup for a single product by its numeric ID. Returns all search-level fields plus full description, multiple images, store availability count, delivery info, and French URL. The 'B' prefix is optional and stripped automatically.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Product ID (e.g. '224235' or 'B224235'). The 'B' prefix is optional and will be stripped. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-gamma-be-api-d70f9ed1/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"<string>"}'
```

### search_products

Full-text search over Gamma.be product catalog. Returns paginated product listings with metadata including prices, dimensions, materials, reviews, stock info, and variants. Pagination via page number; each page returns up to `limit` items. Price fetching adds a secondary tile request per batch — set include_prices to 'false' for faster, price-less results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `include_prices` | string | No | Whether to fetch prices. Accepted values: 'true', 'false'. Set to 'false' for faster results. |
| `limit` | integer | No | Results per page (max 50) |
| `page` | integer | No | Page number (1-indexed) |
| `query` | string | No | Search query for products |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-gamma-be-api-d70f9ed1/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"include_prices":"<string>","limit":"<integer>","page":"<integer>","query":"<string>"}'
```

### search_suggestions

Autocomplete endpoint returning search term suggestions for a partial query. Each suggestion includes the completed query string and a popularity score. Useful for building type-ahead search UIs.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Max number of suggestions to return |
| `query` | string | Yes | Partial search query for autocomplete |

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