Portugal Real Estate Scraper: Imovirtual & Casa Sapo
Pricing
Pay per event
Portugal Real Estate Scraper: Imovirtual & Casa Sapo
Sale and rental listings from Imovirtual and Casa Sapo in one flat dataset: price, typology (T0 to T5+), area, price per m², parish, municipality, district, energy certificate and coordinates. Search by distrito, concelho and freguesia. No login or API key.
Pricing
Pay per event
Rating
0.0
(0)
Developer
Allan Marcelino
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Portugal Real Estate Scraper: Imovirtual, OLX, SUPERCASA, Casa Sapo and Idealista
Scrape sale and rental listings from Imovirtual, OLX Portugal, SUPERCASA, Casa Sapo and Idealista in one run, in one flat dataset with the same fields for every portal.
Em português: extraia anúncios de imóveis para comprar e arrendar em Portugal do Imovirtual, OLX, SUPERCASA, Casa Sapo e Idealista por distrito, concelho e freguesia, com filtros de tipologia (T0 a T5+), preço, área, certificado energético, anunciante (agência ou particular) e data de publicação. Exemplos de pesquisa: apartamento T2 para arrendar em Lisboa, moradia à venda em Cascais, casas para comprar no Porto, T1 para alugar em Vila Nova de Gaia, terreno à venda no Algarve, imóveis na Madeira e nos Açores.
Search by district (distrito), municipality (concelho) and parish (freguesia), or paste a search URL from Imovirtual or Casa Sapo. You get typology, area, price per m², parish, municipality, district, advertiser type and, optionally, coordinates, bathrooms, energy certificate, condition and build year.
No login, no API key and no proxy of your own needed. Imovirtual and OLX run on plain HTTP; SUPERCASA and Idealista open in a real browser that waits for the portal's own check to pass by itself (it never clicks a checkbox, solves a CAPTCHA or logs in).
Why this one
- Five portals, one schema. The same fields in the same units from Imovirtual, OLX, SUPERCASA, Casa Sapo and Idealista, so you can compare them in one table. The
maxItemsbudget is shared between the portals. - No duplicates between Imovirtual and OLX. Many OLX ads are republished from Imovirtual; with both selected, OLX only adds its own ads (mostly private owners), so the run does not pay twice for the same flat.
- Search by place name, not only by pasted URL. Pick
Lisboa, typeCascais, optionallyCascais e Estoril, and run. Madeira and the Azores are searchable island by island. - Portuguese filters that matter: typology T0 to T5+, energy certificate (A+ to G), agency or private owner, last N days.
- Clean places. Unknown municipalities or parishes are reported instead of silently returning the whole country, as the portals do. Imovirtual also pads a place's results with ads from the next municipality (about 8% in Lisboa). Those are dropped, so a Lisboa search only returns Lisboa.
- Fast and cheap. Imovirtual is read through its light JSON pages, 72 listings per request: about 7,000 listings per minute without details.
- Privacy by design (GDPR). Agency and developer names only. No private owner names, agent names, phone numbers, e-mails or free text descriptions.
Use cases
- Rental and sale price monitoring per parish or municipality
- Investment analysis: price per m², typology mix, energy rating of the stock
- Building a Portuguese real estate dataset for dashboards, maps or models
- Market research for agencies, proptechs, relocation and Golden Visa advisors
Input
| Field | Description |
|---|---|
sources | Any of imovirtual, olx, supercasa, casasapo, idealista; default imovirtual and olx. SUPERCASA, Casa Sapo and Idealista are opt-in, see below. OLX lists apartments and houses only. |
dealType | sale (comprar) or rent (arrendar). |
district | District, island (Madeira, Porto Santo, Azores islands) or All of Portugal, chosen from a list. |
municipalities | Optional municipality (concelho) names, e.g. Cascais, Vila Nova de Gaia. Empty = the whole district. |
parishes | Optional parish (freguesia) names as the portal writes them, e.g. Alvalade, Cascais e Estoril. Only with exactly one municipality. |
startUrls | Optional search pages from imovirtual.com (/pt/resultados/...) or casa.sapo.pt (/comprar-apartamentos/lisboa/). They keep the filters you set on the site; the typology, energy certificate, advertiser, date and sort options of this form are applied on top. The portal of each URL must be selected in sources. |
maxItems | Total listings, default 100. Shared equally between sources and between property types, places and pasted URLs. |
fetchDetails | Imovirtual only, default off. Opens each listing (one light JSON request) for coordinates, bathrooms, energy certificate, condition and build year. |
proxyConfiguration | Optional. By default the actor starts without a proxy and climbs by itself if a portal blocks it. |
Filters
| Filter | Imovirtual | OLX | SUPERCASA | Casa Sapo | Idealista |
|---|---|---|---|---|---|
propertyTypes (apartment, house, land, room, garage; empty = apartments and houses) | yes | apartments and houses only | yes (rooms for rent only) | yes | no rooms |
typologies (T0 to T5+) | yes | yes | yes (T4 or more asked, exact typology kept by the actor) | yes (T5+ asks the portal for T5) | yes (T4 or more asked, exact typology kept by the actor) |
minPrice, maxPrice | yes | yes | yes | yes | yes |
minArea, maxArea | yes | yes | yes, re-checked by the actor (the portal filters usable area, the card shows gross) | yes | yes (gross area) |
energyCertificates | after opening each listing (slower) | yes | source skipped | yes, one certificate only (the source is skipped with more) | source skipped |
advertiserType (any, agency, private) | yes | yes | source skipped (the listing does not say; advertiserType is unknown) | after the search | source skipped (filtering after the search would spend residential traffic on discarded pages) |
publishedWithinDays | yes | after the search (newest first) | 2, 7 or 30 day steps, then cut to the exact day by the actor | 8, 15 or 30 day steps, then cut to the exact day by the actor | 48 hours only (source skipped for more than 2 days); no date in the output |
sortBy (relevance, newest) | yes | yes | yes | yes | yes |
| Location fields in the output | parish, municipality, district | parish, municipality, district | the parish, municipality and district you searched | parish, municipality, district | the parish, municipality and district you searched |
| Photos, coordinates | photos; coordinates with details, not for private owners | photos; coordinates for companies | none | photo; coordinates for companies | photo; no coordinates |
SUPERCASA and Idealista only return what their search cards show (no listing is opened), and neither has island or country-wide pages: add municipalities (for example Funchal) to include them for Madeira or the Azores.
SUPERCASA
SUPERCASA sits behind a Cloudflare check. The actor opens a real Chromium once per IP, lets the check pass by itself (up to 45 seconds, no clicks) and then reads the pages with plain HTTP using the clearance cookie. The first page takes about 20 to 50 seconds; the following ones are quick (25 listings per page).
Idealista (opt-in, slower, costlier)
Idealista is off by default because it only opens in a real browser on a residential Portuguese IP (billed per GB by Apify Proxy), takes one to two minutes to open the first page and every page is a browser navigation (30 listings each, 60 pages per search at most, so 1,800 listings per search; narrow it with municipalities or filters to go further). The datacenter proxy and the container's own IP get an interactive challenge, which this actor never tries to solve: if the residential proxy is not available, Idealista is skipped with a note; if the challenge does not pass by itself, Idealista is reported as failed (see RUN_SUMMARY) in the status message and the other portals carry on.
Casa Sapo is slow on purpose (experimental)
Casa Sapo answers "Site Offline" (HTTP 429 or 503) after a few quick pages from one IP. The actor reads it from one IP at a time, waits one minute between pages (25 listings each) and, when it is limited, changes IP (a new Apify Proxy session) after a 15, 30 or 60 second backoff. After 4 limited IPs in a row it moves to the residential proxy for 3 more, and it stops Casa Sapo after 12 IP changes in a run, keeping what it has. Expect at most about 25 Casa Sapo listings per minute. The other portals are not affected and run at full speed in parallel.
Casa Sapo has no island-wide or country-wide search: for Madeira, the Azores or All of Portugal, add municipalities (e.g. Funchal, Ponta Delgada) to include it.
Memory
The actor's default memory is 1024 MB because of Chromium. A run with Imovirtual, OLX and Casa Sapo only works in 256 MB (set it in the run options).
Example input
{"sources": ["imovirtual", "olx"],"dealType": "rent","district": "lisboa","municipalities": ["Lisboa"],"parishes": ["Alvalade", "Avenidas Novas"],"typologies": ["T1", "T2"],"maxPrice": 1800,"sortBy": "newest","maxItems": 200}
Output
One item per listing:
{"source": "imovirtual","listingId": "19361090","url": "https://www.imovirtual.com/pt/anuncio/t2-no-monte-estoril-jardim-dos-passarinhos-ID1jeHE","dealType": "rent","propertyType": "apartment","title": "T2 apartment for rent in Cascais e Estoril, Cascais","price": 2300,"currency": "EUR","pricePerSqm": 29.49,"area": 78,"landArea": null,"typology": "T2","bedrooms": 2,"bathrooms": 2,"energyCertificate": "D","floor": null,"condition": "used","buildYear": 1985,"street": "Travessa do Hangar","neighborhood": "Monte Estoril","parish": "Cascais e Estoril","municipality": "Cascais","district": "Lisboa","latitude": 38.70558,"longitude": -9.409439,"advertiserType": "agency","agencyName": "KW Select Cascais","coverImage": "https://ireland.apollo.olxcdn.com/...","images": ["https://ireland.apollo.olxcdn.com/..."],"imageCount": 6,"publishedAt": "2026-11-18T17:52:14Z","firstPublishedAt": "2026-11-18T17:52:14+00:00","updatedAt": "2026-11-18T17:52:20Z","scrapedAt": "2026-11-18T22:00:00+00:00"}
Field notes:
priceis in whole euros: monthly rent for rentals, asking price for sales; null when the advertiser hides it.typologyandbedroomsonly for apartments and houses. On Imovirtual they come from the portal's room count (T2 = 3 rooms).- On Imovirtual,
bathrooms,energyCertificate,buildYearand coordinates needfetchDetails(or the energy certificate filter); coordinates are left empty for private owners. OLX gives bathrooms, energy rating and condition in the search; its coordinates are only kept when OLX marks the pin as exact and the advertiser is a company (a private owner's exact pin is a home address). Casa Sapo gives coordinates for company listings only (a private advertiser's pin is a home address), never bathrooms or energy rating. OLX names an advertiser only through its registered company name, so many OLX agencies come withoutagencyName. streetis filled on Imovirtual when the advertiser published it; never on Casa Sapo, SUPERCASA or Idealista, whose cards mix streets and neighbourhoods.areais the usable area on Imovirtual, OLX and Casa Sapo, and the gross built area on SUPERCASA and Idealista (the plot for land).- SUPERCASA does not say who advertises:
advertiserTypeisunknownthere. Idealista marks professional ads, soagencyorprivate; agency names come from the card logo. publishedAtis the last publication or republication;firstPublishedAtthe first one (Imovirtual).
Pricing
Pay per result: one listing event per item stored. No start fee, no proxy surcharge. Use the run option Max total charge or maxItems to cap the cost.
FAQ
Can I get the advertiser's phone or e-mail? No. Only company names are collected (GDPR).
Why did I get fewer items than maxItems? The search had fewer matches, or a filter is applied after the search (see the filter table). The run's status message and the RUN_SUMMARY record in the key-value store tell you how many each source returned and why one stopped.
Is the data for model training? The portals publish Content-Signal: ai-train=no in their robots.txt. Use the data for search, analysis and monitoring, not to train AI models.
A parish is not found. Write it as the portal shows it, including unions of parishes (e.g. Cascais e Estoril, Avenidas Novas). The status message lists the places a portal did not know.