# Standvirtual Scraper (`dadhalfdev/standvirtual-scraper`) Actor

Want to find the perfect car or analyze the used car market in Portugal? This scraper makes it super easy! Just paste a Standvirtual URL (with your desired filters for make, model, year, etc.), and the scraper will extract up to 1000 car listings.

- **URL**: https://apify.com/dadhalfdev/standvirtual-scraper.md
- **Developed by:** [Marco Rodrigues](https://apify.com/dadhalfdev) (community)
- **Categories:** Other, Automation
- **Features:** Limited permissions
- **Stats:** 71 total users, 22 monthly users, 99.9% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.50 / 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/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

## 🚗 Standvirtual Scraper

Want to find the perfect car or analyze the used car market in Portugal? This scraper makes it super easy!

Paste an **`input_url`** from your browser once you've already filtered on Standvirtual — great for people — **or** use **structured filters** (make, model, price, mileage, year, fuel, gearbox, body type) — great for AI agents. When `input_url` is set it overrides the filters. Either way, you get up to 1000 car listings with technical specifications, pricing, and seller details as CSV or JSON.

### 💡 Perfect for...

- **Car Buyers:** Monitor the market for the best deals on your dream car.
- **Dealerships:** Keep an eye on competitors' pricing and inventory to stay competitive.
- **Market Research:** Analyze trends in the Portuguese used car market (average prices, most popular models, mileage vs. price depreciation).
- **Data Analysts:** Download clean, structured data for visualizations, dashboards, or predictive pricing models.
- **🤖 OpenClaw & AI Agents:** Power your autonomous agents with real-time car listings. Perfect for OpenClaw workflows and bots tracking specific vehicles.
- **📚 RAG Systems:** Feed detailed car specifications and pricing into Retrieval-Augmented Generation pipelines to answer complex queries about the automotive market.
- **🔗 AI Workflows:** Integrate seamlessly with LangChain, AutoGPT, CrewAI, and other AI frameworks that need structured automotive data.

### ✨ Why you'll love this scraper

- 🔗 **Input URL or Filters:** Paste a Standvirtual search URL (`input_url`) if you already filtered in the browser, or use structured filters for agent-friendly runs. `input_url` always wins when set.
- 🎯 **Structured Filters:** Search by make, model, price, mileage, year, fuel, gearbox, and body type — no URL crafting required.
- ⚙️ **Deep Specifications:** Extracts not just the price, but detailed specs like engine power, capacity, fuel type, gearbox, mileage, and registration year.
- ⏱️ **Sorting Options:** Control how you traverse the results—from the newest listings to the lowest price or lowest mileage.
- 👤 **Seller Insights:** Distinguish between professional dealerships and private sellers.

### 📦 What's inside the data?

For every single car listing, you will get:

- **Core Details:** `id`, `title`, `url`, `image`, `created_at`, `short_description`
- **Location:** `location_city`, `location_region`
- **Technical Specs:** `make`, `model`, `fuel_type`, `gearbox`, `mileage`, `engine_capacity`, `engine_power`, `first_registration_year`
- **Pricing & Seller:** `price`, `seller_type`
- **Promotional Status:** `is_premium_top_ad`, `is_highlighted`, `is_promoted`

### 🛠️ Sort options

You can tell the scraper what order to read the listings in using the `filter_by` parameter (default: **Featured**):

- **Featured** – Top promoted ads
- **Most Recent** – Newest listings first
- **Lowest / Highest Price**
- **Lowest / Highest KM Distance**
- **Lowest / Highest Power**

### 🚀 Quick start

**Option A — Input URL (great for people)**

1. Open [Standvirtual](https://www.standvirtual.com/), 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 (great for AI agents)**

1. Leave `input_url` empty.
2. Set filters (e.g. make `BMW`, max price `15000`, fuel `diesel`).
3. Choose `filter_by` and `max_cars` (up to 1000).
4. Click **Start** and export CSV, Excel, or JSON when done.

![Filtered page on Standvirtual](https://i.postimg.cc/2jjMHN5s/Screenshot-From-2026-03-16-17-36-12.png)

***

#### Tech details for developers 🧑‍💻

**Input Example (structured filters):**

```json
{
  "make": "BMW",
  "model": "320",
  "price_max": 25000,
  "year_min": 2018,
  "energy": "diesel",
  "gearbox": "automatic",
  "filter_by": "Lowest Price",
  "max_cars": 100
}
```

**Input Example (URL override):**

```json
{
  "input_url": "https://www.standvirtual.com/carros/mercedes-benz",
  "filter_by": "Most Recent",
  "max_cars": 500
}
```

**Output Example:**

```json
{
  "id": "8097373143",
  "title": "Peugeot 2008 1.2 PureTech Active Pack",
  "url": "https://www.standvirtual.com/carros/anuncio/peugeot-2008-ver-1-2-puretech-active-pack-ID8PZKED.html",
  "image": "https://ireland.apollo.olxcdn.com/v1/files/bhgdo59ox8k3-STDVTLPT/image;s=320x240",
  "created_at": "2026-03-16T16:08:17Z",
  "short_description": "peugeot 2008",
  "location_city": "Setúbal",
  "location_region": "Setúbal",
  "make": "peugeot",
  "model": "2008",
  "engine_code": null,
  "fuel_type": "gaz",
  "gearbox": "manual",
  "mileage": "30564",
  "engine_capacity": "1199",
  "engine_power": "102",
  "first_registration_year": "2024",
  "price": "17990",
  "seller_type": "ProfessionalSeller",
  "is_premium_top_ad": null,
  "is_highlighted": false,
  "is_promoted": false
}
```

**Parameters:**

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `input_url` | string | No | Paste a Standvirtual search results URL; overrides all filters below when set. Ideal for humans who already filtered in the browser. Leave empty to use filters (better for AI agents). |
| `make` | string | No | Car brand (e.g. BMW, Mercedes-Benz, Peugeot). |
| `model` | string | No | Model name (needs make). |
| `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 | No | Fuel: `petrol`, `diesel`, `electric`, `hybrid`, `lpg`, `cng`. |
| `gearbox` | string | No | `manual` or `automatic`. |
| `body_type` | string | No | e.g. `city-cars`, `sedan`, `station-wagon`, `suv`, `coupe`, `convertible`, `minivan`. |
| `filter_by` | string enum | No | Default `Featured`. See sort options above. |
| `max_cars` | integer | No | Max cars to scrape (20–1000, default: 500). |

### 🔧 Custom scrapers and agents

If you need a custom web scraper, or custom AI agents and workflows, contact me through [tuik.ai](https://www.tuik.ai). We help businesses cut costs and time by up to 10x.

# Actor input Schema

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

Paste a Standvirtual search results 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 — same list as on Standvirtual. Leave empty to search all brands. Ignored when input_url is set.

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

Optional model for the selected make (same options as on Standvirtual). Pick a make first. 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`):

Combustível — same options as on Standvirtual. Ignored when input_url is set.

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

Tipo de Caixa — same options as on Standvirtual. Ignored when input_url is set.

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

Segmento — same options as on Standvirtual. Ignored when input_url is set.

## `filter_by` (type: `string`):

Same sort options as on Standvirtual.

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

Maximum number of cars to scrape (20–1000).

## Actor input object example

```json
{
  "make": "",
  "model": "",
  "energy": "",
  "gearbox": "",
  "body_type": "",
  "filter_by": "relevance_web",
  "max_cars": 500
}
```

# Actor output Schema

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

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

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

All scraped Standvirtual car 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/standvirtual-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/standvirtual-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 '{}' |
apify call dadhalfdev/standvirtual-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dadhalfdev/standvirtual-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/ExVSRgergbIlLJMNU/builds/1omFdUUmrqSa1LNvb/openapi.json
