# Coches.net Scraper – Spanish Used Car Listings (`shahidirfan/cochesnet-scraper`) Actor

Extract used car listings from Coches.net across Spain with structured data on prices, makes, models, mileage, registration years, fuel types, locations, and seller details. Ideal for automotive market research, price tracking, dealer insights, and competitor analysis.

- **URL**: https://apify.com/shahidirfan/cochesnet-scraper.md
- **Developed by:** [Shahid Irfan](https://apify.com/shahidirfan) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

### What does Coches.net Scraper do?

Coches.net Scraper collects used and nearly new car listings from Coches.net, the Spanish car marketplace, and saves them as structured data. Paste a listing or search URL such as `https://www.coches.net/electrico/segunda-mano/profesionales/`, set a page limit, and get one dataset record per car with price, mileage, year, fuel, location, dealer and contact-free listing details.

The Actor reads the same results the website shows on its listing pages, so every filter you apply on Coches.net (make, province, body type, electric, professional sellers) stays active. Optionally narrow the saved cars further by make, location and price, and sort the output by price, mileage or year.

### Why use Coches.net Scraper?

- **Market research without copy and paste** - Turn thousands of coches.net listings into a spreadsheet, dashboard or database.
- **Price monitoring** - Track how asking prices move for a model, province or seller type over time with scheduled runs.
- **Dealer and inventory analysis** - Compare professional sellers, warranty lengths and certified stock in one dataset.
- **Reusable output** - JSON, CSV, Excel, XML and API access through Apify datasets, plus webhooks and integrations.
- **No browser required** - Runs are short. A 100 car run finishes in seconds.

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

| Field | Description |
|-------|-------------|
| `id` | Coches.net listing identifier |
| `url` | Direct car detail page |
| `title` | Listing title with version and trim |
| `make` | Brand, for example BYD or SEAT |
| `model` | Model name |
| `year` | Registration year |
| `km` | Odometer reading |
| `price` | Asking price in EUR |
| `financedPrice` | Price offered with dealer financing |
| `currency` | Price currency code |
| `priceAverageIndicator` | Market average price shown for the car |
| `priceRankIndicator` | How cheap the car is compared with similar listings |
| `fuelType` | Petrol, diesel, hybrid, electric, and similar |
| `environmentalLabel` | Spanish DGT sticker code, for example 0, ECO or C |
| `hp` | Engine power |
| `province` | Province of the car |
| `region` | Autonomous community |
| `city` | City or town |
| `sellerName` | Dealer or private seller |
| `sellerType` | `professional` or `private` |
| `sellerRating` | Average dealer rating |
| `sellerReviews` | Number of dealer reviews |
| `isCertified` | Certified pre-owned badge |
| `hasWarranty` | Warranty offered |
| `warrantyMonths` | Warranty length in months |
| `offerType` | Ocasión, Km 0, nuevo, and similar |
| `isFinanced` | Dealer financing offered |
| `hasReservation` | Car can be reserved online |
| `includesTaxes` | Price includes taxes |
| `isTop` | Promoted placement in the results |
| `listPosition` | Position of the card on its page |
| `financing` | Monthly offer: lender, instalment, terms, TAE, entry |
| `creationDate` | First listed timestamp |
| `publicationDate` | Publication timestamp |
| `imageUrl` | Main car photo |
| `images` | All gallery photo URLs |
| `videos` | Video URLs attached to the listing |

### How to use Coches.net Scraper

1. Open the Actor in Apify Console.
2. Paste one or more coches.net listing URLs. The electric professional page is prefilled as an example.
3. Optionally set `make`, `location`, `priceMin`, `priceMax` and `sortBy`.
4. Set `maxPages` and `maxResults` for the size of run you need.
5. Run the Actor and open the dataset, or export it to CSV or Excel.

#### Input Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `urls` | Array | No | electric professional listing page | One or more coches.net listing or search URLs |
| `make` | String | No | - | Keep cars whose make contains this text |
| `location` | String | No | - | Keep cars whose province, region or city contains this text |
| `priceMin` | Integer | No | - | Minimum price in EUR |
| `priceMax` | Integer | No | - | Maximum price in EUR |
| `sortBy` | String | No | `relevance` | `relevance`, `price_asc`, `price_desc`, `km_asc`, `km_desc`, `year_asc` or `year_desc` |
| `maxResults` | Integer | No | `100` | Maximum number of cars to save |
| `maxPages` | Integer | No | `5` | Maximum listing pages per URL, around 30 to 35 cars each |
| `proxyConfiguration` | Object | No | Spanish residential proxy | Proxy settings. Residential proxies are on by default because the site blocks repeated requests from one IP |

### Output Data

| Field | Type | Description |
|-------|------|-------------|
| `id` | String | Listing identifier, stable across runs |
| `url` | String | Car detail page URL |
| `title` | String | Listing title |
| `make` | String | Brand |
| `model` | String | Model |
| `year` | Integer | Registration year |
| `km` | Integer | Odometer reading |
| `price` | Integer | Asking price in EUR |
| `financedPrice` | Integer | Financed cash price when published |
| `fuelType` | String | Fuel or energy type |
| `environmentalLabel` | String | DGT label code |
| `province` | String | Province |
| `city` | String | City |
| `sellerName` | String | Seller name |
| `sellerType` | String | Professional or private |
| `warrantyMonths` | Integer | Warranty length |
| `financing` | Object | Lender, monthly instalment, terms, TAE and entry |
| `imageUrl` | String | Main photo URL |
| `images` | Array | All gallery photo URLs |
| `videos` | Array | Video URLs |
| `publicationDate` | String | ISO timestamp |

Fields that a listing does not publish are left out of that record instead of being filled with empty values.

### Usage Examples

#### Collect the first 100 electric cars

```json
{
  "urls": ["https://www.coches.net/electrico/segunda-mano/profesionales/"],
  "maxResults": 100,
  "maxPages": 5
}
```

#### Collect several listing pages in one run

```json
{
  "urls": [
    "https://www.coches.net/electrico/segunda-mano/profesionales/",
    "https://www.coches.net/segunda-mano/",
    "https://www.coches.net/segunda-mano/madrid/"
  ],
  "maxResults": 300,
  "maxPages": 4
}
```

#### Filter by make, price and city, cheapest first

```json
{
  "urls": ["https://www.coches.net/electrico/segunda-mano/profesionales/"],
  "make": "Cupra",
  "priceMin": 15000,
  "priceMax": 35000,
  "location": "Valencia",
  "sortBy": "price_asc",
  "maxResults": 100,
  "maxPages": 6
}
```

### Sample Output

```json
{
  "id": "71956552",
  "url": "https://www.coches.net/toyota-corolla-20-180h-style-e-cvt-180cv-electrico-hibrido-2022-en-malaga-71956552-covo.aspx",
  "title": "TOYOTA Corolla 2.0 180H Style E-CVT",
  "make": "TOYOTA",
  "model": "Corolla 2.0 180H Style E-CVT 180CV",
  "year": 2022,
  "km": 97000,
  "price": 21990,
  "financedPrice": 19790,
  "currency": "EUR",
  "fuelType": "Eléctrico",
  "environmentalLabel": "ECO",
  "province": "Málaga",
  "region": "Andalucía",
  "city": "Málaga Capital",
  "sellerName": "Miña Car Málaga",
  "sellerType": "professional",
  "sellerRating": 4.5,
  "sellerReviews": 56,
  "isCertified": false,
  "hasWarranty": true,
  "warrantyMonths": 12,
  "offerType": "Ocasión",
  "isFinanced": true,
  "hasReservation": true,
  "includesTaxes": true,
  "listPosition": 31,
  "financing": {
    "lender": "bbva",
    "instalment": 218.09,
    "terms": 120,
    "tae": 6,
    "entry": 0
  },
  "creationDate": "2026-11-11T09:25:01Z",
  "publicationDate": "2026-11-11T09:25:01Z",
  "imageUrl": "https://pro.fastly.ccdn.es/pro/pro/vehicles/images/8b/8b393c26-6b05-4a18-9354-129e7f3beb3c/359x269cut/",
  "images": [
    "https://pro.fastly.ccdn.es/pro/pro/vehicles/images/8b/8b393c26-6b05-4a18-9354-129e7f3beb3c",
    "https://pro.fastly.ccdn.es/pro/pro/vehicles/images/b3/b33df5dc-65cf-4444-9719-470ca9f44652",
    "https://pro.fastly.ccdn.es/pro/pro/vehicles/images/a2/a27ae1d7-6d9f-4afa-8575-54a6c3e02bee",
    "https://pro.fastly.ccdn.es/pro/pro/vehicles/images/9b/9b33864a-0eb0-4f36-9a12-8d9e84891984"
  ]
}
```

### Tips for Best Results

- Use the listing URL exactly as you see it in your browser. The path carries the filters, so `.../electrico/segunda-mano/profesionales/` only returns electric cars from professional sellers.
- Duplicate results are removed by listing id, so you can pass the same URL twice or two overlapping search pages without polluting the dataset.
- `maxPages` controls coverage. With 30 to 35 cars per page, a limit of 5 reads up to about 175 cars per URL.
- Filters run on the collected cars. If a very narrow filter returns few records, raise `maxPages` so more cars are checked.
- A run stops on its own when it reaches `maxResults`, the last result page or the page limit.
- Keep the default Spanish residential proxy for runs above a few pages. The site starts answering with a block page when one IP asks for many pages in a row; the Actor retries on a new proxy session, and a direct connection is only reliable for short runs.
- Schedule the Actor daily or weekly to watch prices and new stock.

### Integrations

- **Google Sheets** - Send the dataset to a spreadsheet for analysis.
- **Webhooks** - Trigger a workflow after each run.
- **Make, Zapier and n8n** - Automate downstream steps without code.
- **API** - Read the dataset from your own applications.
- **CSV, Excel, JSON and XML** - Download formats available on every Apify dataset.

### Frequently Asked Questions

#### How many cars can one run collect?

Up to `maxResults` cars, limited by `maxPages` and by how many results the URL has. Each listing page holds around 30 to 35 cars.

#### Does the Actor open every car detail page?

No. The listing page already carries the full record: price, mileage, location, dealer, gallery image URLs and video URLs. Each car costs one listing page read instead of one page per car, so runs stay fast and cheap.

#### How do I get all car photos?

Each record has `images`, an array with every gallery photo URL published on the listing page, plus `imageUrl` for the main photo. Video URLs are in `videos` when the seller uploaded one.

#### Can I scrape a specific brand or province?

Yes. Use a brand or province URL from Coches.net, for example its make landing page, or the `make` and `location` inputs. A URL filter is applied by the site, while `make` and `location` filter the collected cars.

#### Why do some records miss fields such as `financedPrice` or `sellerRating`?

The marketplace does not publish those values for every listing. Missing values are omitted from the record instead of being guessed.

#### Can I sort by price or mileage?

Yes. Use `sortBy` with `price_asc`, `price_desc`, `km_asc`, `km_desc`, `year_asc` or `year_desc`. The whole run is sorted, not only each page.

#### Why did a run return an empty dataset?

Two common reasons: the URL has no matching cars, or the site is blocking the network. The run log shows which page returned the block page and whether retries recovered. Keep the default Spanish residential proxy on for anything longer than a couple of pages.

#### Can I run this Actor on a schedule?

Yes. Create a schedule in Apify Console with the input you want to monitor.

#### Is this Actor suitable for non-technical users?

Yes. It runs from a form in Apify Console and the dataset can be downloaded without writing code.

#### Is it legal to collect data from Coches.net?

Collecting publicly available listing data is generally allowed, but you are responsible for following the site terms, applicable laws and data protection rules. Do not use the data for spam or to contact sellers who did not opt in.

### Related Actors

- [AutoScout24 Scraper](https://apify.com/shahidirfan/Autoscout24-Scraper) - used car listings across Europe.
- [Cars.com Scraper](https://apify.com/shahidirfan/Cars-com-Scraper) - US car inventory and prices.
- [Autotrader UK Scraper](https://apify.com/shahidirfan/Autotrader-UK-Scraper) - UK used car marketplace data.
- [Carwale Scraper](https://apify.com/shahidirfan/Carwale-Scraper) - Indian new and used car listings.

### Support

For issues, feature requests or custom scraping work, use the Issues tab on the Actor page or contact the developer through Apify.

### Legal Notice

This Actor is intended for legitimate collection of publicly available car listing data. You are responsible for how you use the data, including compliance with the Coches.net terms of use, GDPR and local regulations.

# Actor input Schema

## `urls` (type: `array`):

One or more Coches.net listing or search URLs. Every filter you apply on the website is kept.

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

Keep only cars whose make contains this text, for example Seat or BMW. Leave empty for all makes.

## `location` (type: `string`):

Keep only cars whose province, region or city contains this text, for example Madrid.

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

Drop cars cheaper than this price.

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

Drop cars more expensive than this price.

## `sortBy` (type: `string`):

Order of the saved cars. Relevance keeps the order of the listing pages.

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

Stop after saving this many cars.

## `maxPages` (type: `integer`):

Maximum number of listing pages to read per URL. Each page holds around 30 cars.

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

Spanish residential proxies are used by default because the site blocks repeated requests from a single IP. Switch to a direct connection only for short runs.

## Actor input object example

```json
{
  "urls": [
    "https://www.coches.net/electrico/segunda-mano/profesionales/"
  ],
  "sortBy": "relevance",
  "maxResults": 100,
  "maxPages": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "ES"
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "urls": [
        "https://www.coches.net/electrico/segunda-mano/profesionales/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("shahidirfan/cochesnet-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 = { "urls": ["https://www.coches.net/electrico/segunda-mano/profesionales/"] }

# Run the Actor and wait for it to finish
run = client.actor("shahidirfan/cochesnet-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 '{
  "urls": [
    "https://www.coches.net/electrico/segunda-mano/profesionales/"
  ]
}' |
apify call shahidirfan/cochesnet-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,shahidirfan/cochesnet-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/3jhKIfiUAbdvxH6YG/builds/t3f4SyQbvbchhJulC/openapi.json
