# Gaspedaal.nl Scraper (`dadhalfdev/gaspedaal-scraper`) Actor

Scrape used cars from gaspedaal.nl. Paste a search URL from your browser, or use filters (make, model, price, mileage, year, fuel, body, transmission). Returns price, mileage, year, specs, dealer, and listing URL.

- **URL**: https://apify.com/dadhalfdev/gaspedaal-scraper.md
- **Developed by:** [Marco Rodrigues](https://apify.com/dadhalfdev) (community)
- **Categories:** Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#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

## 🚗 Gaspedaal.nl Scraper

Want to find the perfect used car, or analyze the Dutch automotive market? This scraper makes it super easy!

Paste an **`input_url`** from your browser once you've already filtered on Gaspedaal, **or** use **structured filters** (make, model, price, mileage, year, fuel, body, transmission, etc.) — structured filters work better for AI agents. When `input_url` is set it overrides the filters. Either way, you get up to 1000 used car listings from [gaspedaal.nl](https://www.gaspedaal.nl/) with pricing, specs, and dealer details as CSV or JSON.

### 💡 Perfect for...

- **Car Buyers:** Monitor the market for the best deals on your next vehicle in the Netherlands.
- **Dealerships:** Keep an eye on competitors' pricing and inventory to stay competitive.
- **Market Research:** Analyze trends in the Dutch used car market (average prices, popular models, mileage vs. price).
- **Data Analysts:** Download clean, structured data for visualizations, dashboards, or predictive pricing models.
- **🤖 AI Agents:** Power your autonomous agents with real-time Gaspedaal listings. Perfect for OpenClaw workflows and bots tracking specific vehicles.
- **📚 RAG Systems:** Feed detailed vehicle specifications and pricing into Retrieval-Augmented Generation pipelines to answer complex queries about the automotive market.
- **🔗 AI Workflows:** Integrate seamlessly with LangChain, AutoGPT, CrewAI, and other AI frameworks that need structured automotive data.

### ✨ Why you'll love this scraper

- 🔗 **Input URL or Filters:** Paste a Gaspedaal search URL (`input_url`) if you already filtered in the browser, or use structured filters (better for AI agents). `input_url` always wins when set.
- 🎯 **Website-Matched Filters:** Make, model, fuel, body, transmission, colour, price, mileage, and year use the **same option values as gaspedaal.nl**.
- ⚙️ **Rich Listings:** Extracts price, year, mileage, fuel, body, transmission, colour, dealer, and images out of the box.
- ⏱️ **Sorting Options:** Traverse results by relevance, newest, price, mileage, or year — same `srt` codes as on the site.
- 🇳🇱 **Built for the Netherlands:** Covers Gaspedaal’s nationwide occasion inventory (~100 ads per page).

### 📦 What's inside the data?

For every single listing, you will get:

- **Core Details:** `id`, `title`, `url`, `image`
- **Technical Specs:** `make`, `model`, `fuel_type`, `body_type`, `transmission`, `colour`, `doors`, `engine`, `power`, `mileage`, `year`, `vehicle_configuration`
- **Pricing:** `price`, `price_currency`
- **Dealer:** `dealer_name`, `dealer_city`, `dealer_province`, `dealer_url`
- **Context:** `condition`, `availability`

### 🛠️ Sort options

You can tell the scraper what order to read the listings in using the `sort_by` parameter (same `srt` values as Gaspedaal):

- **`df-a`** – Most relevant
- **`dt-d`** – Newest ads *(default)*
- **`pr-a` / `pr-d`** – Price low→high / high→low
- **`km-a` / `km-d`** – Mileage low→high / high→low
- **`bj-d` / `bj-a`** – Newest / oldest year
- **`af-a`** – Distance

### 🚀 Quick start

**Option A — Input URL**

1. Open [Gaspedaal zoeken](https://www.gaspedaal.nl/zoeken), apply filters in the browser, copy the results URL — e.g. `https://www.gaspedaal.nl/bmw/3-serie` or `https://www.gaspedaal.nl/zoeken?pmax=10000`.
2. Paste it into `input_url`.
3. Set `max_cars` and click **Start**.

**Option B — Structured filters (better for AI agents)**

1. Leave `input_url` empty.
2. Pick make/model and optional filters from the dropdowns (same lists as on Gaspedaal).
3. Choose `sort_by`, set `max_cars` (up to 1000).
4. Click **Start** and export CSV, Excel, or JSON when done.

***

#### Tech details for developers 🧑‍💻

**Input Example (structured filters):**

```json
{
  "make": "bmw",
  "model": "bmw::3-serie",
  "max_price": "25000",
  "min_year": "2018",
  "fuel_type": "benzine",
  "sort_by": "pr-a",
  "max_cars": 100
}
```

**Input Example (URL override):**

```json
{
  "input_url": "https://www.gaspedaal.nl/bmw/3-serie?pmax=25000&srt=pr-a",
  "max_cars": 500
}
```

**Output Example:**

```json
{
  "id": 126835043,
  "title": "BMW 3-serie - Touring 318i 2.0",
  "url": "https://www.gaspedaal.nl/bmw/3-serie#126835043",
  "image": "https://cdn.gaspedaal.nl/images/large/....jpg",
  "make": "BMW",
  "model": "3-serie",
  "year": 2019,
  "mileage": 117108,
  "price": 18450,
  "price_currency": "EUR",
  "fuel_type": "Benzine",
  "transmission": "Automaat",
  "body_type": "Stationwagon",
  "colour": "Blauw",
  "dealer_name": "Example Dealer",
  "dealer_city": "Utrecht",
  "dealer_province": "Utrecht"
}
```

### 📋 Input reference (detailed)

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `input_url` | string | No | — | Paste a Gaspedaal `/zoeken` or `/{make}/{model}` URL; overrides filters when set. Leave empty to use filters (better for AI agents). |
| `make` | string enum | No | any | Vehicle make slug (e.g. `bmw`, `volkswagen`). |
| `model` | string enum | No | any | Make + model as `make::slug` (e.g. `bmw::3-serie`). |
| `min_price` / `max_price` | string enum | No | any | Price in EUR (`pmin` / `pmax`). |
| `min_year` / `max_year` | string enum | No | any | Build year (`bmin` / `bmax`). |
| `min_mileage` / `max_mileage` | string enum | No | any | Mileage in km (`kmin` / `kmax`). |
| `fuel_type` | string enum | No | any | e.g. `benzine`, `diesel`, `elektriciteit`, `hybride`. |
| `body_type` | string enum | No | any | e.g. `hatchback`, `suv`, `stationwagen`. |
| `transmission` | string enum | No | any | `automatisch` or `handmatig`. |
| `colour` | string enum | No | any | Colour slug (e.g. `zwart`, `blauw`). |
| `sort_by` | string enum | No | `dt-d` | Gaspedaal `srt` code (see sort options). |
| `max_cars` | integer | No | `50` | Maximum listings (`1`–`1000`). |

#### Notes on filters

- Prefer exact enum strings from the Apify input dropdowns (same values as gaspedaal.nl).
- `model` uses `make::slug` (double colon), e.g. `bmw::3-serie`.
- Prefer `/{make}/{model}` or `/zoeken?...` URLs when pasting `input_url`.
- Gaspedaal SRPs typically return **100 ads per page**.
- Listing URLs use the Gaspedaal deep-link form `/{make}/{model}#{id}`.
- `input_url` always wins over filters when provided.

# Actor input Schema

## `input_url` (type: `string`):

Paste a Gaspedaal search URL (e.g. https://www.gaspedaal.nl/bmw/3-serie or https://www.gaspedaal.nl/zoeken?pmax=10000) to use instead of the filters below — overrides all structured filters when set. Leave empty to use the filters below (better for AI agents).

## `make` (type: `string`):

Vehicle make slug from gaspedaal.nl (e.g. bmw).

## `model` (type: `string`):

Make + model as make::slug (e.g. bmw::3-serie). Pick a row matching your Make.

## `min_price` (type: `string`):

Minimum price (EUR) — pmin on Gaspedaal.

## `max_price` (type: `string`):

Maximum price (EUR) — pmax on Gaspedaal.

## `min_year` (type: `string`):

Minimum build year (bmin).

## `max_year` (type: `string`):

Maximum build year (bmax).

## `min_mileage` (type: `string`):

Minimum mileage in km (kmin).

## `max_mileage` (type: `string`):

Maximum mileage in km (kmax).

## `fuel_type` (type: `string`):

Fuel type (brnst) from gaspedaal.nl.

## `body_type` (type: `string`):

Body type (crs) from gaspedaal.nl.

## `transmission` (type: `string`):

Transmission (trns) from gaspedaal.nl.

## `colour` (type: `string`):

Colour (klr) from gaspedaal.nl.

## `sort_by` (type: `string`):

Sort code (srt) from gaspedaal.nl.

## `max_cars` (type: `integer`):

Maximum number of listings to scrape (capped at 1000). Gaspedaal SRPs typically return 100 ads per page.

## Actor input object example

```json
{
  "make": "",
  "model": "",
  "min_price": "",
  "max_price": "",
  "min_year": "",
  "max_year": "",
  "min_mileage": "",
  "max_mileage": "",
  "fuel_type": "",
  "body_type": "",
  "transmission": "",
  "colour": "",
  "sort_by": "dt-d",
  "max_cars": 50
}
```

# Actor output Schema

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

Table view of scraped listings using the dataset 'overview' view.

## `results` (type: `string`):

All scraped listings from the default dataset without view transformation.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("dadhalfdev/gaspedaal-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("dadhalfdev/gaspedaal-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call dadhalfdev/gaspedaal-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=dadhalfdev/gaspedaal-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/RgV5bOo1RTr1yYp8T/builds/EmkHVPRU39ifaEFCZ/openapi.json
