# Used Trucks & Machinery – Autoline, Machineryline, Agroline (`sn41lz/autoline-machineryline-agroline-scraper`) Actor

Scrape used trucks, construction and agricultural machinery listings from Autoline, Machineryline and Agroline: price, year, mileage, hours, power, location, seller and photos.

- **URL**: https://apify.com/sn41lz/autoline-machineryline-agroline-scraper.md
- **Developed by:** [Sergi Espí Zamora](https://apify.com/sn41lz) (community)
- **Categories:** E-commerce, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 listing saveds

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?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Used Trucks & Machinery Scraper – Autoline, Machineryline, Agroline

Scrape listings from the three big European marketplaces for used commercial vehicles and machinery, all run on the same platform:

- **Autoline**: trucks, tractor units, trailers, vans, buses.
- **Machineryline**: construction equipment such as excavators, loaders, cranes and forklifts.
- **Agroline**: agricultural machinery such as tractors, harvesters and sprayers.

Paste any **category or search URL** (any country version, with any filters you set on the site) and get every ad as clean, structured data: **price, year, mileage, engine hours, power, fuel, location, seller and photos**.

### Who is it for?

- **Dealers and traders** monitoring prices and stock across Europe.
- **Buyers** looking for the best deals on a model.
- **Analysts** studying used equipment prices by brand, year and country.
- **Lead generation**: find dealers selling a given type of machinery.

### What data do you get?

| Field | Example |
|---|---|
| `title`, `brand`, `category` | Volvo FH13 460, Volvo, Box truck |
| `price`, `currency`, `priceText` | 14900, EUR, €14,900 (as shown on the site version you used) |
| `originalPrice`, `originalCurrency` | 100, SEK (the seller's own price, when published) |
| `priceEUR` | 14900 (when the price is available in euros) |
| `adType`, `isAuction` | sale / auction / rent, false |
| `year`, `mileageKm`, `engineHours` | 2012, 1155110, null |
| `power`, `fuel`, `condition` | 469 HP (345 kW), diesel, used |
| `properties` | every property shown on the card, e.g. axle configuration, suspension, Euro class |
| `country`, `city` | Lithuania, Vilnius |
| `seller`, `verifiedSeller`, `sellerYearsOnSite` | UAB GEDAIVA, true, 13 |
| `image`, `images`, `photosCount` | photo URLs |
| `url`, `id` | direct link to the ad |

### How to use it

1. Go to autoline, machineryline or agroline and open a category, for example *Tractor units* or *Crawler excavators*.
2. Optionally set filters on the site (brand, year, price, country…).
3. Copy the URL from your browser and paste it into **Category or search URLs**. You can add as many as you like, from any of the three sites.
4. Set **Max results** to control cost, and click **Start**.
5. Download the results as Excel, CSV or JSON, or send them to Google Sheets.

**Tip:** schedule it daily to track prices and new stock in the categories you follow.

### How much does it cost?

$0.002 per listing (**$2 per 1,000 listings**). A category with 500 ads costs about $1. Use **Max results** to set a hard cap.

### Notes

- Past the last page the sites show the first page again; the Actor detects this and stops, so you never pay twice for the same ad.
- The Actor reads the public listing pages at a gentle pace and doesn't open the individual ads.

***

### En español

Extrae anuncios de **camiones, maquinaria de construcción y maquinaria agrícola de segunda mano** de **Autoline, Machineryline y Agroline**. Pega la URL de cualquier categoría o búsqueda (de cualquier país y con tus filtros) y obtén precio, año, kilómetros, horas, potencia, ubicación, vendedor y fotos de cada anuncio. Cuesta 2 $ por cada 1.000 anuncios.

# Actor input Schema

## `startUrls` (type: `array`):

Paste category or search result URLs from autoline, machineryline or agroline (any country version, with any filters you set on the site).

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

Stop after this many listings in total. 0 = no limit.

## `maxPagesPerUrl` (type: `integer`):

Each page has about 25 listings. 0 = all pages (up to 400).

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://autoline.info/-/box-trucks--c12"
    },
    {
      "url": "https://machineryline.com/-/asphalt-cutters--c136"
    }
  ],
  "maxItems": 100,
  "maxPagesPerUrl": 0
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `results` (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 = {
    "startUrls": [
        {
            "url": "https://autoline.info/-/box-trucks--c12"
        },
        {
            "url": "https://machineryline.com/-/asphalt-cutters--c136"
        }
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("sn41lz/autoline-machineryline-agroline-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 = {
    "startUrls": [
        { "url": "https://autoline.info/-/box-trucks--c12" },
        { "url": "https://machineryline.com/-/asphalt-cutters--c136" },
    ],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("sn41lz/autoline-machineryline-agroline-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 '{
  "startUrls": [
    {
      "url": "https://autoline.info/-/box-trucks--c12"
    },
    {
      "url": "https://machineryline.com/-/asphalt-cutters--c136"
    }
  ],
  "maxItems": 100
}' |
apify call sn41lz/autoline-machineryline-agroline-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sn41lz/autoline-machineryline-agroline-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/3BOuYAevCFcnunvZH/builds/p2oA0qwZcYWfjrIDt/openapi.json
