# Flaconi Search API Documentation

<p><strong>Flaconi Search API</strong> returns beauty and perfume products from the public Flaconi storefront. Each row has a numeric price, currency, rating, review count, full-size image and variant id. The ids pass unchanged into the product and reviews routes.</p><p><strong>Cost:</strong> 1 credit per request. Failed and empty requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/flaconi-api/flaconi_search](https://scrappa.co/docs/flaconi-api/flaconi_search)
- **API group:** Flaconi API
- **Endpoint:** `GET https://scrappa.co/api/flaconi/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 |
| --- | --- | --- | --- |
| `q` | string | Yes | Search text, 2 to 100 characters. |
| `page` | integer | No | One-based page number, 1 to 50 (default 1). |
| `locale` | string | No | Storefront locale, de-DE (default). |

## Example response

```json
{
    "data": {
        "query": "parfum",
        "products": [
            {
                "id": "80041833-30",
                "name": "Eau de Parfum",
                "brand": "Dior",
                "image": "https://cdn.flaconi.net/media/catalog/product/3/3/3348901567572-1_c_live.jpg",
                "price": {
                    "current": 98,
                    "currency": "EUR",
                    "original": 120,
                    "discount_percent": 18.3
                },
                "rating": 4.8,
                "in_stock": true,
                "variant_sku": "80041833-30",
                "review_count": 120
            }
        ],
        "pagination": {
            "page": 1,
            "total_pages": 63,
            "has_next_page": true,
            "total_results": 3017
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Error | An offset, filter or invalid value was sent. Not billed. |
|  | Error | Flaconi could not be reached. Not billed. |

## 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)
