# Netto Product Search API Documentation

`GET /api/netto/search` returns Netto products as structured JSON. Pass `query` or `category`, not both.

## What you get

Each product has `id`, `sku`, `name`, `brand`, numeric EUR `price`, `original_price`, `discount_percent`, `base_price_per_unit`, a full-size `image`, `url`, `channel`, `valid_from`, `valid_to` and `scraped_at` in ISO 8601. Use `id` unchanged with the product endpoint.

## Categories and pages

`category` accepts a category id or slug. With `category`, `page` selects a page of 60 products: `/{slug}/c-{id}/{page}`. Pages hold disjoint ids and page 1 is never relabelled. Keyword search has no page parameter.

## Credits

A successful request costs **1 credit**. Errors and challenges cost nothing. The response shows the charge in `meta.credits_charged`.

- **Documentation:** [https://scrappa.co/docs/netto-api/netto_search](https://scrappa.co/docs/netto-api/netto_search)
- **API group:** Netto API
- **Endpoint:** `GET https://scrappa.co/api/netto/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. Use this or category. |
| `category` | string | No | Category id or slug. Use this or query. |
| `page` | integer | No | Category page of 60 products. Only with category. |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "query": "kaffee",
    "page": 1,
    "page_size": 60,
    "products": [
        {
            "id": "2997279000",
            "sku": "2997279000",
            "name": "Netto Kaffee",
            "brand": "Netto",
            "price": 4.99,
            "original_price": 6.99,
            "discount_percent": 29,
            "base_price_per_unit": "2,50 \u20ac / kg",
            "currency": "EUR",
            "image": "https://media.netto-online.de/image.jpg",
            "channel": "online",
            "in_stock": null,
            "valid_from": "2026-07-13",
            "valid_to": "2026-07-18",
            "scraped_at": "2026-07-13T08:00:00Z"
        }
    ],
    "meta": {
        "endpoint_family": "netto-search",
        "billable": true,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing, unknown or outside the allowed values. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | The storefront could not be reached or answered with a challenge (`upstream_blocked`, `upstream_unavailable`, `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)
