Skip to main content

Complete Guide: How to Scrape Storia Property Listings Using Python

Run the Storia Scraper Apify Actor from Python to pull public property listings, prices and seller fields into structured JSON rows.

Updated 10 min readMarkdown
Complete Guide: How to Scrape Storia Property Listings Using Python

This guide shows how to run an automated Storia property extraction from Python. The script calls the Storia Scraper Actor through the Apify API and receives one JSON record per listing. Each record carries the price, the price per square metre, the area, the rooms, the floor, the location fields and the seller fields, so you can compare listings across districts without opening each page.

Storia.ro is a Romanian property portal for apartments and houses, for sale or for rent. The Actor reads its public search pages and returns the listings for the search you describe. This Actor is not affiliated with Storia.

It is written for readers who can already run a Python script. The guide covers the input fields, the run, the shape of each row, and the common reasons a run returns less than you expected. It ends with a few habits that keep repeated runs comparable, so tables built on different days can be compared.

TL;DR

In this guide you will install the apify-client package, set a search in Python (sale or rent, apartment or house, a location, an optional price limit), run the Actor and read the rows it returns. The Actor's Store page is at apify.com/reventadata/storia-scraper. The example output comes from a sample from a run dated 2026-11-20.

Prerequisites and setup

You need Python 3 and a free Apify account. Copy your personal API token from the account settings. Install the client and keep the token in an environment variable, so it never appears in your script:

pip install -U "apify-client~=3.0"
export APIFY_API_TOKEN="your_apify_token_here"

No Storia login is needed. The Actor reads public search pages, so it needs no browser.

Before you start, write down the search you want: sale or rent, apartments or houses, one location or the whole country, and whether you want a price limit. A written search makes the input block below easier to check, and it is the same search you will repeat later.

Step-by-step walkthrough

Find the Actor and set the input

Open the Storia Scraper page on Apify Store. The input fields are transaction (buy or rent), propertyType (apartament or casa), location (a path copied from a storia.ro search URL, such as bucuresti or toata-romania), the optional minPrice and maxPrice in EUR, ownerType (any or private), sortBy (relevance, priceAsc or newest), maxItems and the optional maxPages.

import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_API_TOKEN"])

run_input = {
    "transaction": "buy",
    "propertyType": "apartament",
    "location": "bucuresti",
    "maxPrice": 100000,
    "ownerType": "private",
    "sortBy": "newest",
    "maxItems": 10,
    "maxPages": 1,
}

A location the site does not recognise stops the run with an input error. Copy the path exactly as it appears after the property type in a storia.ro search URL.

Start the run and wait for it

The call below starts the Actor and waits for the run to finish. It then reads the default dataset of that run:

print("Starting Storia listing extraction...")
run = client.actor("reventadata/storia-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"Extraction complete! Retrieved {len(items)} listings.\n")

While the run is active, the Actor reads the search pages and saves each listing to the default dataset. The script can wait, or you can read the dataset later with the same run.default_dataset_id.

Read the rows

Print the fields you need from each row:

for item in items:
    print(item.get("price"), item.get("currency"), item.get("areaM2"), "m2", item.get("rooms"), "rooms")
    print(f"  District: {item.get('district')}, sector: {item.get('sector')}")
    print(f"  Seller: {item.get('sellerType')}, agency: {item.get('agencyName')}")
    print(f"  {item.get('url')}")
    print("-" * 50)

Here is one row from a sample from a run dated 2026-11-20, a search for apartments for sale in Bucharest. The excerpt keeps selected fields only:

{
  "id": "10776680",
  "url": "https://www.storia.ro/ro/oferta/apartament-2-camere-decomandat-mobilat-utilat-metrou-berceni-IDJdwq",
  "price": 109000,
  "currency": "EUR",
  "pricePerSquareMeter": 1730.16,
  "areaM2": 63,
  "rooms": 2,
  "floor": "FIFTH",
  "county": "Bucuresti",
  "sector": "Sectorul 4",
  "district": "Aparatorii Patriei",
  "sellerType": "business",
  "agencyName": "TopHome.ro",
  "isPrivateOwner": false,
  "createdAt": "2026-11-12T18:06:23+00:00",
  "features": [
    "AIR_CONDITIONING",
    "SEPARATE_KITCHEN",
    "BALCONY",
    "SECURE_BUILDING"
  ]
}

The dataset has no phone number field. Each row lists the contact names the listing shows in contactNames instead.

Understanding Storia Scraper

Each row describes one listing, and the fields fall into four groups.

Price. price is the asking price in currency, which is EUR on almost every listing. On rent searches it is the monthly rent. priceHidden is true when the seller hid the price, and price is then null, never 0. pricePerSquareMeter is the price per square metre as the site computes it.

Size and layout. areaM2 is the area in square metres, rooms is the number of rooms and floor is the floor as the site names it, such as GROUND or SECOND.

Location. county is the county, such as Bucuresti or Ilfov. sector is set for Bucharest listings. city is set for towns outside the capital, where sector and district are null. Seller. sellerType is the site's advertiser type: private_person, agency, business or developer. agencyName is the agency or developer that published the listing and is null for private owners. isPrivateOwner is true only for a private owner. advertiserName and contactNames carry the public names the listing shows.

The investment* fields describe new-development listings only, so they are null on a resale apartment. pushedUpAt is the last time the seller bumped the listing, or null.

Working with the API

The Apify API lets any language start the Actor and read its results. The Python client is a thin wrapper over those calls, so the same search works from a cron job, a notebook or another service. Pass the input as a JSON object, read the run to find its dataset, and page through the dataset if you expect many rows.

The Python client's call() returns a run object, and the run object exposes status and default_dataset_id. The Actor writes one row per listing into that dataset, so you can export it as JSON, CSV or Excel from the Apify Console or read it in code. Store the run identifier next to your data, so you can trace each row back to the run and its input. A row always comes with its searchUrl, which records the page-one search it came from.

Each listing appears once in the dataset, so id works as a key when you merge runs. Keep your token in the environment, as the setup section shows, and never paste it into the script.

If you need only the rows and not the run, read the dataset of a finished run directly. The createdAt field tells you when each listing was first created, so keep it with the saved rows.

Advanced usage patterns

Sweep several districts. Start one run per location in a loop, using the same transaction and propertyType. Merge the datasets on id, which is unique per listing, so a listing that appears in two searches is kept once.

Keep sale and rent apart. A sale price and a monthly rent are different measures. Run the two transaction values into separate tables, and never sort them together.

Filter in your own code. The Actor applies minPrice, maxPrice, ownerType and the sort order at the source. Other filters, such as a minimum area or a floor range, are simple checks on the rows you already have:

def fits(row, min_area_m2=50):
    return row.get("areaM2") is not None and row["areaM2"] >= min_area_m2 and row.get("rooms") == 2

shortlist = [row for row in items if fits(row)]

Sort by price per square metre. Use the pricePerSquareMeter field to rank listings of different sizes on one scale. Drop rows where it is null before you rank, so they do not sort to an arbitrary place.

Compare districts on one scale. Once the rows from several locations sit in one table, sort on pricePerSquareMeter and keep the district column next to it. Each price is then read against its own area and its own neighbourhood.

Understanding your data

The dataset schema describes each field, and the rows follow it. The table below groups the fields you will use most.

Group Fields What to expect
Identity id, url, title, searchUrl id is unique per listing; searchUrl is the page-one search the row came from
Price price, currency, priceHidden, pricePerSquareMeter price is null when hidden; pricePerSquareMeter can be null on rentals
Size areaM2, rooms, roomsLabel, floor rooms is null when the listing states none
Location county, city, sector, district, street Bucharest rows set sector; town rows set city
Seller sellerType, agencyName, agencyType, isPrivateOwner, contactNames Private owners have a null agencyName
Dates createdAt, pushedUpAt ISO 8601 timestamps; pushedUpAt can be null

In the sample run dated 2026-11-20, every listing came from an agency or developer, so every row had isPrivateOwner set to false. A private-owner search returns different rows, so expect the seller fields to vary with ownerType.

Troubleshooting guide

The run stops with an input error about the location. The message says that the location does not exist on the site. Copy the path from a real storia.ro search URL, for example cluj/cluj--napoca or timis/timisoara. A path the site does not have stops the run.

The run ends without rows. Open the run in the Apify Console and read its log. The log names the search it read. Check that the same search opens on storia.ro in a normal browser, then try again later.

A field is null on every row. Some fields apply only to certain listings. The investment* fields apply only to developments, and sector applies only to Bucharest. Read the field's description in the dataset schema before you treat it as a bug.

Your totals do not match the site. The Actor returns the listings the search returns, up to maxItems and maxPages. A small cap gives a sample, not the full market. Raise the caps, or check whether maxPages is set.

Best practices

  • Test with small caps. Set maxItems to 10 and maxPages to 1 while you check the fields, then raise them.
  • Use a stable key. Store id with every row so later runs merge without duplicates.
  • Record the search. Keep searchUrl and your input dictionary with the saved rows, so you can say which search produced each row.
  • Keep the input with the data. Save the run_input dictionary with each export, so a later reader can see the filters behind the rows.
  • Write the date. Store the date you ran the search. Listings are created and bumped on different days, so the createdAt and pushedUpAt fields tell you how old each row is.

For current pricing and details, see the Store page.

Conclusion

A Storia search becomes a table in a few lines of Python: set the search, run the Actor, read the rows. Start with a small cap, check the fields against the dataset schema, and merge runs on id. Read the Store page for the current input fields and dataset structure.

About the author: reventadata builds and maintains scrapers for public marketplace, job and property sites on the Apify Store.

Tell us in the comments which city you would track first.

About the author

  • Hi, I'm the engineer behind ReventaData. I build pay-per-event Apify Actors that turn public marketplace, classifieds, jobs and real-estate sites into clean, reliable datasets. Here on Hashnode, I share practical tutorials on collecting structured web data with Python and Apify, and on putting it to work: price tracking, lead lists and market analysis. Explore our turnkey scrapers: https://apify.com/reventadata

No comments yet. Be the first to comment.