# Netto Search Suggestions API Documentation

`GET /api/netto/suggest` returns Netto suggestions as structured JSON.

## What you get

Each suggestion has `name`, `type`, numeric `hit_count`, a full-size `image`, a numeric EUR `price`, `rating`, `category`, the product `id` and a `url`. Use the `id` unchanged with the product endpoint.

## 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_suggest](https://scrappa.co/docs/netto-api/netto_suggest)
- **API group:** Netto API
- **Endpoint:** `GET https://scrappa.co/api/netto/suggest`

## 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 to suggest. |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "query": "kaffee",
    "suggestions": [
        {
            "name": "Kaffee",
            "type": "product",
            "hit_count": 1,
            "image": "https://media.netto-online.de/image.jpg",
            "price": 4.99,
            "rating": 4.5,
            "category": "Kaffee",
            "id": "2997279000",
            "url": "https://www.netto-online.de/p-2997279000"
        }
    ],
    "meta": {
        "endpoint_family": "netto-suggest",
        "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)
