# Coches.net Listings Scraper (`piotrv1001/coches-net-listings-scraper`) Actor

The Coches.net Listings Scraper exports car listings from any Coches.net search: price, make, model, year, km, power, fuel, environmental label, location, photos and the seller phone, dealer name and rating. Ideal for used-car price monitoring and dealer lead lists in Spain.

- **URL**: https://apify.com/piotrv1001/coches-net-listings-scraper.md
- **Developed by:** [FalconScrape](https://apify.com/piotrv1001) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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.

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 Listings Scraper

Export used and new car listings from [Coches.net](https://www.coches.net), Spain's leading car marketplace. The **Coches.net Listings Scraper** turns any Coches.net search (make, model, province, price, year, km, fuel, body type, dealer or private seller) into structured data: price and financed price, make, model, year, kilometres, power, fuel, DGT environmental label, location, photos and **the seller's phone number**, plus dealer name, rating and review count. Use it for used-car price monitoring, dealer lead lists, stock tracking or market research in Spain.

### ✨ Features

- 🔎 **Any search you can build on Coches.net**: paste the results URL after choosing make, model, location, price range, year, fuel or sort order. Every page of that search is collected, not just the first few.
- 📞 **Seller contact**: the phone number shown on the listing (when the seller has not hidden it), seller type (dealer or private), dealer name, rating and number of reviews.
- 🚗 **Vehicle details**: make, model, version title, year, kilometres, horsepower, fuel type, environmental label (0, ECO, C, B), offer type (used, km 0, new), warranty months, certified and reservable flags.
- 💶 **Prices**: cash price, financed price and the previous price when the listing was reduced.
- 📍 **Location**: city, province and region of every car.
- ♻️ **No duplicates**: featured cars that Coches.net repeats on every page, and cars shared by overlapping searches, are returned and charged once.

### 🛠️ How It Works

1. **Search on Coches.net** – Open [Coches.net](https://www.coches.net/segunda-mano/), set the location and filters you want and copy the URL of the results page.
2. **Paste the URL(s)** – Add one or more search URLs. A URL with `pg=3` starts from page 3.
3. **Set a limit** – `maxItems` caps the total number of listings (default 50).
4. **Run it** – Listings arrive page by page; the `SUMMARY` record shows, for each search, how many results Coches.net reported and how many were collected.

### ⚙️ Input

| Field | Description |
|---|---|
| `startUrls` | Coches.net search results URLs, e.g. `https://www.coches.net/segunda-mano/`. |
| `maxItems` | Maximum number of listings across all searches. Default 50. |
| `proxyConfiguration` | Apify Proxy; the default (Spanish residential) works. |

```json
{
    "startUrls": [
        { "url": "https://www.coches.net/segunda-mano/" },
        { "url": "https://www.coches.net/bmw/serie-3/segunda-mano/madrid/" }
    ],
    "maxItems": 500
}
```

### 📊 Sample Output Data

```json
{
    "id": "71138959",
    "url": "https://www.coches.net/bmw-serie-3-318d-auto-4p-electrico-hibrido-2024-en-albacete-71138959-covo.aspx",
    "title": "BMW Serie 3 318d Auto.",
    "make": "BMW",
    "model": "Serie 3",
    "price": 36000,
    "financedPrice": 36000,
    "originalPrice": null,
    "year": 2024,
    "km": 38760,
    "fuelType": "Híbrido",
    "hp": 150,
    "environmentalLabel": "ECO",
    "offerType": "Ocasión",
    "province": "Albacete",
    "city": "Albacete",
    "region": "Castilla-La Mancha",
    "sellerType": "professional",
    "sellerName": "Albamocion",
    "sellerPhone": "967835103",
    "sellerRating": 4.5,
    "sellerReviews": 9,
    "warrantyMonths": 24,
    "isCertified": true,
    "hasReservation": true,
    "isFeatured": false,
    "publishedAt": "2026-07-22T19:00:53Z",
    "createdAt": "2026-07-22T19:00:53Z",
    "images": [
        "https://a.ccdn.es/cnet/vehicles/20480001/b2ecd6b1-262c-46fa-ade7-dc1d683fffb1.jpg",
        "https://a.ccdn.es/cnet/vehicles/20480001/4d1304a0-b8dc-42a9-8f11-283bb0e212b0.jpg"
    ],
    "searchUrl": "https://www.coches.net/segunda-mano/",
    "scrapedAt": "2026-10-10T10:07:13.222Z"
}
```

### 💰 Pricing

This Actor uses pay-per-event pricing:

| Event | Price |
|---|---|
| Listing returned to the dataset | $0.002 ($2.00 per 1,000) |
| Actor start (once per run) | $0.00005 |

Examples: 100 listings cost $0.20005, 1,000 listings cost $2.00005. You pay only for listings delivered to the dataset; repeats are never charged. Set a maximum cost per run in Apify Console and the Actor stops when it is reached.

### ❓ FAQ

**Does it return phone numbers?**
Yes, `sellerPhone` carries the number Coches.net shows on the listing. It is `null` when the seller chose to hide it.

**How many cars can I get from one search?**
All of them: the Actor walks every page of the search until Coches.net runs out of results or your `maxItems` is reached. If Coches.net starts repeating earlier pages of a very large search, the run stops there and the status message tells you to split the search with filters (for example by province or price range).

**Can I monitor new listings?**
Yes. Schedule the Actor with a search sorted by newest and compare `id`s between runs; `publishedAt` shows when each car was listed.

**Is scraping Coches.net legal?**
The Actor collects publicly visible listing data. Make sure your use of it complies with Coches.net's terms and with data-protection law (GDPR), especially for contact details.

*Keywords: coches.net scraper, coches.net API, coches de segunda mano, precios coches usados España, concesionarios, used cars Spain.*

# Actor input Schema

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

Coches.net search results pages, copied from the browser after choosing make, model, location, price, year, fuel or any other filter and sort. Every page of each search is collected. A URL with pg=3 starts from page 3.

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

Stop after this many listings across all searches. Each listing is returned once even when several searches include it.

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

Coches.net works best from Spanish residential connections; the default works.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.coches.net/segunda-mano/"
    }
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "ES"
  }
}
```

# Actor output Schema

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

No description

## `summary` (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://www.coches.net/segunda-mano/"
        }
    ],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "ES"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/coches-net-listings-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/segunda-mano/" }],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "ES",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("piotrv1001/coches-net-listings-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/segunda-mano/"
    }
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "ES"
  }
}' |
apify call piotrv1001/coches-net-listings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,piotrv1001/coches-net-listings-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/v6W6ueZqmZXHFTNhB/builds/2gO657yBqZ7cO31Jj/openapi.json
