# Beslist Product Search API Documentation

`GET /api/beslist/search` returns public product cards with a numeric price, original and sale price, computed discount, shop count and rating. Use `query` or `category`. `page` runs from 1 to 50 and sets `offset` to (page - 1) * 76, so page N never returns page one. `position` is global: page N starts at (N - 1) * 76 + 1. Only `sort=popularity` is available. Images are full-size URLs. Ids are strings and pass unchanged to product detail.

## 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_search](https://scrappa.co/docs/beslist-api/beslist_search)
- **API group:** Beslist API
- **Endpoint:** `GET https://scrappa.co/api/beslist/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 |
| --- | --- | --- | --- |
| `query` | string | Yes | Search words (use this or category). |
| `category` | string | Yes | Category keyword (use this or query). |
| `page` | integer | No | Result page, 1 to 50. |
| `sort` | string | No | Only popularity is available. |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "currency": "EUR",
    "items": [
        {
            "id": "0745760375837",
            "title": "Example headphones",
            "price": 699,
            "currency": "EUR",
            "shop_count": 2
        }
    ],
    "num_found": 10000,
    "meta": {
        "endpoint_family": "beslist-search",
        "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)
