# Coches.net Scraper — Used Cars, Vans & Motorbikes in Spain (`blackfalcondata/coches-scraper`) Actor

Coches.net Scraper — scrape car, van, motorhome, classic & motorcycle listings from Spain's largest vehicle marketplace. Get price, make and model plus seller ratings and listing descriptions, with incremental tracking and structured JSON export.

- **URL**: https://apify.com/blackfalcondata/coches-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **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 and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

### What does Coches.net Scraper do?

Coches.net Scraper extracts structured listing data from [coches.net](https://coches.net) — including make, model, year, mileage and price, seller ratings and reviews, and full vehicle descriptions. It supports keyword search and controllable result limits, so you can run the same query consistently over time. The actor also offers opt-in detail enrichment (full descriptions, equipment specs and view counts) and structured JSON export where the source provides them.

**New to Apify?** [Sign up free](https://console.apify.com/sign-up?fpr=1h3gvi&fp_sid=ctaplain) and use the included $5 monthly platform credit to test this actor.

### Key features

<!-- KEY_FEATURES:START -->
- **🚘 All six vehicle sections, one actor** — one actor scrapes every Coches.net section — cars, vans, motorhomes, classic cars, microcars (no-licence quadricycles) and motorcycles. Pick a section per run with `vehicleType`, or set `all` to sweep the whole marketplace into a single dataset. No separate actor per category.
- **🚗 Vehicle data depth** — every listing returns make, model, year, mileage, fuel type, gearbox, drive type, engine power (hp) and displacement, body type and the Spanish DGT environmental label as first-class structured fields — never buried in description text. Condition is explicit too: `listingType` (Nuevo / Km0 / Seminuevo / Ocasión), `isCertified`, and remaining `warrantyMonths`.
- **💵 Structured pricing** — beyond the headline `priceValue`, each record carries a real price-drop signal — `priceDropAmount` and `priceDropPercentage` when the seller has cut the asking price — plus a market benchmark: `marketPriceAverage` and a `marketPriceRank` showing how the listing is priced against comparable vehicles. Financing is parsed too: `monthlyInstalment`, `financedAmount` and `hasOnlineFinancing`. Target a budget band with `priceMin` / `priceMax`.
- **🤝 Seller & dealer intelligence** — each listing identifies the seller — `sellerName`, dealer-vs-private `sellerType`, and a dealer's `sellerRatingAverage` over `sellerRatingCount` reviews — plus the contact `phone` where the seller publishes one. Restrict a run to dealers or private sellers with the `sellerType` filter.
- **📋 Detail enrichment** — two-stage scraping — list first, then enrich each listing with the full detail-page payload. One input toggle controls the depth.
- **✂️ Description truncation** — cap description length with `descriptionMaxLength` to control LLM prompt cost and dataset size — set 0 for full descriptions, or any char-limit to trim.
- **♻️ Incremental mode** — daily runs emit only listings that are new or whose price/condition changed since last run. Perfect for inventory-diff dashboards and competitive pricing alerts. Saves 80–95% on recurring monitoring.
- **🔔 Notifications** — telegram / Slack / Discord / WhatsApp / webhook alerts on each run. Combine with incremental to ping only when prices or inventory actually move.
- **📦 Compact mode** — light payload with core fields only — comparable rows across listings without HTML or metadata overhead. Perfect for pricing dashboards.
- **🔌 MCP connectors** — export your results into Notion via Apify's MCP connectors — a clean run-summary page, no glue code. Opt-in via the App connector field; deterministic field-mapping, no AI. Built on Apify's connector framework, so more destinations open up as their catalog grows.
<!-- KEY_FEATURES:END -->

### What data can you extract from Coches.net?

Each result includes Core listing fields (`listingId`, `rawId`, `url`, `portalUrl`, `title`, `vehicleType`, `make`, and `makeId`, and more), detail fields when enrichment is enabled (`description`), and contact information (`phone`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

Enable detail enrichment in the input to get richer fields such as full descriptions and contact information where the source provides them.

### Input

The main inputs are a search keyword and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`vehicleType`** — Which marketplace section to scrape. (default: `"cars"`)
- **`query`** — Optional free-text keyword (e.g. "4x4", "automático"). Leave empty to browse everything matching the filters below. Power users can paste a JSON array, e.g. ["gti","sport"], to run several keywords.
- **`make`** — Brand to filter by, e.g. "BMW", "Renault", "Mercedes-Benz". Case-insensitive.
- **`model`** — Model to filter by, e.g. "Serie 3", "Clio". Requires Make. Ignored if the model isn't recognized for that make.
- **`priceMin`** — Lowest price to include.
- **`priceMax`** — Highest price to include.
- **`yearMin`** — Earliest registration year to include.
- **`yearMax`** — Latest registration year to include.
- **`kmMax`** — Maximum mileage to include.
- **`fuelType`** — Filter by fuel/engine type. (default: `""`)
- **`sellerType`** — Restrict to dealers or private sellers. (default: `"all"`)
- **`maxResults`** — Maximum number of listings to return. Set 0 to collect as many as a single run can reliably return — very large pulls are bounded by the run's memory, so raise the run's memory or narrow the search (e.g. by price or make) to go further. (default: `100`)
- ...and 23 more parameters

### Input examples

**Basic search** — Keyword-driven search with a result cap.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "query": "4x4 automático",
  "maxResults": 50
}
````

**Incremental tracking** — Only emit vehicles that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "4x4 automático",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "4x4-automático-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "query": "4x4 automático",
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured listing records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example listing record

```json
{
  "listingId": "0f1b5a40022eecb5bf30c7c8e3c5d2f0866526e694a8f0a4560051e1592915c2",
  "rawId": "62360206",
  "contentHash": "b74ada84e6c39f553d9fe84eff6a4b510a729769c901b7c1010e540b890eaf4b",
  "url": "https://www.coches.net/porsche-911-turbo-coupe-2p-gasolina-2016-en-alicante-62360206-covo.aspx",
  "portalUrl": "https://www.coches.net/porsche-911-turbo-coupe-2p-gasolina-2016-en-alicante-62360206-covo.aspx",
  "title": "PORSCHE 911 Turbo Coupe",
  "vehicleType": "cars",
  "make": "PORSCHE",
  "makeId": 34,
  "model": "911",
  "modelId": 73,
  "year": 2016,
  "kilometers": 52000,
  "fuelType": "Gasolina",
  "fuelTypeId": 2,
  "bodyTypeId": 2,
  "power": 540,
  "cubicCapacity": 3800,
  "transmissionTypeId": 1,
  "drivenWheelsId": 1,
  "priceValue": 132900,
  "priceCurrency": "EUR",
  "listingType": "Ocasión",
  "hasTaxes": true,
  "hasReservation": true,
  "hasOnlineFinancing": false,
  "isFinanced": false,
  "isCertified": false,
  "marketPriceAverage": 128400,
  "marketPriceRank": 3,
  "warrantyMonths": 12,
  "sellerName": "CENTRO PORSCHE ALICANTE ",
  "sellerType": "professional",
  "sellerRatingAverage": 4.7,
  "sellerRatingCount": 13,
  "location": "Alicante / Alacant, Alicante",
  "city": "Alicante / Alacant",
  "province": "Alicante",
  "region": "Comunitat Valenciana",
  "phone": "607209981",
  "imageUrl": "https://a.ccdn.es/cnet/vehicles/18285080/094ac56c-12a9-44ed-9744-25973b30ec21.jpg",
  "imageCount": 10,
  "galleryUrls": [
    "https://a.ccdn.es/cnet/vehicles/18285080/094ac56c-12a9-44ed-9744-25973b30ec21.jpg",
    "https://a.ccdn.es/cnet/vehicles/18285080/f6568c2a-aaee-4af5-9921-cfd334a953d4.jpg",
    "https://a.ccdn.es/cnet/vehicles/18285080/1d08c2cb-f770-4582-bd4a-4d92dd92fa1a.jpg"
  ],
  "publishedAt": "2026-04-07T10:33:30Z",
  "source": "coches.net",
  "scrapedAt": "2026-06-26T09:20:36.381Z",
  "description": "Equipamiento Especial\n\nExterior\n\nXEX\n\nFaros Bi-Xenon en Negro incluye Porsche Dynamic Light System (PDLS)\n\n636\n\nSistema ayuda aparcamiento, delante y detrás\n\n567\n\nParabrisas con tintado graduado\n\n651...",
  "equipment": [
    "Acabado TURBO (clasificación JATO: deportivo S4)",
    "Carrocería tipo coupé de 2 puertas, batalla corta, volante al lado izquierdo, código de plataforma: 991, carrocería & puertas (local): coupé de 2 puertas",
    "Cuatro frenos de disco con cuatro de ellos ventilados",
    "Tracción 4x4 permanente y seleccionable con selección automática",
    "Motor de 3,8 litros ( 3.800 cc ) , seis cilindros en horizontal con cuatro válvulas por cilindro, 102,0 mm de diámetro, 77,5 mm de carrera, relación de compresión: 9,8 y distribución variable",
    "Combustible: alto octanaje sin plomo 98 octanos y Combustible primario: gasolina",
    "Prestaciones: 320 km/h de velocidad máxima y 3,0 segs de aceleración 0-100 km/h",
    "Potencia de 540 CV ( CEE ) 397 kW @ 6.000 rpm (potencia max) 710 Nm de par máximo @ 2.100 rpm (par max) potencia con combustible primario"
  ],
  "optionalEquipment": [
    "Indicador del límite de velocidad",
    "Alfombrillas",
    "Alfombrillas en carbono con ribete de cuero",
    "Alfombrillas personalizadas en carbono con ribete en cuero",
    "Alfombrillas personalizadas Porsche con logo Porsche y ribete en cuero",
    "Asientos delanteros calefactables",
    "Asientos delanteros ventilados",
    "Asientos deportivos Plus, eléctricos, 4 posiciones"
  ],
  "numberOfDoors": 2,
  "numberOfSeats": 4,
  "trimLevel": "Turbo",
  "topSpeed": 320,
  "acceleration": 3,
  "tankCapacityLiters": 68,
  "trunkCapacityLiters": 115,
  "viewCount": 4069,
  "favoriteCount": 339
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape Coches.net

1. Go to [Coches.net Scraper](https://apify.com/blackfalcondata/coches-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword.
3. Set `maxResults` to control how many results you need.
4. Enable `includeDetails` if you need full descriptions, contact info, equipment and emissions data.
5. Click **Start** and wait for the run to finish.
6. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract listing data from Coches.net for market research and competitive analysis.
- Track pricing trends across regions and categories over time.
- Monitor new and changed vehicles on scheduled runs without processing the full dataset every time.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.
- Benchmark seller / dealer reputation using rating fields.

### How much does it cost to scrape Coches.net?

Coches.net Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.0005 per run
- **Per result:** $0.003 per listing record

Example costs:

- 10 results: **$0.03**
- 25 results: **$0.075**
- 100 results: **$0.3**
- 200 results: **$0.6**
- 500 results: **$1.5**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of vehicles that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 250 results per run, daily polling (30 runs/month). Event-pricing examples scale linearly with result count.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.75 | $0.04 | $0.71 (95%) | $1.14 |
| 15% — moderate broad query | $0.75 | $0.11 | $0.64 (85%) | $3.39 |
| 30% — high-volume aggregator | $0.75 | $0.23 | $0.52 (70%) | $6.77 |

Full re-scrape monthly cost at daily polling: $22.51. First month with incremental costs $1.85 / $4.03 / $7.29 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage (compute and proxies) is billed separately by Apify based on actual consumption. Incremental runs consume less on result processing, though fixed per-run overhead stays the same.

### FAQ

#### How many results can I get from Coches.net?

The number of results depends on the search query and available vehicles on Coches.net. Use the `maxResults` parameter to control how many results are returned per run.

#### Does Coches.net Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed vehicles on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate Coches.net Scraper with other apps?

Yes. Coches.net Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use Coches.net Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use Coches.net Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, `descriptionMaxLength`, a single `descriptionFormat`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape Coches.net?

This actor extracts publicly available data from Coches.net. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/coches-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [🚗 mobile.de \[$1/1K💰\] Fast Scraper · Finance · Dealer GPS](https://apify.com/blackfalcondata/mobile-de-scraper?fpr=1h3gvi) — Scrape mobile.de — Germany's largest car marketplace (1.4M+ listings) at $1 / 1,000 results. Full.
- [AutoScout24 Scraper — European Car Listings with Dealer Data](https://apify.com/blackfalcondata/autoscout24-scraper?fpr=1h3gvi) — Scrape autoscout24.com — Europe's largest used-car marketplace with 770K+ listings across 8.
- [Autotrader AU \[$0.9💰\] Car & Caravan Scraper 🇦🇺](https://apify.com/blackfalcondata/autotrader-au-scraper?fpr=1h3gvi) — Scrape autotrader.com.au car & caravan listings — advertised + previous price with a computed.
- [Autotrader Canada Scraper — Car & Truck Listings + Dealers](https://apify.com/blackfalcondata/autotrader-ca-scraper?fpr=1h3gvi) — Scrape autotrader.ca — Canada's largest car marketplace. Get structured make/model/year/price.
- [Autotrader UK \[$0.75💰/1K\] - Car Scraper, Full Detail](https://apify.com/blackfalcondata/autotrader-uk-scraper?fpr=1h3gvi) — Scrape UK car listings from Auto Trader by make, model, price, year, mileage, fuel, and body type..
- [Bilbasen Scraper - Denmark’s Car Marketplace](https://apify.com/blackfalcondata/bilbasen-scraper?fpr=1h3gvi) — Scrape bilbasen.dk, Denmark’s largest car marketplace, with full vehicle specs, seller contacts,.
- [DBA Scraper - Denmark’s Largest Marketplace](https://apify.com/blackfalcondata/dba-listings-scraper?fpr=1h3gvi) — Scrape dba.dk — Denmark's largest classifieds platform. Covers both marketplace and vehicle.
- [Finn.no Mobility Scraper 💰 $2/1K — Cars, MC, Boats & More](https://apify.com/blackfalcondata/finn-mobility-scraper?fpr=1h3gvi) — Scrape finn.no/mobility — Norway's largest vehicle marketplace with 100,000+ listings across 6.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi\&fp_sid=ctaplain) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

# Actor input Schema

## `vehicleType` (type: `string`):

Which marketplace section to scrape.

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

Optional free-text keyword (e.g. "4x4", "automático"). Leave empty to browse everything matching the filters below. Power users can paste a JSON array, e.g. \["gti","sport"], to run several keywords.

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

Brand to filter by, e.g. "BMW", "Renault", "Mercedes-Benz". Case-insensitive.

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

Model to filter by, e.g. "Serie 3", "Clio". Requires Make. Ignored if the model isn't recognized for that make.

## `priceMin` (type: `integer`):

Lowest price to include.

## `priceMax` (type: `integer`):

Highest price to include.

## `yearMin` (type: `integer`):

Earliest registration year to include.

## `yearMax` (type: `integer`):

Latest registration year to include.

## `kmMax` (type: `integer`):

Maximum mileage to include.

## `fuelType` (type: `string`):

Filter by fuel/engine type.

## `sellerType` (type: `string`):

Restrict to dealers or private sellers.

## `maxResults` (type: `integer`):

Maximum number of listings to return. Set 0 to collect as many as a single run can reliably return — very large pulls are bounded by the run's memory, so raise the run's memory or narrow the search (e.g. by price or make) to go further.

## `includeDetails` (type: `boolean`):

Fetch each listing's full detail to add the seller's description, the complete equipment list and deep specs (doors, seats, trim, top speed, 0–100, tank & boot capacity) plus view/favorite counts. This is noticeably slower and uses more compute — leave it off for fast listing-level scrapes and turn it on when you need the rich per-car data.

## `descriptionMaxLength` (type: `integer`):

Truncate each seller description to at most this many characters (0 = keep the full text). Only applies when 📋 Include full details is on.

## `descriptionFormat` (type: `string`):

Pick a single description representation. `all` keeps every variant; `text` / `html` / `markdown` drop the others. Only applies when 📋 Include full details is on.

## `compact` (type: `boolean`):

Return only the core fields — smaller records for AI-agent / MCP workflows.

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string and empty-array fields from each record. Smaller payloads for dashboards and AI agents.

## `incrementalMode` (type: `boolean`):

Compare against the previous run and tag each listing NEW / UPDATED / UNCHANGED / EXPIRED. State Key is optional — it is derived from your filter selection so different searches never share state.

## `stateKey` (type: `string`):

Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from your filters.

## `emitUnchanged` (type: `boolean`):

When incremental, also output listings that did not change since the last run.

## `emitExpired` (type: `boolean`):

When incremental, also output listings that disappeared since the last run (marked EXPIRED).

## `skipReposts` (type: `boolean`):

When incremental, skip listings whose vehicle matches one that expired in a prior run (the same car relisted under a new id).

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `notificationLimit` (type: `integer`):

Maximum number of listings included in each notification message (1–20).

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED listings. Has no effect outside incremental mode.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (free service-conversation window).

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "34600123456"). Recipient must have messaged your business number within the last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results. Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## Actor input object example

```json
{
  "vehicleType": "cars",
  "query": "4x4 automático",
  "fuelType": "",
  "sellerType": "all",
  "maxResults": 10,
  "includeDetails": false,
  "descriptionMaxLength": 0,
  "descriptionFormat": "all",
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "skipReposts": false,
  "notificationLimit": 5,
  "notifyOnlyChanges": false
}
```

# Actor output Schema

## `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 = {
    "query": "4x4 automático",
    "maxResults": 10,
    "includeDetails": false,
    "excludeEmptyFields": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/coches-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 = {
    "query": "4x4 automático",
    "maxResults": 10,
    "includeDetails": False,
    "excludeEmptyFields": False,
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/coches-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 '{
  "query": "4x4 automático",
  "maxResults": 10,
  "includeDetails": false,
  "excludeEmptyFields": false
}' |
apify call blackfalcondata/coches-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Coches.net Scraper — Used Cars, Vans & Motorbikes in Spain",
        "description": "Coches.net Scraper — scrape car, van, motorhome, classic & motorcycle listings from Spain's largest vehicle marketplace. Get price, make and model plus seller ratings and listing descriptions, with incremental tracking and structured JSON export.",
        "version": "0.1",
        "x-build-id": "OkStdRl6vbDzTjiG5"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/blackfalcondata~coches-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-blackfalcondata-coches-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/blackfalcondata~coches-scraper/runs": {
            "post": {
                "operationId": "runs-sync-blackfalcondata-coches-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/blackfalcondata~coches-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-blackfalcondata-coches-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "vehicleType": {
                        "title": "🚗 Vehicle type",
                        "enum": [
                            "cars",
                            "vans",
                            "motorhomes",
                            "classics",
                            "microcars",
                            "motorcycles",
                            "all"
                        ],
                        "type": "string",
                        "description": "Which marketplace section to scrape.",
                        "default": "cars"
                    },
                    "query": {
                        "title": "🔍 Keyword",
                        "type": "string",
                        "description": "Optional free-text keyword (e.g. \"4x4\", \"automático\"). Leave empty to browse everything matching the filters below. Power users can paste a JSON array, e.g. [\"gti\",\"sport\"], to run several keywords."
                    },
                    "make": {
                        "title": "🏷️ Make",
                        "type": "string",
                        "description": "Brand to filter by, e.g. \"BMW\", \"Renault\", \"Mercedes-Benz\". Case-insensitive."
                    },
                    "model": {
                        "title": "🚙 Model",
                        "type": "string",
                        "description": "Model to filter by, e.g. \"Serie 3\", \"Clio\". Requires Make. Ignored if the model isn't recognized for that make."
                    },
                    "priceMin": {
                        "title": "💶 Min price (€)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Lowest price to include."
                    },
                    "priceMax": {
                        "title": "💶 Max price (€)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Highest price to include."
                    },
                    "yearMin": {
                        "title": "📅 Min year",
                        "minimum": 1900,
                        "type": "integer",
                        "description": "Earliest registration year to include."
                    },
                    "yearMax": {
                        "title": "📅 Max year",
                        "minimum": 1900,
                        "type": "integer",
                        "description": "Latest registration year to include."
                    },
                    "kmMax": {
                        "title": "🛣️ Max mileage (km)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum mileage to include."
                    },
                    "fuelType": {
                        "title": "⛽ Fuel type",
                        "enum": [
                            "",
                            "gasolina",
                            "diesel",
                            "electrico",
                            "hibrido",
                            "hibrido-enchufable",
                            "glp",
                            "cng"
                        ],
                        "type": "string",
                        "description": "Filter by fuel/engine type.",
                        "default": ""
                    },
                    "sellerType": {
                        "title": "🤝 Seller type",
                        "enum": [
                            "all",
                            "professional",
                            "private"
                        ],
                        "type": "string",
                        "description": "Restrict to dealers or private sellers.",
                        "default": "all"
                    },
                    "maxResults": {
                        "title": "💯 Max results",
                        "minimum": 0,
                        "maximum": 100000,
                        "type": "integer",
                        "description": "Maximum number of listings to return. Set 0 to collect as many as a single run can reliably return — very large pulls are bounded by the run's memory, so raise the run's memory or narrow the search (e.g. by price or make) to go further.",
                        "default": 100
                    },
                    "includeDetails": {
                        "title": "📋 Include full details",
                        "type": "boolean",
                        "description": "Fetch each listing's full detail to add the seller's description, the complete equipment list and deep specs (doors, seats, trim, top speed, 0–100, tank & boot capacity) plus view/favorite counts. This is noticeably slower and uses more compute — leave it off for fast listing-level scrapes and turn it on when you need the rich per-car data.",
                        "default": false
                    },
                    "descriptionMaxLength": {
                        "title": "✂️ Max description length",
                        "minimum": 0,
                        "maximum": 100000,
                        "type": "integer",
                        "description": "Truncate each seller description to at most this many characters (0 = keep the full text). Only applies when 📋 Include full details is on.",
                        "default": 0
                    },
                    "descriptionFormat": {
                        "title": "📝 Description Format",
                        "enum": [
                            "all",
                            "text",
                            "html",
                            "markdown"
                        ],
                        "type": "string",
                        "description": "Pick a single description representation. `all` keeps every variant; `text` / `html` / `markdown` drop the others. Only applies when 📋 Include full details is on.",
                        "default": "all"
                    },
                    "compact": {
                        "title": "📦 Compact output",
                        "type": "boolean",
                        "description": "Return only the core fields — smaller records for AI-agent / MCP workflows.",
                        "default": false
                    },
                    "excludeEmptyFields": {
                        "title": "🧹 Exclude empty fields",
                        "type": "boolean",
                        "description": "Drop null, empty-string and empty-array fields from each record. Smaller payloads for dashboards and AI agents.",
                        "default": false
                    },
                    "incrementalMode": {
                        "title": "♻️ Incremental mode",
                        "type": "boolean",
                        "description": "Compare against the previous run and tag each listing NEW / UPDATED / UNCHANGED / EXPIRED. State Key is optional — it is derived from your filter selection so different searches never share state.",
                        "default": false
                    },
                    "stateKey": {
                        "title": "🔑 State key",
                        "type": "string",
                        "description": "Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from your filters."
                    },
                    "emitUnchanged": {
                        "title": "➡️ Include unchanged listings",
                        "type": "boolean",
                        "description": "When incremental, also output listings that did not change since the last run.",
                        "default": false
                    },
                    "emitExpired": {
                        "title": "🗑️ Include expired listings",
                        "type": "boolean",
                        "description": "When incremental, also output listings that disappeared since the last run (marked EXPIRED).",
                        "default": false
                    },
                    "skipReposts": {
                        "title": "🚫 Skip reposts",
                        "type": "boolean",
                        "description": "When incremental, skip listings whose vehicle matches one that expired in a prior run (the same car relisted under a new id).",
                        "default": false
                    },
                    "telegramToken": {
                        "title": "🔑 Telegram bot token",
                        "type": "string",
                        "description": "Telegram bot token (from @BotFather). Required for Telegram notifications."
                    },
                    "telegramChatId": {
                        "title": "💬 Telegram chat ID",
                        "type": "string",
                        "description": "Telegram chat or channel ID (e.g. \"-100123456789\"). Required when telegramToken is set."
                    },
                    "discordWebhookUrl": {
                        "title": "🎮 Discord webhook URL",
                        "type": "string",
                        "description": "Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook."
                    },
                    "slackWebhookUrl": {
                        "title": "💼 Slack webhook URL",
                        "type": "string",
                        "description": "Slack incoming webhook URL. api.slack.com/messaging/webhooks."
                    },
                    "notificationLimit": {
                        "title": "📊 Max listings per notification",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Maximum number of listings included in each notification message (1–20).",
                        "default": 5
                    },
                    "notifyOnlyChanges": {
                        "title": "🔄 Notify only new/updated",
                        "type": "boolean",
                        "description": "When Incremental Mode is on, only send notifications for NEW and UPDATED listings. Has no effect outside incremental mode.",
                        "default": false
                    },
                    "whatsappAccessToken": {
                        "title": "📱 WhatsApp access token",
                        "type": "string",
                        "description": "WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (free service-conversation window)."
                    },
                    "whatsappPhoneNumberId": {
                        "title": "📞 WhatsApp phone number ID",
                        "type": "string",
                        "description": "Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set."
                    },
                    "whatsappTo": {
                        "title": "📲 WhatsApp recipient",
                        "type": "string",
                        "description": "Recipient phone in E.164 format without + (e.g. \"34600123456\"). Recipient must have messaged your business number within the last 24h."
                    },
                    "webhookUrl": {
                        "title": "🪝 Generic webhook URL",
                        "type": "string",
                        "description": "Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends."
                    },
                    "webhookHeaders": {
                        "title": "📋 Webhook headers",
                        "type": "object",
                        "description": "Optional JSON object of custom headers (e.g. {\"Authorization\":\"Bearer ...\"})."
                    },
                    "appConnector": {
                        "title": "Send results to a connected app",
                        "type": "string",
                        "description": "Optional. Pick a connected app under Settings → API & Integrations to receive your results. Best-effort across MCP connectors as Apify expands its catalog."
                    },
                    "mcpIssueTeam": {
                        "title": "Issue tracker team",
                        "type": "string",
                        "description": "Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
