# Alza Autocomplete API Documentation

<p><strong>Alza Autocomplete API</strong> returns public query phrases, categories, producers, products and articles with ids taken from Alza hrefs. Set empty to true for trending and last visited entries. Ids work in the other routes. 1 credit per successful request.</p>

- **Documentation:** [https://scrappa.co/docs/alza-api/alza_autocomplete](https://scrappa.co/docs/alza-api/alza_autocomplete)
- **API group:** Alza API
- **Endpoint:** `GET https://scrappa.co/api/alza/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 | No | Partial search text |
| `country` | string | No | CZ or SK |
| `empty` | boolean | No | true for trending entries |

## Example response

```json
{
    "data": {
        "phrases": [],
        "categories": [],
        "commodities": []
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Validation failed |  |
|  | Alza could not be reached |  |

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