# Falabella Search API Documentation

Returns priced Falabella products for a keyword. Each product has an id, name, brand, url, current and previous price, currency, discount, rating, review count, seller, availability and a full-size image. The response also carries live facets, sort options, category and brand ids, and pagination. Filters are live facet URL fragments copied from a previous facets or search response; an applied filter that upstream does not confirm makes the request fail and it is not billed. Failed requests (404, 422, 503) are never billed. A valid answer with zero rows is a successful, billable 200.

- **Documentation:** [https://scrappa.co/docs/falabella-api/falabella_search](https://scrappa.co/docs/falabella-api/falabella_search)
- **API group:** Falabella API
- **Endpoint:** `GET https://scrappa.co/api/falabella/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `country` | string | Yes | Storefront country: cl (Chile, available), pe (Peru) or co (Colombia). Only countries that passed the soak are served. |
| `query` | string | Yes | Search text, for example audifonos. |
| `page` | integer | No | Real 1-based result page. Defaults to 1. |
| `sort` | string | No | A value from sort_options in a previous search. |
| `category` | string | No | Live category facet URL fragment. |
| `brand` | string | No | Live brand facet URL fragment. |
| `price` | string | No | Live price facet URL fragment. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/falabella/search?country=cl&query=audifonos&page=1"
```

## Example response

```json
{
    "success": true,
    "data": {
        "country": "cl",
        "query": "audifonos",
        "page": 1,
        "per_page": 48,
        "products": [
            {
                "product_id": "80864544",
                "sku_id": "80864544",
                "name": "Audifonos inal\u00e1mbricos WH1000XM4 Sony",
                "brand": "Sony",
                "url": "https://www.falabella.com/falabella-cl/product/80864544/audifonos-inalambricos-wh1000xm4-sony",
                "price": 129990,
                "old_price": 199990,
                "currency": "CLP",
                "discount": 35,
                "rating": 5,
                "review_count": 128,
                "seller_id": "seller-1",
                "seller_name": "Falabella",
                "availability": "in_stock",
                "image": "https://www.falabella.com/media/80864544-full.jpg"
            }
        ],
        "facets": [],
        "sort_options": []
    },
    "meta": {
        "endpoint_family": "search",
        "country": "cl",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter is missing or invalid. |
| 404 | Not Found | The upstream product or location was not found. |
| 503 | Upstream Unavailable | The public storefront did not answer. No credit was charged. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
