# Datart Product Search API Documentation

<p><strong>Datart Product Search API Documentation</strong> Search the Czech Datart catalog by query. Each item has a public match code, name, CZK price, old price, discount, full-size image URL, rating, review count and product url. Page is honoured. Cost: 7 credits per successful request with results. Failed and empty responses are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/datart-api/datart_search](https://scrappa.co/docs/datart-api/datart_search)
- **API group:** Datart API
- **Endpoint:** `GET https://scrappa.co/api/datart/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. Example: televize. |
| `page` | integer | No | Page number from 1. |

## Example response

```json
{
    "data": {
        "items": [
            {
                "id": "LGGOLED55B56",
                "url": "https://www.datart.cz/lg-oled-tv.html",
                "name": "55 OLED TV",
                "slug": "lg-oled-tv",
                "image": "https://image.datart.cz/full/tv.jpg",
                "price": 14990,
                "rating": 4.6,
                "currency": "CZK",
                "discount": 3000,
                "old_price": 17990,
                "match_code": "LGGOLED55B56",
                "rating_scale": "5",
                "review_count": 189
            }
        ],
        "currency": "CZK",
        "pagination": {
            "has_next": true,
            "per_page": 22,
            "current_page": 1
        }
    },
    "meta": {
        "credits": 7,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The query is missing or an unverified filter was sent. 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)
