# Bazaraki.com Category & Subcategory Ad Scraper (`vexaloom-labs/bazaraki-com-category-and-subcategory-ad-scraper`) Actor

Browse Bazaraki.com's classifieds by category or a real estate/motors subcategory, by city and price, or fetch specific ad URLs directly, with coordinates, photo galleries and full characteristics for real estate, cars and more.

- **URL**: https://apify.com/vexaloom-labs/bazaraki-com-category-and-subcategory-ad-scraper.md
- **Developed by:** [vexaloom-labs](https://apify.com/vexaloom-labs) (community)
- **Categories:** Real estate, Automation, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Bazaraki.com Category & Subcategory Ad Scraper

Scrape [Bazaraki.com](https://www.bazaraki.com) — Cyprus's largest classifieds marketplace, covering real estate, cars & motors, jobs, electronics, pets and general items across all five districts. Browse any category or Real Estate/Motors subcategory without a keyword, search by keyword, filter by district, price, bedrooms, condition and sort order, or fetch exact listing and filtered search URLs.

### What this actor does

- **Two modes:** `search` (keyword + category/subcategory + district + price + bedrooms + condition + sort, with automatic pagination) and `byUrls` (listing URLs and/or category/search URLs, filters included)
- **16 categories**, all directly browsable without a keyword, including Free stuff
- **32 subcategories** for Real Estate for Sale/to Rent and Motors, for finer-grained browsing
- **5 districts:** Nicosia, Limassol, Larnaca, Paphos, Famagusta, or all Cyprus
- **4 sort orders:** most relevant, newest, cheapest, most expensive
- **Filters verified against the site's own filter vocabulary:** price range, bedrooms (studio to 10+), condition (new / resale / under construction), district
- **Legacy inputs mapped in code:** `query`, `maxResults`, `startUrl`, `sort`, `priceMin`/`priceMax`, `rooms`, and case variants keep old tasks working
- **Cookieless and credential-free:** reads Bazaraki's own public JSON listing API; if that path is unreachable it falls back to the server-rendered HTML JSON, then to a stealth browser. No cookies, logins, API keys or proxy setup are required.
- **Pagination that follows the source:** the site's cursor/next-page signal, 100 rows per request, deduplicated by listing id
- **Empty fields are omitted** — every record only contains fields Bazaraki actually published for that listing

### Output per listing

- `id`, `title`
- `price`, `currencySymbol`, `currencyCode`, `priceOriginal` (struck-through/original price when discounted), `priceDescription` (e.g. Negotiable)
- `pricePerSquareMeter` (Real Estate, requires `includeDetails`)
- `cityName`, `areaName`, `location` — the site's own district/area string
- `latitude`, `longitude`, `coordinatesApproximate` (requires `includeDetails`; present when the listing has a map pin)
- `categoryPath[]`, `categoryName` — full breadcrumb such as `Motors > Cars > Toyota > Yaris Cross`
- `description` (full text, requires `includeDetails`)
- `features[]` — the raw feature chips the source shows on the listing card
- `characteristics` — labeled key/value map from the listing's own characteristics panel (requires `includeDetails`)
- Typed fields parsed from `characteristics` when present for that listing's category:
  - Real estate: `bedrooms`, `bathrooms`, `propertyAreaSqm`, `plotAreaSqm`, `condition`, `parking`, `includedAmenities[]`, `energyEfficiency`, `itemType`, `floor`, `furnishing`, `constructionYear`, `airConditioning`, `pets`, `postalCode`
  - Motors: `year`, `mileageKm`, `gearbox`, `fuelType`, `bodyType`, `driveType`, `enginePower`, `engineSize`, `seats`, `colour`, `doors`, `extras[]`, `referenceNumber`, `motTill`
  - Other categories: `condition`, `kind`, `itemType` and category-specific labels when Bazaraki publishes them
- `imageUrl`, `imageUrls[]`, `imageCount`
- `adType` (VIP/TOP/etc.), `isFeatured`, `isVipPlus`, `hasVideo`, `isNew`, `publishedText`
- `sellerName`, `sellerId`, `sellerLogo`, `sellerVerified`, `isBusinessAccount`, `isCompany`, and with `includeDetails`: `sellerProfileUrl`, `sellerWebsite`, `sellerPostingSince`, `sellerActiveAds`
- `favoritesCount`, `viewsCount` (require `includeDetails`)
- `vin`, `imei`, `virtualTourUrl`, `videoUrl`, `youtubeUrl`, `tiktokUrl` (only when the listing has them)
- `sourceUrl` — the canonical Bazaraki.com listing page
- `recordType: "listing"`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | select | `search` | `search` / `byUrls` |
| `searchQuery` | string | – | Free-text keyword (mode=search) |
| `category` | select | `all` | One of 16 categories, or `all` (mode=search) |
| `subcategory` | select | – | One of 32 Real Estate / Motors subcategories; overrides `category` (mode=search) |
| `city` | select | `all` | Nicosia / Limassol / Larnaca / Paphos / Famagusta / all (mode=search) |
| `sortBy` | select | `relevant` | `relevant` / `newest` / `cheapest` / `expensive` (mode=search) |
| `minPrice` | int | – | Only keep listings at or above this EUR amount |
| `maxPrice` | int | – | Only keep listings at or below this EUR amount |
| `bedrooms` | select | – | `studio` / `1`–`9` / `10` (10+) for Real Estate |
| `condition` | select | – | `new` / `used` / `resale` / `under-construction` |
| `startUrls` | array | – | Listing URLs and/or category/search URLs (mode=byUrls) |
| `includeDetails` | bool | `false` | Fetch full detail data per listing (slower, more complete) |
| `maxItems` | int | `30` | Hard cap on emitted records (1–2000) |

#### Example: iPhones under €800 in Nicosia, cheapest first

```json
{
  "mode": "search",
  "searchQuery": "iphone",
  "city": "nicosia",
  "maxPrice": 800,
  "sortBy": "cheapest",
  "maxItems": 50
}
```

#### Example: new 2-bedroom houses for sale in Paphos, with full details

```json
{
  "mode": "search",
  "subcategory": "real-estate-for-sale/houses",
  "city": "paphos",
  "bedrooms": "2",
  "condition": "new",
  "includeDetails": true,
  "maxItems": 50
}
```

#### Example: browse a whole category without a keyword

```json
{
  "mode": "search",
  "category": "telephones",
  "sortBy": "newest",
  "maxItems": 100
}
```

#### Example: fetch specific listing and search URLs

```json
{
  "mode": "byUrls",
  "startUrls": [
    "https://www.bazaraki.com/adv/6659275_iphone/",
    "https://www.bazaraki.com/real-estate-for-sale/houses/lemesos-district-limassol/?price_max=500000"
  ],
  "maxItems": 100
}
```

### Use cases

- Vehicle price comparison and used-car market tracking
- Price tracking / arbitrage for phones, electronics and general items
- Cyprus real estate market research with coordinates and labeled property characteristics
- Jobs and services listing analysis
- Classifieds aggregation and monitoring

### Data source

Bazaraki is a Next.js site. Its public pages stream the complete listing data as JSON, and the same data is served by the site's own JSON listing endpoints. This actor reads that data directly, so a restyle does not empty a run. The older pre-2026 HTML layouts are still parsed as a fallback. If the JSON path is blocked from the current network, the actor falls back to the HTML page (identical embedded JSON) and finally to a stealth browser that solves Cloudflare's challenge; the browser path is only used when the cheaper paths fail.

### Limitations

- **Keyword search is capped by Bazaraki at about 1,000 matches.** Browse a category (or add district/price filters) to split a larger search.
- **Images need browser-like headers.** Bazaraki's image CDN answers a plain `curl` request without a Referer with 403; the URLs open normally in a browser (and the actor uses the site's own Referer when fetching). They are returned as the site's original absolute CDN URLs.
- **Coordinates are published only when the seller pins a map location.** Listings without a pin omit `latitude`/`longitude`; when the site marks a pin approximate, `coordinatesApproximate` is `true`.
- **A bare listing ID is not enough for `byUrls`.** Bazaraki's routing requires the URL's slug — use the full listing URL (e.g. `https://www.bazaraki.com/adv/6659275_iphone/`).
- **Private contact info is not scraped.** Phone numbers, WhatsApp, email and chat require a logged-in session; the actor only returns publicly visible data (`sellerName`, profile URL, website, business flag).
- **`publishedText` is the site's relative text** ("2 weeks ago"), not an exact timestamp — Bazaraki does not publish the original posting timestamp in the listing JSON.
- **Paid VIP/TOP ads always lead each page**, then the selected sort applies inside each block; this is the site's ordering, not an actor bug.

### FAQ

**What's Bazaraki?** Cyprus's largest online classifieds marketplace — comparable to Craigslist, OLX or Gumtree — covering real estate, vehicles, jobs, services and general items across the whole island.

**Which currency are prices in?** Euro (EUR). Both the symbol (`€`) and ISO code (`EUR`) are included on every priced listing.

**Can I search without a keyword?** Yes, for all 16 categories — leave `searchQuery` empty and set `category` (and/or `subcategory`, `city`) to browse.

**Can I browse a specific property or vehicle type?** Yes — use `subcategory` for finer-grained browsing in Bazaraki's two largest verticals, Real Estate and Motors.

**Why is `includeDetails` off by default?** The listing card already returns price, location, seller, image gallery, promotion type and feature chips — enough for most use cases. `includeDetails` adds the full description, labeled characteristics, coordinates, seller profile and view/favorite counters, at the cost of one extra request per listing.

**How many listings can I pull at once?** Up to 2000 per run. Pagination follows Bazaraki's own cursor and stops at the source's end.

**Do I need a proxy?** No. The actor reads the public JSON path first and only escalates automatically if the network path is blocked.

# Actor input Schema

## `mode` (type: `string`):

Search / browse listings, or fetch the exact listing and search URLs you already have.

## `searchQuery` (type: `string`):

Free-text keyword, e.g. `iphone`, `toyota`, `apartment`. Leave empty to browse a category unfiltered. Bazaraki caps keyword results at about 1,000 matches; use category + filters for complete lists.

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

Browse one of Bazaraki's top-level categories, or all categories when a keyword is given.

## `subcategory` (type: `string`):

Drill into a Real Estate or Motors subcategory (property type or vehicle type). Overrides `category` when set.

## `city` (type: `string`):

Restrict results to a Cyprus district.

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

How to order results. Bazaraki always shows paid VIP/TOP ads first within a page, then applies this order.

## `minPrice` (type: `integer`):

Only keep listings priced at or above this amount (EUR; monthly rent for rentals).

## `maxPrice` (type: `integer`):

Only keep listings priced at or below this amount (EUR; monthly rent for rentals).

## `bedrooms` (type: `string`):

Restrict Real Estate listings to this number of bedrooms. Ignored for categories that do not offer a bedroom filter.

## `condition` (type: `string`):

Restrict results to new, resale/used, or under-construction items where Bazaraki offers a condition filter (mainly Real Estate and some goods). `used` and `resale` mean the same thing.

## `startUrls` (type: `array`):

Full Bazaraki listing URLs (e.g. `https://www.bazaraki.com/adv/6659275_iphone/`) and/or category or search URLs (filters are kept). A bare numeric ID cannot be fetched because Bazaraki's routing needs the URL's slug.

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

When on, fetches each listing's detail data for the full description, labeled characteristics, coordinates, seller profile, views/favorites and the complete photo gallery. Slower but much more complete.

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

Hard cap on emitted records.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "",
  "category": "telephones",
  "subcategory": "",
  "city": "all",
  "sortBy": "relevant",
  "bedrooms": "",
  "condition": "",
  "startUrls": [],
  "includeDetails": false,
  "maxItems": 3
}
```

# Actor output Schema

## `listings` (type: `string`):

Dataset containing all scraped Bazaraki.com listings.

# 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 = {
    "mode": "search",
    "searchQuery": "",
    "category": "telephones",
    "subcategory": "",
    "city": "all",
    "sortBy": "relevant",
    "bedrooms": "",
    "condition": "",
    "startUrls": [],
    "includeDetails": false,
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("vexaloom-labs/bazaraki-com-category-and-subcategory-ad-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 = {
    "mode": "search",
    "searchQuery": "",
    "category": "telephones",
    "subcategory": "",
    "city": "all",
    "sortBy": "relevant",
    "bedrooms": "",
    "condition": "",
    "startUrls": [],
    "includeDetails": False,
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("vexaloom-labs/bazaraki-com-category-and-subcategory-ad-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 '{
  "mode": "search",
  "searchQuery": "",
  "category": "telephones",
  "subcategory": "",
  "city": "all",
  "sortBy": "relevant",
  "bedrooms": "",
  "condition": "",
  "startUrls": [],
  "includeDetails": false,
  "maxItems": 3
}' |
apify call vexaloom-labs/bazaraki-com-category-and-subcategory-ad-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vexaloom-labs/bazaraki-com-category-and-subcategory-ad-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/FnFZwJ4Y29OLRABGK/builds/5hfRqWWvyeMTJZDmO/openapi.json
