# Coches.net Scraper — Spain Used Cars & Prices (`crawloop/coches-net-scraper`) Actor

Scrape Coches.net used-car listings in Spain from public search pages. Each row includes the asking price in EUR, the site average price and price rank, year, kilometres, fuel, city, and whether the seller is a dealer or a private owner.

- **URL**: https://apify.com/crawloop/coches-net-scraper.md
- **Developed by:** [Andrej Kiva](https://apify.com/crawloop) (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 listings

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/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

## Coches.net Scraper — Spain Used Cars & Prices

> **Disclaimer:** Unofficial tool — not affiliated with, sponsored by, or endorsed by Adevinta Spain S.L.U. or its affiliates. Data is read from publicly accessible search and category pages only. No login. You are responsible for complying with applicable law (including GDPR where personal data appears) and the site’s terms. No warranty on accuracy or availability. Provided for informational and research use.

**Coches.net scraper** for used-car listings in Spain. Each row is a public search card: asking price in EUR, the site’s average price and price rank, year, kilometres, fuel, horsepower, city, province, and seller type (dealer or private). Export the dataset as JSON or CSV. Use it as a **Coches.net API alternative** from **Python**, **Node.js**, **cURL**, or **Apify MCP**.

**Best for:** dealer comps on one make, a price-band check against the site average, and a scheduled run that saves only new ads and price changes.

| Actor | Role |
| :--- | :--- |
| Coches.net Scraper ◄── you are here | Spain used-car search cards, market average, price rank, price monitor |
| [AutoScout24 Scraper](https://apify.com/crawloop/autoscout24-scraper) | Europe used-car listings |
| [mobile.de Scraper](https://apify.com/crawloop/mobile-de-scraper) | Germany vehicle listings |
| [Otomoto Scraper](https://apify.com/crawloop/otomoto-scraper) | Poland car listings |
| [Cars.com Scraper](https://apify.com/crawloop/cars-com-scraper) | United States vehicle listings |

### When to use this Actor

- **One make or model** — Set Make to Seat, BMW, or Volkswagen, and optionally Model to Ibiza or Golf. Leave Search URLs empty.
- **A filtered search you already built** — Paste the category URL. Make, price, year, mileage, fuel, and seller type are ignored when Search URLs is set.
- **Price versus the site average** — `priceAverage` and `priceRank` come from the search card. `priceRank` is the site’s 1–5 code.
- **New ads and price cuts** — Turn on monitor mode and schedule the same search. The first run stores a baseline and saves nothing. Later runs save new listing ids and price changes.

### When not to use this Actor

- **A hidden phone** — The row includes a phone only when the search card already shows one. This Actor does not open the listing page to reveal a hidden number.
- **Motorbikes on a different host** — This card reads car search pages. It does not cover the motorcycle site.
- **A national dump in one run** — Cap `maxItems` (400, about twelve pages). Split by make, province, or price.
- **Germany or the rest of Europe** — Use [mobile.de Scraper](https://apify.com/crawloop/mobile-de-scraper) or [AutoScout24 Scraper](https://apify.com/crawloop/autoscout24-scraper).

### Key features

- **Search cards** — One request returns about 35 listings. Default **256 MB**. No browser.
- **Market average and price rank on the card** — Kept when the search page includes them.
- **Make and model, or a pasted URL** — Price, year, kilometres, fuel, and seller type are optional.
- **Dealer versus private** — `sellerType` is `dealer` or `private`.
- **Monitor** — Named key-value store of listing id and last price for that search.

### Input

| Field | Required | Default | What it does |
| :--- | :--- | :--- | :--- |
| Search URLs | No | Seat Ibiza | Category page. Wins over the filters below. |
| Make | No | Seat when nothing else is set | Brand when Search URLs is empty. |
| Model | No | — | Model. Requires Make. |
| Min / max price | No | — | Asking price in EUR. |
| Min / max year | No | — | Model year. |
| Max mileage | No | — | Kilometres. |
| Fuel | No | all | Diesel, gasoline, electric, hybrid, plugin hybrid, GLP, or CNG. |
| Seller type | No | all | Dealer, private, or both. |
| Maximum listings | No | 100 | Cards to read, up to 400. |
| Monitor mode | No | off | Baseline first, then new ids and price changes. |
| Monitor state store | No | coches-net-monitor | Named store for the baseline. |
| Proxy | No | off | Turn on residential in Spain if a run is blocked. |

```json
{
  "make": "Seat",
  "model": "Ibiza",
  "minYear": 2018,
  "maxPrice": 18000,
  "fuel": "gasoline",
  "sellerType": "dealer",
  "maxItems": 100,
  "monitorMode": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

### Output

| Field | Meaning |
| :--- | :--- |
| `id` | Listing id |
| `url` | Public listing page |
| `title` | Card title |
| `make`, `model` | Brand and model |
| `year` | Model year |
| `mileage` | Kilometres |
| `horsepower` | Horsepower |
| `fuel` | Fuel label from the card |
| `price` | Asking price in EUR |
| `priceAverage` | Site average price for this listing, in EUR |
| `priceRank` | Site rank code, 1–5 |
| `sellerType` | `dealer` or `private` |
| `city`, `province` | City and province |
| `financed`, `warranty`, `certified` | Flags from the card |
| `phone` | Present only when the card shows a number |
| `photo` | First photo |
| `publishedAt` | Publication time from the card |
| `changeType` | `new` or `price_change` on monitor runs |
| `previousPrice` | Prior asking price when `changeType` is `price_change` |
| `scrapedAt` | UTC timestamp |

```json
{
  "id": "71355965",
  "url": "https://www.coches.net/seat-ibiza-10-tsi-fr-xl-5p-gasolina-2023-en-madrid-71355965-covo.aspx",
  "title": "SEAT Ibiza 1.0 TSI FR XL",
  "make": "SEAT",
  "model": "Ibiza",
  "year": 2023,
  "mileage": 16000,
  "horsepower": 110,
  "fuel": "Gasolina",
  "price": 16500,
  "currency": "EUR",
  "priceAverage": 17000,
  "priceRank": 3,
  "sellerType": "private",
  "city": "Leganés",
  "province": "Madrid",
  "warranty": true,
  "photo": "https://a.ccdn.es/cnet/example_g.jpg/359x269cut/"
}
```

### Use cases

- Compare asking prices for one model inside a year and price band, and keep rows whose `price` is under `priceAverage`.
- Split a dealer watchlist by make and export city, seller type, and mileage to a sheet.
- Schedule monitor mode each morning and export only listings whose price moved.
- For German asking prices on the same makes, run [mobile.de Scraper](https://apify.com/crawloop/mobile-de-scraper). For listings across Europe, run [AutoScout24 Scraper](https://apify.com/crawloop/autoscout24-scraper).

### Integration examples

Replace `APIFY_TOKEN`. The slug below is the Store name.

#### Node.js

```javascript
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("crawloop/coches-net-scraper").call({
  make: "Seat",
  model: "Ibiza",
  minYear: 2018,
  maxItems: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("crawloop/coches-net-scraper").call(run_input={
    "make": "BMW",
    "maxPrice": 25000,
    "fuel": "diesel",
    "sellerType": "dealer",
    "maxItems": 100,
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(len(items))
```

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/crawloop~coches-net-scraper/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"make":"Seat","model":"Ibiza","minYear":2018,"maxItems":100}'
```

### MCP and AI assistants

Use this Actor from AI tools via [Apify MCP](https://docs.apify.com/platform/integrations/mcp).
Connect your Apify account, then call this Actor by its Store name `crawloop/coches-net-scraper`.

Example prompts:

- "Run Coches.net Scraper for Seat Ibiza from 2018 and return the top 20 rows as JSON"
- "Scrape BMW dealer listings under 25,000 EUR and summarize price, mileage, and price rank"
- "Run Coches.net Scraper in monitor mode for Volkswagen Golf, then use AutoScout24 Scraper when the next market is the rest of Europe"

### Suite next step

This Actor covers Spain car search cards. For used cars across Europe, run [AutoScout24 Scraper](https://apify.com/crawloop/autoscout24-scraper). For Germany, run [mobile.de Scraper](https://apify.com/crawloop/mobile-de-scraper).

### FAQ

**Does this open every listing page?**
No. Rows are the search cards. A phone is included only when that card already shows it.

**What if the run is blocked?**
Some networks receive a short bot page instead of the search results. Turn proxy on and choose residential in Spain, then run the same input again.

**What does monitor mode skip?**
Listing ids already stored for that same search, unless the asking price changed. A quiet tick writes zero rows. The first run only fills the baseline.

**Is the average price always present?**
No. Some cards omit `priceAverage` or `priceRank`. Those fields are left off the row.

**How do I export the dataset?**
Each saved listing is one dataset row. Download JSON, CSV, or Excel from the run, or read the items with the Apify API from Node.js or Python.

# Actor input Schema

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

Coches.net search or category URLs, such as a segunda-mano page. When this list is set, the make and filter fields below are ignored. Do not paste a single listing page.

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

Brand used when Search URLs is empty. Example: Seat, BMW, Volkswagen. Spaces become underscores in the URL.

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

Model used with Make. Example: Ibiza, Golf. Ignored when Search URLs is set.

## `minPrice` (type: `integer`):

Lowest asking price in euros.

## `maxPrice` (type: `integer`):

Highest asking price in euros.

## `minYear` (type: `integer`):

Earliest model year.

## `maxYear` (type: `integer`):

Latest model year.

## `maxMileage` (type: `integer`):

Highest odometer reading in kilometers.

## `fuel` (type: `string`):

Fuel filter. Leave on all to keep every fuel.

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

Dealer, private seller, or both.

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

How many search cards to read. One page has about 35 cards. Monitor mode examines this many cards and saves only new ids and price changes.

## `monitorMode` (type: `boolean`):

The first run for a search stores a baseline and saves nothing. Later runs save new listings and price changes only.

## `monitorStateStore` (type: `string`):

Named key-value store that keeps the baseline between scheduled runs.

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

Leave proxy off unless a run is blocked. If Coches.net returns the bot page, switch to residential in Spain.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.coches.net/seat/ibiza/segunda-mano/"
    }
  ],
  "fuel": "all",
  "sellerType": "all",
  "maxItems": 100,
  "monitorMode": false,
  "monitorStateStore": "coches-net-monitor",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Default dataset items — one listing per row.

# 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://www.coches.net/seat/ibiza/segunda-mano/"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/coches-net-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://www.coches.net/seat/ibiza/segunda-mano/" }],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("crawloop/coches-net-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://www.coches.net/seat/ibiza/segunda-mano/"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call crawloop/coches-net-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawloop/coches-net-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/QjkkVipQICadbmqKj/builds/9Tye4FeMq2KGJLxhK/openapi.json
