# idealo Autocomplete API Documentation

Suggest search terms for a text start. Each suggestion names its kind (term, category or brand) and carries the category ID, the facet ID or the brand ID it points to. Use the IDs with search, brand_products and deals.

- **Documentation:** [https://scrappa.co/docs/idealo-api/idealo_autocomplete](https://scrappa.co/docs/idealo-api/idealo_autocomplete)
- **API group:** idealo API
- **Endpoint:** `GET https://scrappa.co/api/idealo/autocomplete`

## 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 | Text start. Alias: q. |
| `limit` | integer | No | Number of suggestions, 1 to 10. Defaults to 10. |

## Example response

```json
{
    "meta": {
        "duration_ms": 1500,
        "upstream_calls": 2
    },
    "query": "samsung",
    "brands": [
        {
            "name": "Samsung",
            "brand_id": "1049"
        }
    ],
    "success": true,
    "categories": [
        {
            "name": "Handys & Smartphones",
            "category_id": "19116"
        }
    ],
    "suggestions": [
        {
            "kind": "category",
            "term": "Samsung",
            "label": "Samsung - in Handys & Smartphones",
            "brand_id": null,
            "location": "in Handys & Smartphones",
            "filter_id": "1820730",
            "category_id": "19116",
            "is_trending": false
        }
    ]
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | Returned when a required parameter is missing or a value is out of range. No credits are charged. |
| 404 | Not Found | Returned when idealo does not know the product, shop or page. No credits are charged. |
| 503 | Service Unavailable | Returned when idealo could not be read after several attempts. Failed requests are not charged. Try again. |
| 502 | Unexpected Response | Returned when idealo answers with a page this API cannot read. Failed requests are not charged. |

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