# 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
- **Stats:** 62 total users, 21 monthly users, 98.4% 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?

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

## 🚗 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, **or** use **structured filters** (make, model, price, mileage, year, fuel, gearbox, body type) — structured filters work better 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 (better for AI agents). `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

Sort (`filter_by`) uses the **same options as Standvirtual** (default: **Anúncios Recomendados** / `relevance_web`):

- **relevance\_web** – Anúncios Recomendados
- **created\_at:desc** – Destacado
- **created\_at\_first:desc** – Mais Recentes
- **Price / KM / Power** asc & desc (same ids as on the site)

### 🚀 Quick start

**Option A — Input URL**

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 (better for AI agents)**

1. Leave `input_url` empty.
2. Pick make/model/fuel/body from the dropdowns (same lists as on Standvirtual).
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": "bmw:serie-3",
  "price_max": 25000,
  "year_min": 2018,
  "energy": "diesel",
  "gearbox": "automatic",
  "body_type": "sedan",
  "filter_by": "filter_float_price:asc",
  "max_cars": 100
}
```

**Input Example (URL override):**

```json
{
  "input_url": "https://www.standvirtual.com/carros/mercedes-benz",
  "filter_by": "created_at_first:desc",
  "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. Leave empty to use filters (better for AI agents). |
| `make` | string enum | No | Brand slug from Standvirtual (e.g. `bmw`, `mercedes-benz`, `vw`). |
| `model` | string enum | No | `make:model` from Standvirtual (e.g. `bmw:serie-3`). |
| `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 | Site fuel ids: `gaz`, `diesel`, `electric`, `hibride-gaz`, `hibride-diesel`, `plugin-hybrid`, `gpl`, `gnc`, `hidrogen`. |
| `gearbox` | string enum | No | `manual` or `automatic`. |
| `body_type` | string enum | No | Site segment ids: `city-car`, `mini`, `compact`, `sedan`, `combi`, `suv`, `coupe`, `cabrio`, `minivan`. |
| `filter_by` | string enum | No | Default `relevance_web`. See sort options above. |
| `max_cars` | integer | No | Max cars to scrape (20–1000, default: 500). |

# 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/xwzFHOrmmwJvcfNgV/openapi.json
