# XE.gr Car Scraper (`rastriq/xegr-scraper`) Actor

Scrape used car listings from xe.gr, a leading Greek classifieds site: make, model, year, mileage, horsepower, price, area, region, dealer flag, photo and URL. Optional brand filter, 36 cars per page.

- **URL**: https://apify.com/rastriq/xegr-scraper.md
- **Developed by:** [Rastriq — Structured data from the world](https://apify.com/rastriq) (community)
- **Categories:** E-commerce, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 car listings

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

## XE.gr Car Scraper

Scrape used car listings from **xe.gr** (Χρυσή Ευκαιρία), one of the best-known classifieds sites in Greece. XE.gr Car Scraper turns the used car search into clean, structured data: make, model, registration year, mileage, horsepower, asking price, area and region, dealer flag, photo and listing URL. Filter by brand or take the whole market. No browser and no residential proxy: 36 cars per page in a few seconds.

### 🚗 What is XE.gr Car Scraper?

XE.gr Car Scraper is an xe.gr scraper and unofficial xe.gr API for the car section of the site (`/automoto/aytokinhta`). xe.gr carries used cars from private sellers and dealers all over Greece, which makes it a practical source for asking prices in the Greek second-hand market, a market that few data tools cover.

The scraper reads the structured data that xe.gr embeds in every search results page, so it gets the same values the site shows without fragile HTML parsing, and one request returns all 36 listings of a page with their key specs. Runs are fast, cheap and well suited to a daily or hourly schedule.

Use it to:

- 📈 **Track used car prices in Greece** by make, model, year, mileage and power.
- 🏷️ **Benchmark your stock** against what private sellers and dealers are asking.
- 🔔 **Follow one brand** (BMW, Toyota, Land Rover...) with the brand filter.
- 🧮 **Feed valuation models** and market studies with fresh asking prices.
- 🏪 **Separate dealer and private supply** with the `is_professional` flag.
- 🗺️ **Compare regions** using the Greek area and region of each listing.

### 📋 What data does XE.gr Car Scraper extract?

| Field | Description |
|---|---|
| 🆔 `id` | xe.gr listing ID (a UUID) |
| 📝 `title` | Listing title: make and model, for example `Volkswagen T-Roc` |
| 🏭 `make` | Car brand, as spelled on xe.gr (`Volkswagen`, `Mercedes-benz`, `MINI`, `Land Rover`...) |
| 🚘 `model` | Model (`T-Roc`, `Series 3`, `Range Rover Sport`...) |
| 📅 `year` | Registration year |
| 🛣️ `km` | Mileage in km |
| 🐎 `hp` | Engine power in horsepower |
| 💶 `price` | Asking price in EUR |
| 💱 `currency` | Always `EUR` |
| 📍 `city` | Area of the listing, in Greek (for example `Κερατσίνι`) |
| 🗺️ `region` | Wider region, in Greek (for example `Περιφερειακή Ενότητα Πειραιώς`) |
| 🏪 `is_professional` | `true` for listings from a commercial seller |
| 🔗 `url` | Link to the listing page |
| 🖼️ `img_url` | First photo of the listing |
| 🕒 `scraped_at` | UTC timestamp of extraction |
| 🌐 `source` | Always `xe.gr` |

**Be aware of what is not in the search results.** xe.gr does not include fuel type or gearbox in its search pages, so `fuel_type` and `gearbox` are always `null`. They are kept so the output has the same columns as our other car marketplace scrapers. In a test run of 36 listings, make, model, year, km, hp, price, area and region were filled on all of them, and the photo on 32.

Seller e-mail addresses and dealer company names are present in the page data, but the scraper never reads them.

### 🛠️ How to use XE.gr Car Scraper

1. Click **Try for free** (or **Start**) on this page.
2. Keep the prefilled input (1 page, all brands) for a first test, or type a brand and the number of pages.
3. Click **Start** and wait a few seconds per page.
4. Download the results as JSON, CSV, Excel or HTML, or read them through the Apify API.

#### Input parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `brand` | string | empty (all brands) | Only one brand, written as on xe.gr: `BMW`, `Land Rover`, `Mercedes-Benz`... |
| `max_pages` | integer | 3 | Search pages to scrape. 36 cars per page; the run stops when the search runs out of pages. |
| `proxyConfiguration` | object | Apify datacenter proxy | The default works. No residential proxy needed. |

#### Input example

All used cars, first page:

```json
{
  "max_pages": 1
}
```

Only BMW, five pages (up to 180 cars):

```json
{
  "brand": "BMW",
  "max_pages": 5
}
```

### 📦 Output example

One item from a real run (14 November 2026):

```json
{
  "id": "9b0ea132-8729-4185-8c0a-8eac66fbf1f0",
  "title": "Hyundai Atos",
  "make": "Hyundai",
  "model": "Atos",
  "year": 2000,
  "km": 176120,
  "hp": 56,
  "price": 2500,
  "currency": "EUR",
  "fuel_type": null,
  "gearbox": null,
  "city": "Κερατσίνι",
  "region": "Περιφερειακή Ενότητα Πειραιώς",
  "is_professional": false,
  "url": "https://www.xe.gr/automoto/d/aytokinhta/9b0ea132-8729-4185-8c0a-8eac66fbf1f0/hyundai-atos-keratsini",
  "img_url": "https://blob.cdn.xe.gr/live/2026/11/10/5b57fa7d-fe1f-4a38-a648-3262d6a61199/5b57fa7d-fe1f-4a38-a648-3262d6a61199-source.jpg?width=640&height=480&format=jpg",
  "source": "xe.gr",
  "scraped_at": "2026-11-14T07:37:55.807621+00:00"
}
```

In the Apify Console the **Overview** tab shows title, make, model, year, km, hp, price, area, dealer flag and link; **All fields** adds the photo, region, ID and timestamps.

### 💰 How much does it cost to scrape xe.gr?

The actor uses **pay per event** pricing, with platform usage included:

- **$1.50 per 1,000 car listings** saved to the dataset;
- **$0.005 per run start** (one start event per GB of memory; the default run uses 256 MB, so one event).

A one-page test run (36 cars) costs about $0.06. 1,000 listings (28 pages) cost about $1.51. You pay only for listings that are saved: a run that extracts nothing fails and only the start event is charged.

You can cap the spend of any run with the **Max total charge** option in the run settings.

### ⚠️ Limits

- **Used cars only.** The scraper reads the used car search (`/automoto/aytokinhta/metaxeirismena`). New cars, motorbikes and trucks are not included.
- **One brand filter, no other filters.** Price, year or region filters are not in the input yet: filter the dataset after the run.
- **No details from the listing page.** The scraper reads only the search results, which is why fuel type, gearbox and the description are not included.
- **Greek place names.** `city` and `region` are returned in Greek, as on the site.
- **Brand spelling.** The brand is turned into the site's URL slug (`Land Rover` → `land-rover`). A brand xe.gr does not know returns HTTP 404 and the run fails with a hint in the status message.
- **Clear failures.** If a run extracts no listings (HTTP error, layout change or an empty search) it ends as **FAILED** with the reason in the status message. If it stops part-way, the listings already saved are kept and the status message says why it stopped.
- The scraper waits 1.5 seconds between pages to stay polite with the site.

### 🔗 Related actors

- [Willhaben Car Scraper](https://apify.com/rastriq/willhaben-scraper): used cars from Austria.
- [Marktplaats.nl Car Scraper](https://apify.com/rastriq/marktplaats-scraper): used cars from the Netherlands.
- [2dehands Car Scraper](https://apify.com/rastriq/2dehands-scraper): used cars from Belgium.
- [Blocket Car Scraper](https://apify.com/rastriq/blocket-scraper) and [FINN.no Car Scraper](https://apify.com/rastriq/finn-no-scraper): Sweden and Norway.

All of them share the same core columns (`make`, `model`, `year`, `km`, `price`, `currency`, `url`...), so you can merge countries in one table.

### ❓ FAQ

**Is it legal to scrape xe.gr?**
The actor collects only public listing data that anyone can see without logging in, and it never reads seller e-mails or dealer names. You are responsible for how you use the data: check xe.gr's terms and the GDPR before using it commercially.

**Do I need a proxy?**
No residential proxy. The default Apify datacenter proxy works, and you can also turn the proxy off. xe.gr has shown no anti-bot blocking in our runs.

**How many listings can I get?**
36 per page. Set `max_pages` to what you need; the run stops on its own at the last page of the search. The log shows how many results the site reports for your search.

**How do I scrape only one brand?**
Type it in `brand` as it appears on xe.gr, for example `BMW`, `Toyota` or `Mercedes-Benz`. Leave it empty for all brands.

**Why are fuel type and gearbox empty?**
xe.gr does not include them in the search results, and this actor does not open each listing page. The columns stay for compatibility with our other car scrapers.

**Why is the make written "Mercedes-benz"?**
The make comes from the title that xe.gr builds, and the scraper keeps the site's spelling. Normalise it in your own pipeline if you merge sources.

**How fresh is the data?**
Each run reads the live site. A short scheduled run every few hours keeps a price tracker up to date.

**The run failed. What now?**
Read the status message: it says why no listings were extracted. HTTP 404 on page 1 with a brand usually means the brand is spelled differently on xe.gr. A missing data payload means the site changed its layout: open an issue on the actor page and we will look at it.

# Changelog

This Actor's version history is a separate document: https://apify.com/rastriq/xegr-scraper/changelog.md

# Actor input Schema

## `brand` (type: `string`):

Optional. Only scrape one car brand, written as on xe.gr (for example <b>BMW</b>, <b>Land Rover</b>, <b>Mercedes-Benz</b>). Leave empty for all used cars. A brand the site does not know ends the run with HTTP 404.

## `max_pages` (type: `integer`):

Enter how many search result pages to scrape. Each page returns <b>36 cars</b>, so 10 pages = 360 listings. The run stops early when the search has no more pages. Start with 1 page for a test run.

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

Apify datacenter proxy (the default) is enough: xe.gr has shown no anti-bot blocking. Turn the proxy off to connect directly. Residential proxy is not needed and is billed by Apify per GB.

## Actor input object example

```json
{
  "brand": "BMW",
  "max_pages": 1,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All scraped listings in the default dataset.

# 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 = {
    "max_pages": 1,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rastriq/xegr-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 = {
    "max_pages": 1,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("rastriq/xegr-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 '{
  "max_pages": 1,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call rastriq/xegr-scraper --silent --output-dataset

```

## MCP server setup

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