# RTV Euro AGD Search API Documentation

<p><strong>RTV Euro AGD Search API Documentation</strong> Search the public RTV Euro AGD catalog. Filter by category and price range, sort by price or popularity and page through results. Send price_from and price_to together; a one-sided price filter is rejected. Each product has a numeric PLN price, an original price and discount when one exists, a full size image URL, the rating and review count as numbers, and the PLU id that works unchanged in the product and reviews routes. A price filter is checked on every returned product. A page past the last page returns an empty list, never page 1. Cost: 1 credit per successful request with results. Failed and empty requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/rtveuroagd-api/rtveuroagd_search](https://scrappa.co/docs/rtveuroagd-api/rtveuroagd_search)
- **API group:** RTV Euro AGD API
- **Endpoint:** `GET https://scrappa.co/api/rtveuroagd/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 | No | Search words, for example czajnik. Required unless category is sent. |
| `category` | string | No | Category link name from the filters route, for example czajniki. |
| `price_from` | number | No | Lowest PLN price. Send it together with price_to. No returned product is cheaper. |
| `price_to` | number | No | Highest PLN price. Send it together with price_from. No returned product is more expensive. |
| `sort` | string | No | relevance (default), price_asc, price_desc, popularity, brand, rating, reviews or promotions. Price sorting uses current_price, the effective price after a sale. |
| `page` | integer | No | Page number from 1 with 20 products per page. |
| `facet` | string | No | Facet id from the filters route, for example _cena=100:200. |

## Example response

```json
{
    "data": {
        "results": [
            {
                "plu": "136759627937",
                "name": "Czajnik Bosch TWK1M121 1,7L 2400W",
                "brand": "Bosch",
                "price": {
                    "amount": 136,
                    "currency": "PLN"
                },
                "images": [
                    "https://f00.esfr.pl/foto/7/136759627937/5f8291d2bf8d610195ded68f8d42754c/bosch-twk1m121-1-7l-2400w,136759627937_3.webp"
                ],
                "rating": 4.9,
                "sale_price": {
                    "amount": 119,
                    "currency": "PLN"
                },
                "current_price": {
                    "amount": 119,
                    "currency": "PLN"
                },
                "reviews_count": 54,
                "original_price": {
                    "amount": 149,
                    "currency": "PLN"
                },
                "discount_percent": 20,
                "product_link_name": "bosch-twk1m121-1-7l-2400w"
            }
        ],
        "currency": "PLN",
        "pagination": {
            "has_next": true,
            "per_page": 20,
            "total_pages": 33,
            "current_page": 1,
            "total_results": 651
        },
        "products_count": 651
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing or invalid. Not billed. |
| 422 | Filter Violated | The source answered with prices outside the requested range. Not billed. |
| 502 | Upstream Unavailable | The source did not answer. Not billed. |
| 503 | Upstream Unavailable | No data route is available. Not billed. |
| 502 | Upstream Unavailable | The upstream response format has changed. 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)
