# Flexicar Scraper – Spain Used Cars from Flexicar Dealerships (`sn41lz/flexicar-scraper`) Actor

Scrape used cars for sale at Flexicar's 180 dealerships in Spain: price, cash and financed price, monthly payment, year, km, fuel, power, transmission, body type, colour, DGT label, store and photos, by make, model, province, store and fuel.

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

## Pricing

$2.00 / 1,000 cars

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

## Flexicar Scraper – Spain Used Cars from Flexicar Dealerships

Get the used-car stock of **[Flexicar](https://www.flexicar.es)**, Spain's largest chain of used-car dealerships (about 180 stores and over 23,000 cars), as clean data: **price, cash price, monthly payment, year, mileage, fuel, power, transmission, body type, colour, DGT environmental label, store and photos**.

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

### Why this scraper?

- **The whole Flexicar network** in one run, or just the provinces or stores you care about.
- **Search like on the site:** make, model, province, store, fuel, body type, transmission, price, year and mileage.
- **Every price Flexicar shows:** financed price, cash price, previous price, new-car price, monthly payment, down payment and term.
- **Full specs** from each ad: power, body type, doors, seats, engine size, consumption, registration month, equipment list and all photos.
- **Store data:** name, address, postcode, town, province and coordinates (no phone numbers or staff names).
- **Every car of the search, no duplicates**, and you only pay for the cars you get.

### Who is it for?

- **Car dealers and traders** benchmarking prices against a big professional seller.
- **Leasing, insurance and finance companies** tracking residual values and financing offers.
- **Analysts** following the Spanish used-car market: EVs, hybrids, DGT labels, prices by province.

### What data do you get?

| Field | Example |
|---|---|
| `title`, `make`, `model`, `version` | SEAT Ibiza 1.0 MPI 59kW (80CV) Style, SEAT, Ibiza, 1.0 MPI 59kW (80CV) Style |
| `price`, `cashPrice`, `previousPrice`, `newPrice` | 11490, 12990, 12990, 18810 |
| `monthlyPayment`, `downPayment`, `financingMonths` | 179, 9990, 120 |
| `year`, `registrationMonth`, `mileageKm` | 2023, 5, 44624 |
| `fuel`, `powerHp`, `engineLitres`, `consumptionL100km` | Gasolina, 80, 0.999, 5.1 |
| `transmission`, `bodyType`, `doors`, `seats`, `color` | Manual, Turismo, 5, 5, Blanco |
| `environmentalLabel` | C (DGT sticker: 0, ECO, C or B) |
| `onOffer`, `reserved`, `vatDeductible` | true, false, true |
| `storeName`, `storeAddress`, `storePostalCode`, `storeCity`, `storeProvince` | Flexicar Getafe-Fuenlabrada, C. Acedinos Naves 5, 28905, Fuenlabrada, Madrid |
| `storeLatitude`, `storeLongitude`, `storeSlug` | 40.2768, -3.7520, getafe-fuenlabrada |
| `equipment` | \["Control de crucero", "Bluetooth", …] |
| `image`, `images`, `url`, `id` | photos, link to the ad |

`price` is the price Flexicar advertises, which assumes financing with Flexicar; `cashPrice` is the price paying cash. Fields marked as coming from the ad (body type, doors, seats, engine, consumption, registration month, equipment, all photos) need **Include full details** (on by default).

### How to use it

1. Add **Makes** (and a **Model** if you want), or leave empty for all makes.
2. Narrow by **Provinces** or **Stores**, **Fuel**, **Body type** and **Transmission**, or leave empty for all of Spain.
3. Set price, year and mileage filters, and **Max results** to control cost.
4. Click **Start** and download as Excel, CSV or JSON.

You can also paste Flexicar search pages as **Search URLs**, e.g. `https://www.flexicar.es/coches-madrid/combustible-electrico/segunda-mano/`.

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

- Flexicar's search pages show 12 cars at a time; the Actor walks through the search in small price ranges so it reaches every car, at about one page load per 6–10 cars.
- Flexicar doesn't publish a per-car warranty on its ads (its standard and optional "Premium" warranties apply to all cars), so there is no warranty field.
- The Actor reads public pages at a gentle pace and respects the site's robots.txt.

***

### En español

Extrae el stock de coches de segunda mano de **Flexicar** (unos 180 concesionarios en España): precio financiado y al contado, cuota mensual, año, km, combustible, potencia, cambio, carrocería, color, etiqueta DGT, concesionario y fotos. Filtra por marca, modelo, provincia, concesionario, combustible, carrocería, cambio, precio, año y kilómetros. 2 $ por cada 1.000 coches.

# Actor input Schema

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

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

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

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

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

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

## `stores` (type: `array`):

Optional Flexicar stores (concesionarios), by store or town name, e.g. 'Alcobendas', 'Getafe-Fuenlabrada', 'Badalona', 'Valencia - Quart de Poblet'. Searched in addition to any provinces above, so leave Provinces empty to get only these stores.

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

Only cars with this fuel.

## `bodyType` (type: `string`):

Only cars with this body type.

## `transmission` (type: `string`):

Only cars with this gearbox.

## `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 body type, doors, seats, engine size, consumption, registration month, the equipment list and all photos. Turn off for a faster run with the search-result fields only.

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

Or paste Flexicar search pages, e.g. https://www.flexicar.es/coches-madrid/combustible-electrico/segunda-mano/ or https://www.flexicar.es/audi/a4/segunda-mano/

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

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

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

Not needed: Flexicar pages load fine without a proxy. Set one only if you see blocked requests in the log.

## Actor input object example

```json
{
  "makes": [
    "Toyota"
  ],
  "includeDetails": true,
  "maxItems": 20
}
```

# 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": [
        "Toyota"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("sn41lz/flexicar-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": ["Toyota"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("sn41lz/flexicar-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": [
    "Toyota"
  ],
  "maxItems": 20
}' |
apify call sn41lz/flexicar-scraper --silent --output-dataset

```

## MCP server setup

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