# Tchibo Query Search API Documentation

`GET /api/tchibo/search` returns public Tchibo product suggestions as JSON.

## What you get

`products[]` holds `id`, `article_id`, `title`, `url`, `price`, `original_price`, `discount_percent`, `currency` and `image`. `search_terms[]` holds the terms Tchibo suggests. Use a product `id` unchanged with the product and reviews endpoints. For public category paths, call the category endpoint with `path=/`.

## Credits

A successful request costs **1 credit**. Mobile egress is free. Errors, blocks and `404` answers cost nothing. The response shows the charge in `meta.credits_charged`.

- **Documentation:** [https://scrappa.co/docs/tchibo-api/tchibo_search](https://scrappa.co/docs/tchibo-api/tchibo_search)
- **API group:** Tchibo API
- **Endpoint:** `GET https://scrappa.co/api/tchibo/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 |
| --- | --- | --- | --- |
| `query` | string | Yes | Search words, for example kaffee. |
| `site` | string | No | Storefront: DE, AT or CH. Default DE. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/tchibo/search?query=kaffee&site=DE"
```

## Example response

```json
{
    "success": true,
    "query": "kaffee",
    "site": "DE",
    "products": [
        {
            "id": "206154754124",
            "title": "Caff\u00e8 Crema",
            "price": 12.5,
            "currency": "EUR"
        }
    ],
    "search_terms": [
        "kaffee",
        "kaffeebohnen"
    ],
    "meta": {
        "endpoint_family": "tchibo-search",
        "billable": true,
        "attempts": 1,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing, unknown or unusable. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | Tchibo could not be reached in time or answered with a block or unexpected data (`upstream_unavailable`, `upstream_blocked`, `parser_drift`). Retryable and never billed. Clients are never rate limited. |

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