By the end of this tutorial you will have a short Python script that searches public Bazos classified listings, waits for the run to finish, and prints one line per listing with its title, price and link. The output is a list of JSON rows, so you can store them, filter them or open them in a spreadsheet.

Bazos runs classifieds sites for the Czech Republic (bazos.cz) and Slovakia (bazos.sk). Searching one product across a price range, or in one town, means reading result pages by hand. The Bazos Scraper Actor (reventadata/bazos-scraper) replaces that with one call from Python.

Bazos is a trademark of its owner. This Actor is not affiliated with Bazos.

Prerequisites

To follow this tutorial, you need:

  1. Python installed on your machine.
  2. The Apify API client for Python. Install or upgrade it with:
pip install -U "apify-client~=3.0" 
  1. An Apify account and your personal Apify API token.

Set the token as an environment variable in your terminal:

export APIFY_API_TOKEN="your_apify_token_here" 

What you'll achieve

Each dataset row is one listing. A row holds the listing id, url, title, price as the site shows it, priceAmount as a number, currency, description, imageUrl, location, zipCode, views, date, isTop, category, market and searchUrl.

Example use case: pull iPhone listings in a price band on the Slovak site, sort them by price in your script, and save the rows to a file each time you run it.

Note on data: the Actor reads public pages with no login. Titles, prices, places and descriptions appear as the listing publishes them.

Step 1: Open the Actor

Open the Bazos Scraper page on Apify Store. It lists the input fields and the output fields. This tutorial starts the Actor from Python, so you do not need to fill in the form on the page.

Step 2: Set the search inputs

The Actor takes its search from the input you pass to it. These are its input fields:

Field Type Default What it does
query string Required The keyword to search for, for example iphone.
market string cz cz searches bazos.cz with prices in CZK. sk searches bazos.sk with prices in EUR. Any other value is refused before the run starts.
minPrice integer Empty Lower price limit, in the market's currency.
maxPrice integer Empty Upper price limit, in the market's currency.
zipCode string Empty Postal code (PSČ) or municipality to filter listings by place.
distanceKm integer Empty Radius in km around the place in zipCode. If empty, the site applies its own radius for that place.
maxItems integer 1000 Maximum number of listings to collect.
maxPages integer Empty Maximum number of result pages to walk. A page holds up to 40 listings.
proxyConfiguration object Optional Leave it at its default.

In your Python script, create the client and define the input:

import os from apify_client import ApifyClient # 1. Create the client with the token from your environment client = ApifyClient(os.environ["APIFY_API_TOKEN"]) # 2. Define the search; the field names match the Actor's input schema run_input = { "query": "iphone", "market": "sk", "minPrice": 300, "maxPrice": 900, "maxItems": 20, "maxPages": 2, } 

Two notes on the input. market takes only cz or sk, so search each market in its own run. Leave zipCode and distanceKm out unless you need a place filter.

Step 3: Run the Actor

The call below starts the run, waits until it finishes, and returns a run object. The script checks run.status before it reads any rows, and a run that does not succeed stops the script with a message.

# 3. Start the run and wait until it finishes run = client.actor("reventadata/bazos-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}).") # 4. Read the rows from the run's default dataset items = client.dataset(run.default_dataset_id).list_items().items print(f"Retrieved {len(items)} listings.") 

While the run works, the Actor walks the result pages in order, skips a listing it has already saved, and writes each new listing to the dataset.

Step 4: Print the results

Once the run finishes, loop over the rows in items:

for item in items: print(item["title"]) print(f" Price: {item['price']}") print(f" Place: {item['location']}") print(f" Link: {item['url']}") print("-" * 50) 

To save the rows, write items to a JSON file:

import json with open("bazos-listings.json", "w", encoding="utf-8") as f: json.dump(items, f, ensure_ascii=False, indent=2) 

Step 5: Read one row

Sample from a capture dated 2026-11-19, one row, fields abridged. It comes from a plain search for iphone on the Slovak site with no price limits, so it does not reflect the minPrice and maxPrice in the code above.

{ "id": "197422431", "url": "https://mobil.bazos.sk/inzerat/197422431/predam-apple-iphone-16-pro-max-256-gb-titanium.php", "title": "Predám Apple iPhone 16 Pro Max 256 GB – Titanium", "price": "650 €", "priceAmount": 650.0, "currency": "EUR", "location": "Zvolen", "zipCode": "960 01", "views": 256, "date": "19.11. 2026", "isTop": true, "category": "mobil", "market": "sk" } 

Understanding your results

Each field has one meaning, and a few of them need a note:

  • price is the text the listing shows, such as 650 €. Some listings say V texte (price in the text, Slovak site), V textu (price in the text, Czech site) or Dohodou (by agreement) instead of a number.
  • priceAmount is the number parsed from price. It is null when the listing is unpriced or the price is in the text.
  • currency is CZK for cz and EUR for sk. It is null when no currency applies.
  • views is the view count the listing shows, as a number.
  • date is the listing date as text, for example 19.11. 2026. It is not a timestamp, so sort by it with care.
  • isTop is true when the listing is marked TOP on the site.
  • category is the category slug from the listing address, such as mobil or auto.
  • market is cz or sk, and zipCode is the postal code the listing gives.
  • description is the snippet of text from the search listing, not the full advert.

Each listing appears once in a run, even when the same listing turns up on two result pages.

Pro tips and advanced usage

  1. Start small. Set maxItems to a small number while you check the fields. The default is 1000.
  2. Cap the walk. Use maxPages on a broad keyword. Each page holds up to 40 listings, so maxPages: 2 reads at most 80 listings.
  3. Sort on the number, not the text. priceAmount is numeric, so sort on it. Keep the listings where it is null in a separate list.
  4. Leave the radius empty. Set distanceKm only when you need a radius. Otherwise the site applies its own radius for that place.
  5. Compare markets in two runs. Run cz and sk separately, then merge the two lists by url. Currencies differ, so convert before you compare prices.

Troubleshooting common issues

  • The run is refused before it starts. The input does not match the Actor's input schema. Check that query is set and that market is cz or sk.
  • The run succeeds with no rows. Nothing matched the search. Try a shorter keyword, or remove the price and place limits. The run status message says that nothing matched.
  • The run fails. The site refused the run, and the run ends as failed. Run it again later.
  • A row has no price. The listing has no price, or the price is in the text. Read price and priceAmount together.

Next steps

Store the rows, filter them by price or place, or run the same search for another keyword. For current pricing and details, see the Store page.

Which keyword would you track first? Share it in the comments.

About the author: reventadata builds and publishes data extraction Actors on the Apify Store.