# Interdiscount Search API Documentation

<p><strong>Interdiscount Search API Documentation</strong> Search the public Interdiscount Switzerland catalog. Returns 10-digit product ids, numeric CHF prices, image URLs, ratings and review counts. Brand, price, sort, promotion, page and locale filters are honoured. One request costs 1 credit. Empty and failed requests are not billed. Not affiliated with Interdiscount.</p>

- **Documentation:** [https://scrappa.co/docs/interdiscount-api/interdiscount_search](https://scrappa.co/docs/interdiscount-api/interdiscount_search)
- **API group:** Interdiscount API
- **Endpoint:** `GET https://scrappa.co/api/interdiscount/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 |
| --- | --- | --- | --- |
| `text` | string | Yes | Search words. |
| `brand` | string | No | Brand filter. |
| `priceMin` | number | No | Minimum CHF price. |
| `priceMax` | number | No | Maximum CHF price. |
| `sort` | string | No | relevance, price-asc, price-desc, averageRating, availability or onlineDate. |
| `promo` | string | No | Promotion label filter. |
| `page` | integer | No | 1-based page. |
| `pageSize` | integer | No | Items per page, 1 to 100. |
| `lang` | string | No | Locale: de, fr or it. |

## Example response

```json
{
    "data": {
        "items": [
            {
                "code": "0014559723",
                "name": "Example phone",
                "imageUrl": "https://www.interdiscount.ch/static-shops/products/720/0014559723.jpg",
                "brandName": "APPLE",
                "currentPrice": {
                    "amount": 1299,
                    "currency": "CHF"
                },
                "averageRating": 4.5,
                "numberOfReviews": 2
            }
        ],
        "query": "iphone:relevance",
        "pagination": {
            "pageSize": 100,
            "currentPage": 0,
            "numberOfPages": 33,
            "totalNumberOfResults": 3252
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. Not billable. |

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