# Bazos.cz / Bazos.sk Classifieds Scraper (`clever_seabutterfly/bazos-scraper`) Actor

Scrape Bazos.cz and Bazos.sk classified listings: title, price, currency, city, postcode, date, views, thumbnail and URL. Optional full description and photo gallery. Search by keyword, category, location and price. No login, API key or proxy.

- **URL**: https://apify.com/clever_seabutterfly/bazos-scraper.md
- **Developed by:** [Vojtech Sventek](https://apify.com/clever_seabutterfly) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 bazos listing scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bazos.cz / Bazos.sk Classifieds Scraper

**Bazos.cz / Bazos.sk Classifieds Scraper** extracts classified ads from [Bazos.cz](https://www.bazos.cz) and [Bazos.sk](https://www.bazos.sk), the largest free classifieds sites in Czechia and Slovakia, and lets you **export Bazos listings to JSON, CSV or Excel**. Search any section (phones, cars, home, real estate, jobs and more) by keyword, location and price, and get clean rows with **title, price, currency, city, postcode, date, views, thumbnail and URL**. Switch on full details for the description and photo gallery. No login, API key or proxy needed.

### What data can you get?

| Field | Example |
| --- | --- |
| Title, URL, listing ID | `iPhone Air (256GB)`, `226671140` |
| Country and category | `cz`, `mobil` |
| Price, currency, price text | `14000`, `CZK`, `14 000 Kč` (EUR on bazos.sk) |
| City, postcode, location text | `Ostrava`, `74285` |
| Date, TOP badge, views | `24.11. 2026`, `isTop: true`, `1114` |
| Snippet and thumbnail | short advert text + HTTPS image URL |
| **With details:** description | full advert text |
| **With details:** photos | gallery URLs and photo count |
| **With details:** seller name | first name or initials when Bazos shows them |

Phone numbers are hidden behind a “show number” control on Bazos. This Actor does **not** reveal or collect them.

### Why this scraper

- **Plain public HTML.** No unofficial API key, no login, no proxy for a polite crawl.
- **Search URL or simple filters.** Paste a Bazos search URL, or pick country, category, keyword, location and price.
- **Czechia and Slovakia.** `bazos.cz` (CZK) and `bazos.sk` (usually EUR) in one Actor.
- **Flat, analysis-ready output.** One row per listing, prices parsed to numbers, postcodes split out.
- **Optional paid details.** Pay for the full description and gallery only when you need them.
- **Fast.** A 20-listing search without details finishes in a few seconds.

### Use cases

- **Price research:** compare asking prices for a model (phones, cars, bikes) across cities.
- **Reseller monitoring:** watch a keyword daily and diff new IDs.
- **Czech / Slovak market datasets:** build classifieds datasets for analysis or journalism.
- **Lead lists for a category:** newest ads in a section and a postcode radius.

### How to use

1. Open the Actor and either paste a **Bazos search URL** or choose **Country**, **Category** and a **Keyword** (for example `iphone` in Phones).
2. Optionally set a location (postcode or place), radius and price range.
3. Set **Max listings** (`0` means no limit).
4. Turn on **Fetch full details** if you need the full description and photo gallery.
5. Click **Start**. When it finishes, open the **Dataset** tab and export JSON, CSV, Excel, XML or HTML, or fetch the data through the Apify API.

### Input example

```json
{
    "country": "cz",
    "category": "mobil",
    "query": "iphone",
    "location": "",
    "radiusKm": 25,
    "maxListings": 20,
    "fetchDetails": false
}
```

Or with a search URL:

```json
{
    "searchUrl": "https://mobil.bazos.cz/search.php?hledat=iphone&hlokalita=11000&humkreis=25",
    "maxListings": 50
}
```

A single listing URL scrapes that one ad with details:

```json
{
    "searchUrl": "https://mobil.bazos.cz/inzerat/226671140/iphone-air-256gb-vesmirne-cerna-zaruka-12-mesicu.php"
}
```

| Field | Description |
| --- | --- |
| `searchUrl` | Bazos search URL or single listing URL (`.cz` or `.sk`). Country and category come from the URL. Price fields can still override the URL's price filters. A listing URL returns that one listing with details. |
| `country` | `cz` (default) or `sk` |
| `category` | `www` (all sections) or a section such as `mobil`, `auto`, `dum`, `reality`, `pc`. Default / prefill: `mobil`. |
| `query` | Search keyword. Prefill: `iphone`. |
| `location` | Postcode (PSČ) or place name. Empty = whole country. |
| `radiusKm` | Radius around the location, in km (Bazos default 25). |
| `priceFrom` / `priceTo` | Price limits (CZK on `.cz`, usually EUR on `.sk`). |
| `maxListings` | Max rows to save. Prefill `20`. `0` = no limit. |
| `fetchDetails` | `false` (default): list-card fields only. `true`: also fetch each detail page. |

### Cost

Pay-per-event pricing (Apify platform usage is extra, usually a fraction of a cent on a short run):

| Event | When | Price |
| --- | --- | --- |
| Actor start | Once per run | $0.00005 (platform default) |
| `listing` | Each listing saved | **$0.001** ($1.00 / 1,000) |
| `listing-detail` | Each listing successfully enriched with the detail page | **$0.002** ($2.00 / 1,000) |
| Dataset item | Each dataset row | $0.00001 (platform default) |

Example: 1,000 list-only rows ≈ **$1.06**. 1,000 rows with details ≈ **$3.06**.

### Output

One dataset item per listing. List-only runs fill title, price, city, date, views, snippet and thumbnail. Detail runs add `description`, `photos` and `sellerName` when visible.

### Limitations

- Phone numbers are not collected (they are hidden on the site).
- Very large unrestricted crawls should stay polite; the Actor requests one page at a time with a short delay.
- Layout of Bazos HTML can change; if a run returns 0 listings, open an Issue with the search URL.
- Austria and Poland Bazos sites are not included in this version.

### Changelog

- **0.1.0** — First public version: CZ/SK search, list + optional details, pay-per-event pricing.

# Actor input Schema

## `searchUrl` (type: `string`):

Optional. A Bazos search URL (e.g. `https://mobil.bazos.cz/search.php?hledat=iphone`) or a single listing URL (`https://mobil.bazos.cz/inzerat/123/...`). When set, country and category come from the URL. A listing URL scrapes that one listing with full details.

## `country` (type: `string`):

Czechia (bazos.cz, prices in CZK) or Slovakia (bazos.sk, prices usually in EUR).

## `category` (type: `string`):

Bazos section to search. `www` searches all sections.

## `query` (type: `string`):

Search phrase, e.g. `iphone`, `kolo`, `Praha byt`. Leave empty to list the newest ads in the category.

## `location` (type: `string`):

Bazos location filter: a postcode (PSČ) such as `11000`, or a place name. Leave empty to search the whole country.

## `radiusKm` (type: `integer`):

Search radius around the location, in kilometres. Ignored when location is empty. Bazos default is 25.

## `priceFrom` (type: `integer`):

Minimum price (CZK on bazos.cz, usually EUR on bazos.sk).

## `priceTo` (type: `integer`):

Maximum price (CZK on bazos.cz, usually EUR on bazos.sk).

## `maxListings` (type: `integer`):

Maximum number of listings to save. Set to `0` for no limit.

## `fetchDetails` (type: `boolean`):

Open each listing page to add the full description and photo gallery. Billed as an extra `listing-detail` event and slower. Phone numbers are hidden on Bazos and are not collected.

## Actor input object example

```json
{
  "country": "cz",
  "category": "mobil",
  "query": "iphone",
  "radiusKm": 25,
  "maxListings": 20,
  "fetchDetails": false
}
```

# Actor output Schema

## `overview` (type: `string`):

Table of scraped listings with the key columns: title, price, currency, city, date and link.

## `allItems` (type: `string`):

Every dataset item with all fields, including snippet, photos, views and (with Fetch details) the full description.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "country": "cz",
    "category": "mobil",
    "query": "iphone",
    "maxListings": 20,
    "fetchDetails": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("clever_seabutterfly/bazos-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "country": "cz",
    "category": "mobil",
    "query": "iphone",
    "maxListings": 20,
    "fetchDetails": False,
}

# Run the Actor and wait for it to finish
run = client.actor("clever_seabutterfly/bazos-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "country": "cz",
  "category": "mobil",
  "query": "iphone",
  "maxListings": 20,
  "fetchDetails": false
}' |
apify call clever_seabutterfly/bazos-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,clever_seabutterfly/bazos-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/AIcC1jbon0MNkrH2F/builds/t8VqpdlvnUnb029qQ/openapi.json
