Every few months someone in Portugal writes a Standvirtual scraper. There are 35 of them on GitHub. Most use Selenium, take a second per page, and break the next time the markup changes. I needed the same data for a price-comparison tool and ended up with something simpler, so here is how the OLX-group sites actually serve their listings, what the data looks like, and a free sample if you just want rows.
The trick: the listings are already JSON
Standvirtual, Imovirtual, OLX Portugal, Otomoto and Otodom are all OLX Group sites built on Next.js. Every search page embeds the complete result set in a <script id="__NEXT_DATA__"> tag before any JavaScript runs. No browser needed: one HTTP request per page gives you 32 (Standvirtual) or 36 (Imovirtual) listings as structured objects.
const html = await (await fetch(url, { headers: { 'user-agent': UA, 'accept-language': 'pt-PT' } })).text(); const data = JSON.parse(/<script id="__NEXT_DATA__"[^>]*>([\s\S]*?)<\/script>/.exec(html)[1]); Where the listings live differs per site:
| Site | Path inside __NEXT_DATA__ | Per page | Pagination |
|---|---|---|---|
| Standvirtual | props.pageProps.urqlState[*].data (a JSON string) → advertSearch.edges[].node | 32 | ?page=N, advertSearch.totalCount |
| Imovirtual | props.pageProps.data.searchAds.items[] | 36 | ?page=N, searchAds.pagination.totalPages |
Standvirtual's quirk: the urql cache entries are JSON encoded as strings inside JSON, so you parse twice. Imovirtual's quirk: roomsNumber is an enum (THREE means T2, because Imovirtual counts rooms, not bedrooms).
Filters that work in the URL
You don't need their GraphQL API. The URL parameters the site itself uses are stable:
Standvirtual (/carros/<make>?...):
| Filter | Parameter |
|---|---|
| Model | search[filter_enum_model]=serie-3 (use this, not /carros/bmw/serie-3: the path form is silently ignored for BMW and Mercedes and returns the whole make) |
| Price | search[filter_float_price:from], search[filter_float_price:to] |
| Year | search[filter_float_first_registration_year:from] / :to |
| Mileage | search[filter_float_mileage:to] |
| Fuel | `search[filter_enum_fuel_type]=diesel |
| Gearbox | {% raw %}`search[filter_enum_gearbox]=manual |
| Seller | {% raw %}`search[private_business]=private |
| Sort | {% raw %}search[order]=created_at_first:desc (newest), filter_float_price:asc, … |
Imovirtual (/pt/resultados/<comprar|arrendar>/<apartamento|moradia|terreno|…>/<distrito>/<concelho>?...): priceMin, priceMax, areaMin, areaMax, roomsNumber=[TWO,THREE], ownerTypeSingleSelect=AGENCY|PRIVATE, market=PRIMARY|SECONDARY, by=PRICE&direction=ASC, by=LATEST&direction=DESC.
What a row looks like
Standvirtual search results already carry everything most analyses need, including the site's own price verdict:
{ "title": "Renault Clio 0.9 TCe GT Line", "make": "Renault", "model": "Clio", "version": "0.9 TCe GT Line", "price": 11500, "year": 2018, "mileageKm": 93107, "fuelType": "Gasolina", "gearbox": "Manual", "enginePowerCv": 90, "engineCapacityCc": 898, "origin": "Nacional", "city": "Riachos", "region": "Santarém", "sellerType": "professional", "dealerName": "César Marques Lda", "priceEvaluation": "IN" } priceEvaluation is BELOW, IN or ABOVE market, computed by Standvirtual. In a 5 000-row snapshot I took on 30 November 2026 across the 12 best-selling models, the median asking price was 15 950 €, 82 % of listings were from dealers, and petrol had overtaken diesel (44 % vs 39 %), with plug-in hybrids already at 10 %.
Imovirtual gives price, €/m², area, typology, floor, parish-level location, agency and feature tags on the search page; the ad page adds GPS coordinates, energy certificate, build year and bathrooms. Lisboa and Porto sale listings in the same snapshot had a median of 3 941 €/m²; the median asking rent was 1 430 €.
What to leave out
Both sites show phone numbers (encrypted on Standvirtual, plain on Imovirtual's ad page) and private sellers' names. Don't collect them. You don't need them for pricing or market analysis, and under GDPR they turn a harmless dataset into a liability. Business names (dealers, agencies) are fine: they're published as businesses.
Be polite to the servers: a handful of concurrent requests, no retries storms, and respect 403s. The data is public, but the bandwidth isn't yours.
Free sample, or skip the maintenance
- Free CSV samples (64 cars, 20 properties): https://ptdata.linkpeek-api.workers.dev
- Two 5 000-row snapshots are on Kaggle (links on the same page).
If you'd rather not maintain a scraper, I packaged both as pay-per-row actors on Apify. They're the extractors described above, with filters as inputs, scheduling, webhooks and CSV/Excel export, and they never return phone numbers or private names:
- Standvirtual Scraper: https://apify.com/mcugoku/standvirtual-scraper
- Imovirtual Scraper: https://apify.com/mcugoku/imovirtual-scraper
About $1 per 1 000 rows, and Apify's free tier covers a few thousand rows a month. Questions about the page structure are welcome in the comments; it's the same across the OLX-group sites, so most of this applies to Otomoto and Otodom too.
