# ParuVendu Auto Scraper (`dadhalfdev/paruvendu-auto-scraper`) Actor

Scrape used cars from paruvendu.fr voiture d'occasion with structured filters (make, model, location, price, fuel). Returns price, mileage, year, location, and listing URL.

- **URL**: https://apify.com/dadhalfdev/paruvendu-auto-scraper.md
- **Developed by:** [Marco Rodrigues](https://apify.com/dadhalfdev) (community)
- **Categories:** Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 🚗 ParuVendu Auto Scraper

Want to find used cars on [ParuVendu](https://www.paruvendu.fr/voiture-occasion/) or analyze the French private + pro market? This scraper makes it super easy!

Paste an **`input_url`** from your browser once you've already filtered on ParuVendu, **or** use **structured filters** (make, model, location, price, fuel type, etc.) — structured filters work better for AI agents. When `input_url` is set it overrides the filters. Either way, you get up to 2000 car listings from the **auto section only**, with pricing, specs, and location as CSV or JSON.

### 💡 Perfect for...

- **Car Buyers:** Monitor deals from private sellers and small dealers across France.
- **Dealerships:** Track competitor inventory and pricing on ParuVendu.
- **Market Research:** Analyze French used-car supply by brand, city, mileage, and fuel.
- **Data Analysts:** Export clean structured data for dashboards and pricing models.
- **🤖 AI Agents:** Power bots and OpenClaw workflows with real-time ParuVendu listings.
- **📚 RAG Systems:** Feed vehicle specs and prices into retrieval pipelines.
- **🔗 AI Workflows:** Plug into LangChain, AutoGPT, CrewAI, and similar stacks.

### ✨ Why you'll love this scraper

- 🔗 **Input URL or Filters:** Paste a ParuVendu search URL (`input_url`) if you already filtered in the browser, or use structured filters (better for AI agents). `input_url` always wins when set.
- 🎯 **Structured Filters:** Search by make, model, city/radius, body type, price, mileage, year, fuel, and gearbox — no URL crafting.
- 🚗 **Auto Only:** Scoped to voiture d'occasion (ignores immobilier, seconde main, etc.).
- ⚙️ **Rich Listings:** Price, year, mileage, fuel, gearbox, location, and images from search cards.
- 🔎 **Optional Deep Dive:** Turn on `enrich_details` for extra specs (power, colour, seller, image gallery).
- ⏱️ **Sorting Options:** Newest, price, mileage, or listings with photos.

### 📦 What's inside the data?

For every single car listing, you will get:

- **Core Details:** `id`, `title`, `url`, `image`, `photo_count`
- **Location:** `location`, `postal_code`
- **Technical Specs:** `make`, `model`, `fuel_type`, `gearbox`, `mileage`, `year`
- **Pricing & Seller:** `price`, `seller_type`
- **With enrich\_details:** `power_hp`, `color`, `body_type`, `seller_name`, `images`, …

### 🛠️ Sort options

Use the `sort_by` parameter:

- **Most Recent** – Newest listings first
- **Lowest / Highest Price**
- **Lowest / Highest KM**
- **With Photo** – Prefer ads that include photos

### 🚀 Quick start

**Option A — Input URL**

1. Open [ParuVendu voiture d'occasion](https://www.paruvendu.fr/voiture-occasion/), apply filters in the browser, copy the results URL.
2. Paste it into `input_url`.
3. Set `max_cars` and click **Start**.

**Option B — Structured filters (better for AI agents)**

1. Leave `input_url` empty.
2. Set filters (e.g. make `Renault`, model `Clio`), optional location + radius, price / mileage / year / fuel.
3. Choose `sort_by` and `max_cars` (up to 2000).
4. *(Optional)* Enable `enrich_details` for full ad-page specs.
5. Click **Start** and export CSV, Excel, or JSON when done.

***

#### Tech details for developers 🧑‍💻

**Input Example (filters)**

```json
{
  "make": "VVORE000",
  "model": "Clio",
  "location": "Paris",
  "radius_km": "50",
  "price_max": 10000,
  "energy": "ES",
  "sort_by": "Lowest Price",
  "max_cars": 100
}
```

**Input Example (URL override)**

```json
{
  "input_url": "https://www.paruvendu.fr/voiture-occasion/renault/clio/",
  "max_cars": 100
}
```

**Output Example**

```json
{
  "id": "1293356442A1KVVORECLI",
  "title": "Renault III (2) 1.5 DCI 70 DYNAMIQUE 5P EURO5",
  "url": "https://www.paruvendu.fr/a/voiture-occasion/renault/clio/1293356442A1KVVORECLI",
  "image": "https://cdn2.vroomiz.fr/uploads/advertcars/example.jpg",
  "price": 5490,
  "year": 2008,
  "mileage": 120000,
  "fuel_type": "Diesel",
  "gearbox": "Manuelle",
  "location": "Coignières (78310)",
  "postal_code": "78310",
  "photo_count": 8,
  "make": "RENAULT",
  "model": "Clio",
  "seller_type": "Professional"
}
```

### 📋 Input reference (detailed)

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `input_url` | string | No | — | Paste a ParuVendu search URL; overrides all filters below when set. Leave empty to use filters (better for AI agents). |
| `make` | string enum | No | any | Car brand, sourced live from ParuVendu's own `affinage` API (113 brands, e.g. `VVORE000` = Renault, `VVOBM000` = BMW, `VVOME000` = Mercedes). Leave empty (`""`, Any) to search all brands. See [full brand list](#-brand-codes-make) below. |
| `model` | string | No | — | Model name (e.g. `Clio`, `208`, `Golf`). **Requires `make`.** |
| `location` | string | No | — | City or place for geo search (e.g. `Paris`, `Lyon`, `Marseille`). |
| `radius_km` | string enum | No | `""` (do not widen) | Search radius around `location`: `5`, `15`, `30`, `50`, `100`. Ignored if `location` is empty. |
| `body_type` | string enum | No | any | Body category, using ParuVendu's own `r1` site codes: `TO` Berline, `4X` 4x4 - SUV, `BR` Break, `CA` Cabriolet, `CO` Coupé, `MO` Monospace, `SO` Véhicule de société, `PU` Pick-up. |
| `price_min` / `price_max` | integer | No | — | Price range in **euros**. |
| `mileage_min` / `mileage_max` | integer | No | — | Mileage range in km. |
| `year_min` / `year_max` | integer | No | — | First-registration year range. |
| `energy` | string enum | No | any | Fuel filter, using ParuVendu's own `nrj` site codes: `ES` Essence, `DI` Diesel, `GP` GPL ou GNL, `BI` BioEthanol, `EL` Electrique, `HY` Hybride (tous), `HR` Hybride rechargeable, `MH` Micro Hybride, `HD` Hydrogène, `ZZ` Autres. |
| `gearbox` | string enum | No | any | Transmission, using ParuVendu's own `tr` site codes: `MA` Manuelle, `AU` Automatique, `SA` Semi automatique, `ZZ` Autres. |
| `sort_by` | string enum | No | `Most Recent` | Result order (see sort options above). |
| `max_cars` | integer | Yes | `50` | How many listings to return (`1`–`2000`). |
| `enrich_details` | boolean | No | `false` | If `true`, fetch each ad page for richer fields (slower). |
| `listing_urls` | string\[] | No | — | Direct ad URLs. If provided **without** search filters, only these URLs are scraped. |

#### Notes on filters

- `input_url` always wins over filters when provided.
- This Actor only scrapes **cars** (voiture d'occasion), not the rest of ParuVendu.
- Each run returns at most **`max_cars`** listings (`1`–`2000`).
- Some ads show “à débattre” or promo text near the price — the numeric EUR value on the card is what we store.
- `energy`, `gearbox`, `body_type`, and `make` are applied **on the ParuVendu search request itself** (via the `nrj`, `tr`, `r1`, and `r` query params on ParuVendu's `affinage` search endpoint), not just filtered client-side after scraping — so the site does the heavy lifting and pagination reflects the real filtered result count. Older free-text values for `energy`/`gearbox`/`body_type`/`make` (e.g. `essence`, `manual`, `berline`, `Renault`) are still accepted for backward compatibility and are mapped to the new site codes automatically.
- `model` filtering uses ParuVendu's pretty `/voiture-occasion/{make}/{model}/` path (ParuVendu doesn't support reliable model-code filtering via the `affinage` endpoint), so it requires `make` to be set.

#### 🔤 Brand codes (`make`)

The `make` dropdown is generated from ParuVendu's own brand list (`GET /auto-moto/listefo/default/affinage?origine=affinage&r=VVO00000`), which returns 113 brands as `{ "lib": "Renault", "cod": "VVORE000" }`. Pick any brand by name in the UI — the underlying value sent to ParuVendu is the `cod`. Leave empty for **Any**.

# Actor input Schema

## `input_url` (type: `string`):

Paste a ParuVendu voiture d'occasion search URL to use instead of the filters below — overrides all structured filters when set. Leave empty to use the filters below (better for AI agents).

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

Car brand, sourced live from ParuVendu's affinage API (113 brands). Leave empty (Any) to search all brands. Ignored when input\_url is set.

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

Optional model (e.g. Clio, 208, Golf). Requires make. Ignored when input\_url is set.

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

City or place name for geo search (e.g. Paris, Lyon). Ignored when input\_url is set.

## `radius_km` (type: `string`):

Search radius around location. Only applied when location is set. Ignored when input\_url is set.

## `body_type` (type: `string`):

Vehicle body category, using ParuVendu's own site codes (r1). Ignored when input\_url is set.

## `price_min` (type: `integer`):

Minimum price in euros. Ignored when input\_url is set.

## `price_max` (type: `integer`):

Maximum price in euros. Ignored when input\_url is set.

## `mileage_min` (type: `integer`):

Minimum mileage in km. Ignored when input\_url is set.

## `mileage_max` (type: `integer`):

Maximum mileage in km. Ignored when input\_url is set.

## `year_min` (type: `integer`):

Minimum first-registration year. Ignored when input\_url is set.

## `year_max` (type: `integer`):

Maximum first-registration year. Ignored when input\_url is set.

## `energy` (type: `string`):

Fuel type filter, using ParuVendu's own site codes (nrj). Ignored when input\_url is set.

## `gearbox` (type: `string`):

Transmission filter, using ParuVendu's own site codes (tr). Ignored when input\_url is set.

## `sort_by` (type: `string`):

How to order the results.

## `max_cars` (type: `integer`):

Maximum listings to return (1–2000).

## `enrich_details` (type: `boolean`):

If true, open each ad page for extra specs (power, colour, seller, images…).

## `listing_urls` (type: `array`):

Optional direct ad URLs. If set without make/location filters, only these URLs are scraped.

## Actor input object example

```json
{
  "make": "",
  "radius_km": "",
  "body_type": "",
  "energy": "",
  "gearbox": "",
  "sort_by": "Most Recent",
  "max_cars": 50,
  "enrich_details": false
}
```

# Actor output Schema

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

Table view of scraped listings using the dataset 'overview' view.

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

All scraped listings from the default dataset without view transformation.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("dadhalfdev/paruvendu-auto-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("dadhalfdev/paruvendu-auto-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call dadhalfdev/paruvendu-auto-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=dadhalfdev/paruvendu-auto-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/A7FhYKdJI7heZrR23/builds/iLhzbjDev2ceZLer9/openapi.json
