# Falabella — 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.

> Access data from falabella.com.

**Category:** E-commerce | **Website:** [www.falabella.com/falabella-cl/category/CATG11151/Cerraduras-Digitales](https://www.falabella.com/falabella-cl/category/CATG11151/Cerraduras-Digitales) | **Docs:** [parse.bot/marketplace/b4aa2a06-3bc6-4537-8d01-b383da2b0b8a/falabella-com-api](https://parse.bot/marketplace/b4aa2a06-3bc6-4537-8d01-b383da2b0b8a/falabella-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-falabella-com-api-b4aa2a06/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### list_category_products

Browse products within a specific Falabella Chile category by its category ID. Returns paginated product listings with prices, discounts, brand, and ratings. Results are auto-iterated by the SDK.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | Yes | Falabella category identifier (e.g. CATG11151 for Cerraduras Digitales). |
| `category_name` | string | No | URL-friendly category name used in the URL path. When omitted defaults to products. |
| `page` | integer | No | Page number for pagination (1-based). |
| `sort_by` | string | No | Sort order for results. Omitted returns recommended order. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-falabella-com-api-b4aa2a06/list_category_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","category_name":"<string>","page":"<integer>","sort_by":"<string>"}'
```

### search_products

Full-text search across the Falabella Chile product catalog. Returns paginated product listings matching the query, including current price, original price, discount percentage, brand, and ratings. Results are auto-iterated by the SDK.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (1-based). |
| `query` | string | Yes | Search term to find products. |
| `sort_by` | string | No | Sort order for results. Omitted returns recommended order. |

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