# Beslist Search Suggestions API Documentation

`GET /api/beslist/suggest` returns suggestion titles with their category and URL, plus product hits with title, price, image and stock flag. Pass a short search prefix as `query`.

## Credits

A successful request costs **1 credit**. Errors, challenges and empty results cost nothing. The response shows the charge in `meta.credits_charged`. Clients are never rate limited.

- **Documentation:** [https://scrappa.co/docs/beslist-api/beslist_suggest](https://scrappa.co/docs/beslist-api/beslist_suggest)
- **API group:** Beslist API
- **Endpoint:** `GET https://scrappa.co/api/beslist/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 prefix. |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "currency": "EUR",
    "suggestions": [
        {
            "title": "koptelefoon",
            "category": "Elektronica"
        }
    ],
    "products": [
        {
            "title": "Example headphones",
            "price": 699,
            "currency": "EUR"
        }
    ],
    "meta": {
        "endpoint_family": "beslist-suggest",
        "billable": true,
        "attempts": 1,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The public source has no product with that id (`not_found`). Non-billable. |
| 422 | Validation Error | A query parameter is missing, unknown or unusable. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | The source could not be reached, answered with a challenge or changed its answer shape (`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)
