By the end of this tutorial you will have a short Python script that turns an AutoScout24 search into structured rows: asking price, mileage, first registration, fuel, power in kW and horsepower, location, and the seller together with the phone numbers the listing publishes.
AutoScout24 runs one site per country, and every search is a long list of result pages. Copying cars out of them by hand does not scale, and a single search stops at 4,000 listings (200 pages of 20, measured in November 2026). The Apify Actor AutoScout24 Scraper (reventadata/autoscout24-scraper) reads those result pages for you, and the Apify Python client lets you start it from code and read the rows back. We will pick a make, add a few filters, run it, and print the cars.
Prerequisites
-
Python 3.11 or newer (
apify-client3.x requires it). - An Apify account and its API token, which you find under API & Integrations in Apify Console.
- The Apify client for Python:
pip install -U "apify-client~=3.0"
The script reads the token from an environment variable, so it never sits in your code:
export APIFY_API_TOKEN="your_apify_token_here"
What you'll achieve
You will search one AutoScout24 marketplace for one make, optionally narrowed by model, price, first-registration year, mileage, fuel type, seller type or a postal code with a radius, and get one row per listing. Each row carries the price, the technical data from the result card and the seller details. AutoScout24 does not allow searches without a make, so a make is the one required input and you run one make at a time.
The Actor works from public pages with no login required. Switzerland (autoscout24.ch) is a different site: this Actor has no Swiss value for country, and Swiss listings belong to the separate autoscout24-ch-scraper.
Step 1: Access AutoScout24 Scraper
Open the AutoScout24 Scraper page on the Apify Store to read the input fields and the output description. For this tutorial we call the Actor from Python, so all you need from the page is its name: reventadata/autoscout24-scraper.
Step 2: Configure the search
Four inputs shape most searches:
-
countrypicks the marketplace:de,at,it,fr,nl,es,lu,be-nl,be-frorcom(Europe-wide). Belgium has two values because its pages live under a language, Dutch or French. The default isde. -
makeis required, written as in an AutoScout24 search URL:bmw,audi,mercedes-benz,alfa-romeo. Spaces become hyphens. -
modelis optional, for examplex3orgolf. -
vehicleTypeiscar(the default) ormotorbike.
The enumerated fields (country, vehicleType, fuel, sellerType, sortBy) are refused before the run starts if you pass a value outside their lists.
Here is the client setup and an input that asks for recent diesel BMW X3 cars with at most 50,000 km:
import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_API_TOKEN"])
run_input = {
"country": "de",
"make": "bmw",
"model": "x3",
"minFirstRegistrationYear": 2020,
"maxMileageKm": 50000,
"fuel": "D",
"sortBy": "newest",
"maxItems": 20,
"maxPages": 1,
}
maxItems and maxPages cap the run; a page holds up to 20 listings, so maxPages of 1 is a quick first test.
Step 3: Optional filters
The filters narrow the search itself, so only matching listings come back:
| Input | What it does |
|---|---|
minPrice, maxPrice
|
Asking-price range in the marketplace currency. |
minFirstRegistrationYear |
Earliest first-registration year. |
maxMileageKm |
Highest mileage. |
fuel |
One fuel code: 2/3 hybrid petrol/diesel, B petrol, C CNG, D diesel, E electric, H hydrogen, L LPG, M ethanol, O other. |
sellerType |
any, or private for private sellers only. |
sortBy |
relevance, newest or priceAsc. |
zip, radiusKm
|
A postal code and a radius in km. Give both together. |
proxyConfiguration |
Off by default. |
For example, private sellers of electric BMWs in Germany:
{
"country": "de",
"make": "bmw",
"fuel": "E",
"sellerType": "private",
"maxItems": 20,
"maxPages": 1
}
Step 4: Run the Actor
call() starts the Actor on the Apify platform and waits for it to finish. We check the status and then read the default dataset:
run = client.actor("reventadata/autoscout24-scraper").call(run_input=run_input)
if run is None or run.status != "SUCCEEDED":
status = run.status if run else "unknown"
raise SystemExit(f"Run did not succeed (status: {status}).")
items = client.dataset(run.default_dataset_id).list_items().items
print(f"Retrieved {len(items)} listings.")
Step 5: View and print the results
Each dataset item is a dictionary, so a plain loop prints the cars. The loop uses .get() because fields the listing does not publish are null, never guessed:
for item in items:
mileage = item.get("mileageInKm")
power = item.get("powerKw")
print(f'{item.get("title")} {item.get("version") or ""}'.strip())
print(
f' {item.get("priceFormatted") or "no price"}'
f' | {f"{mileage:,} km" if mileage is not None else "mileage not stated"}'
f' | first registered {item.get("firstRegistration") or "not stated"}'
f' | {f"{power} kW" if power is not None else "power not stated"}'
)
print(f' {item.get("city")} ({item.get("country")}), seller type: {item.get("sellerType")}')
phones = item.get("sellerPhones") or []
if phones:
print(" Phone:", ", ".join(phone["number"] for phone in phones))
print(f' {item.get("url")}')
print("-" * 50)
You can also export the dataset as JSON, CSV or Excel from its page in Apify Console. Below is a sample from a capture dated 2026-11-08: a private seller from a German search with fuel set to E and sellerType set to private, with the image list cut to one URL.
{
"id": "06aee2ad-d4eb-4963-bfc5-a99fef87725d",
"url": "https://www.autoscout24.de/angebote/bmw-ix2-ix2-xdrive30-m-sportpaket-pro-ahk-360-elektro-blau-cat_ma13gr76601ge772mt1352-06aee2ad-d4eb-4963-bfc5-a99fef87725d",
"title": "BMW iX2",
"vehicleType": "Car",
"make": "BMW",
"model": "iX2",
"variant": null,
"version": "iX2 xDrive30 M-Sportpaket Pro, AHK, 360°",
"subtitle": "Panoramadach, 360° Kamera, Sportpaket, Anhängerkupplung, Sommerreifen, Sitzheizung, Beheizbares Lenkrad, Elektrische Sitze",
"price": 43900,
"priceFormatted": "€ 43.900",
"priceEvaluation": 1,
"mileageInKm": 21500,
"isNew": false,
"firstRegistration": "03/2024",
"firstRegistrationYear": 2024,
"firstRegistrationMonth": 3,
"fuel": "Elektro",
"fuelCode": "e",
"transmission": "Automatik",
"powerKw": 230,
"powerHp": 313,
"engineDisplacementCcm": null,
"isDamaged": false,
"country": "DE",
"zip": "87760",
"city": "Lachen",
"street": null,
"sellerType": "PrivateSeller",
"sellerId": "64543267",
"sellerCompanyName": null,
"sellerContactName": null,
"sellerPhones": [],
"sellerPageUrl": null,
"sellerRating": null,
"sellerRatingsCount": null,
"images": [
"https://prod.pictures.autoscout24.net/listing-images/06aee2ad-d4eb-4963-bfc5-a99fef87725d_845fc8e7-1075-4219-8eda-68714e04630a.jpg/250x188.webp"
],
"marketplace": "de",
"searchUrl": "https://www.autoscout24.de/lst/bmw?page=1&fuel=E&custtype=P"
}
Understanding your results
-
id,url: the listing's id and its address on the marketplace you searched. -
title,make,model,variant,version,subtitle: the car as the seller describes it.vehicleTypeisCarorMotorbike. -
price: the asking price as an integer.priceFormattedis the text the site shows, with that site's number format. -
priceEvaluation: AutoScout24's own price rating as a raw integer. Values from 0 to 4 appear in the captures used for this guide; the scale is not documented on the page, so the Actor adds no labels. -
mileageInKm: digits only, so143.821 kmand185 000 kmboth become numbers. -
firstRegistration(MM/YYYY),firstRegistrationYear,firstRegistrationMonth:nullon new vehicles, which haveisNewset totrue. -
fuel,transmission: the site's display text in the language of the marketplace (Elektroon .de,Elettrica/Benzinaon .it,Essenceon .fr).fuelCodeis the language-independent code in lowercase, for exampled,eorb. -
powerKw,powerHp: read from the power text whichever unit word the site uses (PS, CV or Ch). -
engineDisplacementCcm,isDamaged:nullwhen the listing does not say, as in the electric sample. -
country,zip,city,street: the location the listing publishes;streetisnullfor the private seller in the sample. -
sellerType(DealerorPrivateSellerin the captures),sellerId,sellerCompanyName,sellerContactName,sellerPhones,sellerPageUrl,sellerRating,sellerRatingsCount: the seller as the listing shows them. Private sellers have no company or contact name, andsellerPageUrlis only filled for dealers. -
images: the thumbnail URLs of the listing. -
marketplace: thecountryvalue you searched with.searchUrl: the first result page of your search.
A second sample from a capture dated 2026-11-08, this time a dealer on autoscout24.it, shows what a dealer row adds: company, contact, phones and a dealer page.
{
"id": "a776c3c4-76b2-4418-83d7-728e617af7a0",
"url": "https://www.autoscout24.it/annunci/bmw-x5-xdrive-business-diesel-grigio-cat_ma13mo16406-a776c3c4-76b2-4418-83d7-728e617af7a0",
"title": "BMW X5",
"vehicleType": "Car",
"make": "BMW",
"model": "X5",
"variant": "X5",
"version": "XDrive business",
"subtitle": "POSSIBILITA' DI FINANZIAMENTO IN SEDE",
"price": 23500,
"priceFormatted": "€ 23.500",
"priceEvaluation": 2,
"mileageInKm": 139000,
"isNew": false,
"firstRegistration": "02/2017",
"firstRegistrationYear": 2017,
"firstRegistrationMonth": 2,
"fuel": "Diesel",
"fuelCode": "d",
"transmission": "Automatico",
"powerKw": 190,
"powerHp": 258,
"engineDisplacementCcm": 2993,
"isDamaged": null,
"country": "IT",
"zip": "43123",
"city": "Parma - PR",
"street": "Via Toscana, 94D",
"sellerType": "Dealer",
"sellerId": "42064889",
"sellerCompanyName": "Cambiocar Piacenza-Parma-Reggio Emilia",
"sellerContactName": "Responsabile vendite",
"sellerPhones": [
{
"type": "Office",
"number": "+39 0521 - 347796",
"callTo": "+390521347796"
},
{
"type": "Whatsapp",
"number": "+39 337 - 1526639",
"callTo": null
}
],
"sellerPageUrl": "https://www.autoscout24.it/concessionari/cambiocar-piacenza-parma-reggio-emilia?atype=C",
"sellerRating": 4.5,
"sellerRatingsCount": 19,
"images": [
"https://prod.pictures.autoscout24.net/listing-images/a776c3c4-76b2-4418-83d7-728e617af7a0_2a32305b-f6ab-4311-85dc-9138e35c9b35.jpg/250x188.webp"
],
"marketplace": "it",
"searchUrl": "https://www.autoscout24.it/lst/bmw?page=1"
}
Pro tips
- Stay under the ceiling. AutoScout24 serves 4,000 listings at most for one search. When page 1 reports more, the run log says so and suggests adding a model, a price range, a first-registration year, a mileage limit, a fuel type or a postal-code radius. Split big makes into several narrower searches.
-
Sort for monitoring.
sortBy: "newest"puts the latest listings first, andmaxItemsstops the run early. -
Use
fuelCode, notfuel. The display text changes with the marketplace language; the code does not. - Phones are optional. Dealers publish phone numbers, and some private sellers do. A private seller's number is personal data, so handle it under the data-protection rules that apply to you.
-
Motorbikes use the same inputs with
vehicleType: "motorbike". New bikes come back withisNewset totrueand no first-registration date.
Troubleshooting
-
The run failed saying the make or model does not exist. It is not on that marketplace. Check the slug against an AutoScout24 search URL (
alfa-romeo, notalfa romeo). The run ends FAILED with the message in its status. - The run succeeded with no rows. The marketplace answered normally but nothing matched: the status message says how many pages loaded. Loosen the price, mileage or year filters.
-
The run failed because a page could not be read. When no row was saved and a page could not be read, the Actor fails the run rather than reporting an empty result. Try again later or set
proxyConfiguration. -
A zip without a radius.
zipandradiusKmmust be given together; otherwise the run ends FAILED with a message that says which one is missing.
You are responsible for using the data in line with AutoScout24's terms and the data-protection rules that apply to you.
Next steps
For current pricing and details, see the Store page.
To repeat a search, save it as a task and add a schedule: Apify schedules run Actors and tasks at specific times (docs.apify.com/platform/schedules, read 2026-11-25). To react when a run finishes, add a webhook on ACTOR.RUN.SUCCEEDED: its payload's resource is the response of the Get Actor run API, which carries defaultDatasetId (docs.apify.com/platform/integrations/webhooks/actions, read 2026-11-25).
What are you planning to scrape from AutoScout24? Drop a comment!
Top comments (0)