# Bazar.bg Scraper: Bulgaria Classified Ads (`reventadata/bazar-bg-scraper`) Actor

Scrape Bazar.bg, the Bulgarian classifieds site, by search term. Title, price in EUR, negotiable flag, city, listing date, promoted and top-ad badges, photo and link. Filter by price range, exclude words and sort order. Unofficial.

- **URL**: https://apify.com/reventadata/bazar-bg-scraper.md
- **Developed by:** [reventadata](https://apify.com/reventadata) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

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

## Bazar.bg Scraper

> **Unofficial.** This Actor is not affiliated with, authorised by, endorsed by, or in any
> way officially connected to Bazar.bg or its operator. "Bazar.bg" is a trademark of its
> respective owner and is used here only to describe what this tool reads. It reads the same
> public pages a browser does.

Bazar.bg Scraper extracts classified ads from [bazar.bg](https://bazar.bg), a Bulgarian classifieds site, by keyword.

### What does it do?

Searches bazar.bg for one or more keywords and returns one row per ad: title, price as a number with its currency, the price text as shown, location, listing date, thumbnail, and whether the ad is a paid or TOP slot. Optionally it opens every ad to add the full description, all photos, condition, parameters, category path, view count and the public seller name and profile.

### Why use it?

- **Structured columns:** price is a number (null for "Договаряне", negotiable), the date is an ISO date with the year worked out, and the original texts are kept beside them.
- **Price bands:** the site shows at most 25 pages (about 1,500 ads) per search. Run the same keyword with different minimum and maximum prices to cover a broad search; the Actor logs a warning when a search is cut short.
- **Fuzzy search cleaned up:** bazar.bg also returns loosely related ads. By default a row is kept only if its title contains every word of your keyword (works for Cyrillic and Latin).
- **Public data only:** seller names and profile ids the site shows publicly are in the rows with full ad pages; the seller phone is behind a login on bazar.bg and is never returned.

### How to use it

1. Give one or more keywords in `searchQueries`.
2. Optionally set a price range, sort order, excluded words, and whether to fetch full ad pages.
3. Run the Actor and download results as JSON, CSV, Excel or NDJSON from the dataset.

#### Input

| Field | Type | Description |
|---|---|---|
| `searchQueries` | array | Keywords to search (required). |
| `priceFrom`, `priceTo` | integer | Price range in euros, applied by the site. |
| `sortBy` | string | `relevance`, `newest`, `priceAsc` or `priceDesc`. |
| `titleMustContainKeywords` | boolean | Keep an ad only if its title has every keyword (default on). |
| `excludeWords` | array | Drop ads whose title has any of these words. |
| `includeDetails` | boolean | Open every kept ad for description, photos, parameters, seller (one extra request per row). |
| `maxItems` | integer | Hard cap on rows across all keywords. |
| `maxPages` | integer | Pages per keyword, 1 to 25 (about 68 ads per page). |
| `proxyConfiguration` | object | Optional; off by default. |

#### Sample input

```json
{
    "searchQueries": ["iphone"],
    "priceFrom": 100,
    "priceTo": 300,
    "sortBy": "newest",
    "maxItems": 100
}
```

#### Output

Every row has: `id`, `url`, `title`, `price`, `currency`, `priceText`, `isNegotiable`, `location`, `city`, `listedText`, `listedOn`, `imageUrl`, `isPromoted`, `hasTopBadge`, `matchedKeyword`, `searchUrl`, `scrapedAt`. With `includeDetails`: `description`, `images`, `brand`, `condition`, `parameters`, `categories`, `postedText`, `views`, `sellerName`, `sellerId`, `sellerProfileUrl`, `sellerAdCount`, `sellerMemberText`. `listedText` is the date as the site shows it (the publish or last-refresh day, no year); `listedOn` is the same day as an ISO date.

#### Sample output

One row from a real platform run on 2026-11-11 (search `iphone`, `includeDetails` off):

```json
{
  "id": "56839659",
  "url": "https://bazar.bg/obiava-56839659/iphone-17-air-1tb",
  "title": "IPhone 17 Air 1TB",
  "price": 1150,
  "currency": "EUR",
  "priceText": "1 150 €",
  "isNegotiable": false,
  "location": "гр. София",
  "city": "София",
  "listedText": "05 ноември",
  "imageUrl": "https://cdn9.focus.bg/bazar/6b/pics/6be9e1663870fa75c2431651dac05df3.webp",
  "isPromoted": true,
  "hasTopBadge": true,
  "listedOn": "2026-11-05",
  "matchedKeyword": "iphone",
  "searchUrl": "https://bazar.bg/obiavi?q=iphone",
  "scrapedAt": "2026-11-11T06:35:38.073462+00:00"
}
```

### Pricing

The current price is on the Actor's Pricing tab.

### Privacy & Compliance

This Actor reads only publicly accessible pages and returns the public data they show. It sends no login, so ad phone numbers (which bazar.bg shows only to logged-in users) are not returned.

# Actor input Schema

## `searchQueries` (type: `array`):

One or more keywords to search on bazar.bg, for example "iphone" or "велосипед". Bulgarian (Cyrillic) and Latin keywords both work. Required.

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

Optional. Lowest asking price in euros, applied by the site. Combine with Maximum price to split a broad search into price bands, because the site shows at most 25 pages (about 1,500 ads) per search.

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

Optional. Highest asking price in euros, applied by the site. Left out of the request when empty.

## `sortBy` (type: `string`):

Relevance (the site's default), newest first, cheapest first or most expensive first.

## `titleMustContainKeywords` (type: `boolean`):

The site's search is fuzzy and also matches ad text and loosely related ads. When on, an ad is kept only if its title contains every word of the search query (accent- and case-insensitive). Turn off to keep everything the site returns.

## `excludeWords` (type: `array`):

Optional. Ads whose title contains any of these words are dropped (for example "калъф" to skip cases).

## `includeDetails` (type: `boolean`):

When on, the Actor opens every kept ad to add the description, all photos, condition, parameters, category path, view count and the public seller name and profile. One extra request per row, so runs are slower. The seller phone is behind a login on bazar.bg and is never returned.

## `maxItems` (type: `integer`):

Hard cap on rows pushed across all queries.

## `maxPages` (type: `integer`):

Optional cap on result pages per query (about 68 ads each, 25 pages is the site's ceiling).

## `proxyConfiguration` (type: `object`):

Optional. Left off by default; turn it on only if you see request failures.

## Actor input object example

```json
{
  "searchQueries": [
    "iphone"
  ],
  "sortBy": "relevance",
  "titleMustContainKeywords": true,
  "includeDetails": false,
  "maxItems": 10,
  "maxPages": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Items scraped from the target website.

# 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 = {
    "searchQueries": [
        "iphone"
    ],
    "maxItems": 10,
    "maxPages": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("reventadata/bazar-bg-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 = {
    "searchQueries": ["iphone"],
    "maxItems": 10,
    "maxPages": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("reventadata/bazar-bg-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 '{
  "searchQueries": [
    "iphone"
  ],
  "maxItems": 10,
  "maxPages": 1
}' |
apify call reventadata/bazar-bg-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,reventadata/bazar-bg-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/vvwTPfy7XEaTqmgko/builds/dewVg6KddloDWrwBj/openapi.json
