# TruckScout24 Scraper - Used Trucks & Trailers (`serp.cheap.ofc/truckscout24-scraper`) Actor

Scrape TruckScout24 listings across Europe. Search by keyword, category, manufacturer or model and pull full listing details: price (net/gross + VAT), year, mileage, power, gearbox, emission class, condition, location, photos and seller. Pay per result, no start fee, no subscription.

- **URL**: https://apify.com/serp.cheap.ofc/truckscout24-scraper.md
- **Developed by:** [serp.cheap](https://apify.com/serp.cheap.ofc) (community)
- **Categories:** E-commerce, Lead generation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## TruckScout24 Scraper — Used Trucks, Trailers & Commercial Vehicles

Scrape **TruckScout24**, one of Europe's biggest marketplaces for used trucks, trailers, vans,
buses, construction and agricultural machinery. Search by keyword, category, manufacturer or model
and pull **complete listing details** — price, year, mileage, power, gearbox, emission class,
condition, location, photos and seller.

**Fast and cheap. Pay per result, no start fee, no subscription.**

### Why this one

- **The full detail surface.** Each listing returns everything TruckScout24 shows: net and gross
  price (with VAT note), manufacturer and model, year of construction, first registration, mileage,
  power (kW/HP), gearbox, fuel, emission class, axle configuration, colour, dimensions and weights,
  full free-text description, every photo, the seller's location and dealer info.
- **Flexible search.** By keyword (`daf`, `mercedes actros`…), by manufacturer/model, by category —
  or paste any TruckScout24 search or category URL. Pagination is automatic.
- **Keyword autocomplete.** A free `suggest` mode returns the site's own manufacturer / model /
  category suggestions for any term.
- **Self-monitored.** Every run checks upstream health, catching site changes early.

### Modes

Set `mode` in the input:

#### `search` — list listings

`{ "mode": "search", "query": "daf", "priceTo": 50000 }`
or paste URLs: `{ "mode": "search", "searchUrls": ["https://www.truckscout24.com/trailers/used/box"] }`
Returns listing cards (id, title, price, year, mileage, power, fuel, gearbox, location, thumbnail).
Set `detailFollow: true` to also fetch each listing's full detail page.

#### `detail` — full listing detail

`{ "mode": "detail", "detailUrls": ["ts-223-55-097"] }`
Accepts TruckScout24 listing URLs or bare ids. Returns the complete listing object.

#### `suggest` — keyword autocomplete (free)

`{ "mode": "suggest", "query": "merce" }`
Returns manufacturer / model / category suggestions. No charge.

#### `selftest` — free health check

Probes search + detail and reports which are healthy. No charge.

### Search filters

`query` (keyword), `mainCategoryIds`, `manufacturers`, `models`, `priceFrom`/`priceTo`, `yearFrom`.
Or just paste `searchUrls`. `maxItems` caps how many results are returned.

### Output

Two dataset views: **Listings** (search cards) and **Listing detail** (full objects). Prices are in
the listing's own currency (mostly EUR). Some fields (year, mileage, power, gearbox) are only present
for vehicle types that have them — trailers, for instance, have no mileage.

### Pricing

Pay per result — no monthly fee, no start fee. See the Store pricing panel.

# Actor input Schema

## `mode` (type: `string`):

'search' = list results (by filters or a pasted TruckScout24 URL). 'detail' = full detail for specific listings. 'suggest' = free keyword autocomplete. 'selftest' = free health check.

## `searchUrls` (type: `array`):

Paste one or more TruckScout24 search or category URLs (e.g. https://www.truckscout24.com/trailers/used/box or a /main/search/index?... URL). If set, the filters below are ignored. Pagination is automatic.

## `query` (type: `string`):

Free-text search (manufacturer, model, type). Used in 'search' and 'suggest' modes.

## `mainCategoryIds` (type: `string`):

Optional category id (e.g. 246). Filters the search to one vehicle category.

## `manufacturers` (type: `string`):

Optional manufacturer filter (e.g. DAF, Mercedes-Benz, Volvo).

## `models` (type: `array`):

Optional model filter (e.g. XF, Actros). Requires a manufacturer.

## `priceFrom` (type: `integer`):

Minimum price.

## `priceTo` (type: `integer`):

Maximum price.

## `yearFrom` (type: `integer`):

Earliest year of construction / first registration.

## `detailUrls` (type: `array`):

For 'detail' mode: TruckScout24 listing URLs or bare ids (e.g. ts-223-55-097).

## `detailFollow` (type: `boolean`):

In 'search' mode, also fetch each listing's detail page for the full spec surface. Costs one detail charge per listing (slower).

## `maxItems` (type: `integer`):

Cap on listings returned (search) or detail pages (detail).

## `proxyConfiguration` (type: `object`):

The default Apify proxy works well.

## `debug` (type: `boolean`):

Verbose per-request logging for troubleshooting.

## Actor input object example

```json
{
  "mode": "search",
  "searchUrls": [],
  "detailFollow": false,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "debug": false
}
```

# Actor output Schema

## `listings` (type: `string`):

No description

## `detail` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchUrls": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("serp.cheap.ofc/truckscout24-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "searchUrls": [] }

# Run the Actor and wait for it to finish
run = client.actor("serp.cheap.ofc/truckscout24-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchUrls": []
}' |
apify call serp.cheap.ofc/truckscout24-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,serp.cheap.ofc/truckscout24-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ZYop5qyRcImrebhU6/builds/PuTwWYAkT8PO3zts1/openapi.json
