# Autocasión Scraper – Spain Used Cars, Km 0 & Vans (`sn41lz/autocasion-scraper`) Actor

Scrape used cars, km 0 cars and vans for sale in Spain from Autocasión: price, financed price, year, km, fuel, power, transmission, body type, colour, location and dealer, by make, model, province and fuel.

- **URL**: https://apify.com/sn41lz/autocasion-scraper.md
- **Developed by:** [Sergi Espí Zamora](https://apify.com/sn41lz) (community)
- **Categories:** E-commerce, Lead generation
- **Security:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 car saveds

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

## Autocasión Scraper – Spain Used Cars, Km 0 & Vans

Get car ads from **[Autocasión](https://www.autocasion.com)**, one of Spain's big used-car marketplaces (over 120,000 cars), as clean data: **price, financed price, year, mileage, fuel, power, transmission, body type, doors, seats, colour, province, town and dealer**.

Pick makes (**SEAT, Volkswagen, Toyota, Mercedes-Benz…**), optionally a model, provinces and fuel, and click Start.

### Why this scraper?

- **Used cars, km 0 cars and vans** (furgonetas) in one Actor.
- **Search like on the site:** make, model, province, fuel and max price, plus min price, min year and max mileage filters.
- **Full specs** from each ad: power in hp, transmission, body type, doors, seats, colour.
- **Dealer data** for professional sellers: name, rating, address and postcode (no phone numbers, and nothing about private sellers beyond their town).
- **Every page of the search, no duplicates**, and you only pay for cars that pass your filters.

### Who is it for?

- **Car dealers and traders** pricing stock and sourcing cars across Spain.
- **Leasing, insurance and finance companies** tracking residual values by make, model, year and km.
- **Analysts** following the Spanish used-car market (EVs, hybrids, diesel prices by province).

### What data do you get?

| Field | Example |
|---|---|
| `title`, `make`, `model` | SEAT Ibiza 1.0 TSI S\&S Style 110, SEAT, Ibiza |
| `price`, `financedPrice` | 10999, null |
| `year`, `mileageKm`, `fuel` | 2022, 155000, Gasolina |
| `powerHp`, `transmission`, `bodyType`, `doors`, `seats`, `color` | 110, Manual, Pequeño, 5, 5, Gris |
| `province`, `municipality`, `postalCode` | Madrid, Madrid (Capital), 28043 |
| `sellerType`, `dealerName`, `dealerRating`, `dealerAddress` | dealer, MERGO CARS, 5.0, C/ Pegaso 10 |
| `certified` | Certificado por MERCEDES-BENZ |
| `image`, `images`, `url`, `id` | photos, link to the ad |

### How to use it

1. Choose the **Vehicle type** (used, km 0 or vans).
2. Add **Makes** (and a **Model** if you want), **Provinces** and a **Fuel**, or leave them empty for everything.
3. Set price, year and mileage filters, and **Max results** to control cost.
4. Click **Start** and download as Excel, CSV or JSON.

**Tip:** schedule it daily with a small **Max results** to watch new cars for a model you trade.

### How much does it cost?

**$2 per 1,000 cars** ($0.002 each). Use **Max results** to set a hard cap.

### Notes

- Make, model and province names are turned into the site's own search pages; if a combination doesn't exist on Autocasión the log says so.
- The Actor reads public pages at a gentle pace and respects the site's robots.txt.

***

### En español

Extrae anuncios de **Autocasión**: coches de segunda mano, km 0 y furgonetas en toda España, con precio, precio financiado, año, km, combustible, potencia, cambio, carrocería, color, provincia y concesionario. Filtra por marca, modelo, provincia, combustible, precio, año y kilómetros. 2 $ por cada 1.000 coches.

# Actor input Schema

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

Used cars, km 0 (nearly new) cars or vans.

## `makes` (type: `array`):

Car makes, e.g. 'SEAT', 'Volkswagen', 'Mercedes-Benz', 'Toyota'. Leave empty for all makes.

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

Optional model of the make above, e.g. 'Ibiza', 'Golf', 'Clase C'. Only used with one make.

## `provinces` (type: `array`):

Spanish provinces, e.g. 'Madrid', 'Barcelona', 'Valencia', 'Sevilla', 'La Coruña', 'Islas Baleares'. Leave empty for all of Spain.

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

Only cars with this fuel.

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

Only cars at or above this price.

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

Only cars at or below this price.

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

Only cars registered in or after this year.

## `maxMileageKm` (type: `integer`):

Only cars with at most this many km.

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

Open each ad for make, model, power (hp), transmission, body type, doors, seats, colour and the dealer's address and postcode. Turn off for a faster run with just the result-card fields.

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

Or paste Autocasión result pages, e.g. https://www.autocasion.com/coches-segunda-mano/toyota-ocasion/madrid/hibrido

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

Stop after this many vehicles in total. 0 = no limit.

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

Autocasión blocks server (datacenter) IPs, so the default is a Spanish residential proxy, already included in the price. Change only if you know what you're doing.

## Actor input object example

```json
{
  "vehicleType": "used",
  "makes": [
    "SEAT"
  ],
  "includeDetails": true,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "ES"
  }
}
```

# Actor output Schema

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

No description

## `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 = {
    "makes": [
        "SEAT"
    ],
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "ES"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("sn41lz/autocasion-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 = {
    "makes": ["SEAT"],
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "ES",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("sn41lz/autocasion-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 '{
  "makes": [
    "SEAT"
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "ES"
  }
}' |
apify call sn41lz/autocasion-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sn41lz/autocasion-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/5EuTDCbteeVYkwF0M/builds/jpxUwNNGakO0mudFf/openapi.json
