# TruckScout24 Search API Documentation

Search public TruckScout24 listings by category, make, model, first-registration year, price, location and page. Prices are numeric EUR. A valid empty result is a successful response.

- **Documentation:** [https://scrappa.co/docs/truckscout24-api/truckscout24_search](https://scrappa.co/docs/truckscout24-api/truckscout24_search)
- **API group:** TruckScout24 API
- **Endpoint:** `GET https://scrappa.co/api/truckscout24/v1/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 |
| --- | --- | --- | --- |
| `category` | string | No | Numeric category id from autocomplete or ids. |
| `make` | string | No | Manufacturer name or id from autocomplete. |
| `model` | string | No | Model name from autocomplete. |
| `year_from` | integer | No | Minimum first-registration year, 1900 to 2100. |
| `year_to` | integer | No | Maximum first-registration year, 1900 to 2100. |
| `price_from` | integer | No | Minimum net price in EUR. |
| `price_to` | integer | No | Maximum net price in EUR. |
| `location` | string | No | City or country to match on result cards. |
| `page` | integer | No | One-based page number, 1 to 8. Defaults to 1. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/truckscout24/v1/search?category=246&make=MAN&page=2"
```

## Example response

```json
{
    "success": true,
    "data": {
        "listings": [
            {
                "id": "ts-233-69-146",
                "price": 47500,
                "currency": "EUR",
                "price_type": "fixed",
                "first_registration": "2019-05-01"
            }
        ],
        "pagination": {
            "page": 2,
            "per_page": 25,
            "count": 25,
            "has_more": true
        }
    },
    "meta": {
        "endpoint_family": "search"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A public parameter is invalid. This response is not billable. |
| 502 | Invalid Source Response | TruckScout24 returned an unexpected response. This response is not billable. |
| 503 | Source Unavailable | The public source is temporarily unavailable. This response is 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)
