# OLX Scraper: Romania, Portugal, Bulgaria, Ukraine Classifieds (`rel8ble/olx-classifieds-scraper`) Actor

OLX.ro, OLX.pt, OLX.bg and OLX.ua scraper and API (Romania, Portugal, Bulgaria, Ukraine): search by keyword, category, city, URL, filter by price, seller and date. One row per ad: title, full description, price, condition, private or business, attributes, city, posted time, photos. $0.50 per 1,000.

- **URL**: https://apify.com/rel8ble/olx-classifieds-scraper.md
- **Developed by:** [Giovanni Rich](https://apify.com/rel8ble) (community)
- **Categories:** E-commerce, Real estate, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.50 / 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

## OLX Scraper: Romania, Portugal, Bulgaria, Ukraine Classifieds

**OLX scraper** and unofficial **OLX API** for four OLX sites: **olx.ro** (Romania), **olx.pt** (Portugal), **olx.bg** (Bulgaria) and **olx.ua** (Ukraine). Export second-hand and classified ads by keyword, category, city or region, or from pasted OLX URLs; filter by price, private or business seller and date, and download them as JSON, CSV or Excel. Use it as an **OLX price tracker**, for used phone, car and property prices, resale and flipping research, dealer monitoring and new-ad alerts.

- **What goes in:** keywords (`iphone 13`, `bicicleta`, `bmw x5`), countries (`ro`, `pt`, `bg`, `ua`), categories in the site's language (`Telefoane`, `Telemóveis`, `Телефони и таблети`) or by id, cities and regions (`bucuresti`, `cluj-judet`, `lisboa`, `sofiya`, `kiev`), price range, private / business, sort order, posted within N days, include / exclude words, or OLX URLs.
- **What comes out:** one row per ad: title, **full description**, price, currency, price text, negotiable flag, condition, private or business seller, all attributes (model, storage, make, year, km ...), category path, city, district, region, approximate coordinates, posted / refreshed / expiry time, promoted flags, OLX delivery flag, all photos and the URL.
- **Typical cost:** $0.50 per 1,000 ads, no start fee. A 20-ad check costs $0.01.
- **When to use it:** pricing a used phone, car or flat in Romania, Portugal, Bulgaria or Ukraine, catching underpriced ads, tracking supply and asking prices by city, monitoring dealers and shops, feeding Eastern European second-hand prices to an AI agent.

It reads the public search pages over plain HTTP, **no browser and no login**, 40 ads per request with the full description included. Unofficial: not affiliated with or endorsed by OLX Group.

### Sample output

Real rows from a run of the prefilled input ("iphone" on olx.ro, 20 ads, 16 Nov 2026):

| title | price (RON) | condition | seller | city | region | posted | promoted |
|---|---|---|---|---|---|---|---|
| ispotmobile.ro iPhone 14 128GB Garanție 2 ani | 1,799 | Utilizat | business | Bistrita | Bistrita-Nasaud | 2025-04-29 | yes |
| iPhone 16 Pro 128Gb Natural titanium/Baterie99%/Ga... | 3,500 | Utilizat | business | Oradea | Bihor | 2025-10-16 | yes |
| iphone 15 fisurat black | 1,000 | Utilizat | private | Oradea | Bihor | 2026-11-15 | no |
| iPhone 14 în stare perfectă | 1,000 | Utilizat | private | Motru | Gorj | 2026-11-16 | no |
| iPhone 12 128GB Black | 550 | Utilizat | private | Gratia | Teleorman | 2026-11-16 | no |
| Iphone 13 pro max perfect functional | 900 | Utilizat | private | Bucuresti | Bucuresti - Ilfov | 2026-11-16 | no |

Every row also carries the full description, attributes (`{"Model": "iPhone 14", "Stare": "Utilizat"}`), category path (`Electronice si electrocasnice > Telefoane > iPhone`), coordinates, dates, photos and the ad URL. See `sample-output.json` for complete rows.

### Use cases

- **Price research**: what a phone, laptop, bike or car really sells for second-hand in Romania, Portugal, Bulgaria or Ukraine.
- **Cross-country arbitrage**: run the same keyword on all four sites in one go and compare EUR, RON and UAH asking prices.
- **Resale and flipping**: catch underpriced ads with a scheduled run, `sortBy: newest`, `postedWithinDays: 1` and a price ceiling.
- **Dealer and shop monitoring**: `sellerType: business` lists shops and dealers in a category or city.
- **New-ad alerts**: hourly or daily runs into Telegram, Slack or e-mail through Make, Zapier or n8n.
- **AI agents**: "used iPhone 13s under 1,500 lei in Cluj from private sellers" maps straight onto the input fields.

### Pricing

**$0.50 per 1,000 ads** (pay per result; you pay only for ads saved to the dataset). Full descriptions are included; Apify platform usage and proxies are included too.

| You scrape | You pay |
|---|---|
| 100 ads | $0.05 |
| 1,000 ads | $0.50 |
| 10,000 ads | $5.00 |
| 100,000 ads | $50.00 |

No start fee. Ads that are read but filtered out (words, date, promoted) are free. You're never charged for failed requests, retries, duplicates, unknown categories or places. If you set a maximum cost per run, the scraper stops cleanly when it reaches it.

Other OLX scrapers on the Store (Apify Store data, 21 Oct 2026): piotrv1001's OLX Listings Scraper $1.00 per 1,000 listings plus $2.00 per 1,000 for details; abotapi's OLX Scraper $1.00-$2.00 per 1,000 plus a start fee; 123webdata $0.89 per 1,000 plus a $0.01 start fee and $1.99 per 1,000 for details; parseforge $13.50-$18.00 per 1,000. This one is $0.50 per 1,000 with the full description included and no start fee.

### How to use

1. Type **search keywords** (`iphone 13`, `canapea`) and pick one or more **countries**.
2. Optionally add **categories** (in the site's language, or by id) and **cities or regions** (`bucuresti`, `lisboa`, `sofiya`, `kiev`).
3. Optionally set a **price range**, **seller type**, **sort order** and **posted within N days**.
4. Or paste **OLX URLs**: a search, category or city page, with or without OLX's own filters.
5. Click **Start**. Ads are saved as they come in; download them as JSON, CSV or Excel, or read them through the Apify API.

### Input

```json
{
    "searchQueries": ["iphone 13"],
    "countries": ["ro", "bg"],
    "locations": ["bucuresti", "sofiya"],
    "priceMax": 2000,
    "sellerType": "private",
    "sortBy": "newest",
    "postedWithinDays": 3,
    "excludeKeywords": ["husa", "defect"],
    "maxItems": 200
}
```

Prices are in the site currency: RON on olx.ro, EUR on olx.pt and olx.bg, UAH on olx.ua. Category names are each site's own (Romanian, Portuguese, Bulgarian, Ukrainian); ids and URL paths also work, e.g. `948` or `electronice-si-electrocasnice/telefoane-mobile/iphone`. All categories of the four sites are built in.

### Output

```json
{
    "id": "286504482",
    "url": "https://www.olx.ro/d/oferta/ispotmobile-ro-iphone-14-128gb-garantie-2-ani-IDjo8U2.html",
    "title": "ispotmobile.ro  iPhone 14 128GB Garanție 2 ani",
    "description": "iSPOT MOBILE® – MAGAZIN TELEFOANE SECOND HAND ...",
    "price": 1799,
    "currency": "RON",
    "priceText": "1 799 lei",
    "negotiable": false,
    "condition": "Utilizat",
    "conditionCode": "used",
    "sellerType": "business",
    "attributes": { "Model": "iPhone 14", "Garantie": "garantie", "Stare": "Utilizat" },
    "categoryId": "948",
    "categoryPath": "Electronice si electrocasnice > Telefoane > iPhone",
    "city": "Bistrita",
    "region": "Bistrita-Nasaud",
    "country": "Romania",
    "latitude": 47.13,
    "longitude": 24.5,
    "postedAt": "2025-04-29T19:43:19+03:00",
    "refreshedAt": "2026-11-14T10:52:21+02:00",
    "isPromoted": true,
    "courierDelivery": true,
    "imageUrl": "https://frankfurt.apollo.olxcdn.com:443/v1/files/qs28zsjem53i2-RO/image;s=1000x1000",
    "imageCount": 8,
    "site": "olx.ro",
    "searchQuery": "iphone",
    "position": 1
}
```

A `RUN_SUMMARY` record in the key-value store lists, per search: ads saved, ads OLX shows, pages read, ads filtered out and why it stopped, plus warnings and failures.

One HTTP call that runs the actor and returns the rows (curl):

```bash
curl -X POST "https://api.apify.com/v2/acts/rel8ble~olx-classifieds-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["iphone 13"], "countries": ["pt"], "locations": ["lisboa"], "sortBy": "newest", "maxItems": 100}'
```

### Integrations

- **Make, Zapier and n8n**: trigger runs and pass new OLX ads into any workflow (Telegram, Slack or e-mail alerts under a price).
- **Google Sheets**: send each run's dataset into a spreadsheet to track prices over time.
- **Apify API**: start runs and fetch results over REST, or with the JavaScript and Python clients.
- **Webhooks**: get notified when a run finishes, then pull the new data.
- **MCP for AI agents**: the Apify MCP server (https://mcp.apify.com) lets Claude, ChatGPT, Cursor and other agents call this actor. Typical agent call: `{"searchQueries": ["ps5"], "countries": ["ro"], "maxItems": 20}`, about 1 cent.
- **Schedules**: run it daily with `sortBy: newest` and `postedWithinDays: 1` to catch new ads.

### FAQ

**Which OLX countries are supported?**
Romania (olx.ro), Portugal (olx.pt), Bulgaria (olx.bg) and Ukraine (olx.ua). OLX Poland, Kazakhstan and Uzbekistan refuse plain HTTP requests, and OLX Brazil and India are different platforms, so they are not included.

**How many ads can one search return?**
OLX shows at most 25 pages (1,000 ads) per search. For more, split the search by category or city (one search per combination is built for you), or use several keywords.

**How do I pick a city or region?**
Use the name as it appears in OLX URLs: `bucuresti`, `cluj-napoca`, `cluj-judet` (county), `iasi`, `lisboa`, `porto`, `sofiya`, `plovdiv`, `kiev`, `lvov`, `odessa`. Spaces and accents are normalized, so `Cluj judet` works. A place OLX doesn't know returns a warning, never a charge.

**Can I use OLX's own filters?**
Yes. Paste the search URL from your browser; price, sort, page and other filters in it are kept. The `priceMin`, `priceMax`, `sellerType` and `sortBy` fields are sent to OLX as its own filters too.

**What about personal data?**
The actor collects no seller names, user ids, phone numbers or e-mail addresses: only OLX's private / business flag, the city, region and coordinates rounded to about 1 km. Phone numbers and e-mails that sellers type into titles and descriptions are replaced with `[phone removed]` / `[email removed]`.

**Is it legal to scrape OLX?**
This actor reads publicly available search pages without logging in and respects OLX's robots.txt (no `/api/`, contact, account or `?q=` URLs). You're responsible for using the data in line with OLX's terms and applicable law (including the GDPR). This isn't legal advice.

**What happens if I run it with no input?**
It returns 20 ads for "iphone" on olx.ro instead of failing.

### Limits

- **1,000 ads per search** (OLX's own cap): split by category, city or keyword for more.
- **Category names are per site language**: `Telefoane` works on olx.ro, not on olx.pt; ids and URL paths are per site too.
- **Single ad URLs are not read**: every field comes from the search pages, which already carry the full description.
- **Not included:** seller names, profiles, phone numbers, messages and anything behind a login.

### How it works (for developers)

OLX search pages embed the whole result set (40 ads plus promoted ones, with full descriptions, parameters and photos) in `window.__PRERENDERED_STATE__`; the actor reads it with Crawlee's HttpCrawler, rotates sessions on blocks and retries failed pages. `src/categories.json` is built from the category tree each site embeds, by `scripts/make-categories.mjs`.

```bash
npm install
npm test                                   # parser tests on saved real pages
npx apify-cli run -p                       # demo run with the default input
```

Need a custom scraper or a ready dataset? Hire me on Fiverr: https://www.fiverr.com/rel8ble

# Actor input Schema

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

Optional. What you would type into the OLX search box, one per line: "iphone 13", "bicicleta", "ps5", "canapea", "bmw x5". Each keyword is one search (times each country, category and location). Leave empty to list a whole category or city instead.

## `countries` (type: `array`):

Optional. Which OLX sites to search: ro (Romania, prices in RON), pt (Portugal, EUR), bg (Bulgaria, EUR), ua (Ukraine, UAH). Several = the same search on each site. Empty = Romania.

## `categories` (type: `array`):

Optional. OLX categories, one per line, as the site names them in its own language, or by id or URL path: "Telefoane" or "iPhone" (olx.ro), "Telemóveis" (olx.pt), "Телефони и таблети" (olx.bg), "Телефони та аксесуари" (olx.ua), "948", "electronice-si-electrocasnice/telefoane-mobile". All categories of the four sites are built in. Unknown names are skipped with a warning.

## `locations` (type: `array`):

Optional. Cities or regions as they appear in OLX URLs, one per line: "bucuresti", "cluj-napoca", "cluj-judet" (a Romanian county), "lisboa", "porto", "sofiya", "varna", "kiev", "lvov". Spaces and accents are fine ("Cluj judet"). A place OLX doesn't know returns a not-found warning, never a charge. Empty = the whole country.

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

Optional. OLX search, category or city pages copied from your browser (https://www.olx.ro/oferte/q-iphone/, https://www.olx.pt/telemoveis-e-tablets/telemoveis/lisboa/, https://www.olx.ua/uk/elektronika/kiev/q-iphone/). Filters in the URL (price, sort, page) are kept. Single ad pages are not read.

## `priceMin` (type: `integer`):

Optional. Lowest price, in the site's currency (RON on olx.ro, EUR on olx.pt and olx.bg, UAH on olx.ua). Sent to OLX as its own price filter.

## `priceMax` (type: `integer`):

Optional. Highest price, in the site's currency. Sent to OLX as its own price filter.

## `sellerType` (type: `string`):

Optional. private = individuals, business = shops and companies (OLX's own private / business flag).

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

Optional. Order OLX returns ads in. Use newest with postedWithinDays for new-ad alerts.

## `postedWithinDays` (type: `integer`):

Optional. Keep only ads posted in the last N days (0 = today only). With sortBy newest the search stops at the first page of older ads.

## `mustInclude` (type: `array`):

Optional. Keep only ads whose title or description contains at least one of these words, e.g. "256gb", "garantie".

## `excludeKeywords` (type: `array`):

Optional. Drop ads whose title or description contains any of these words, e.g. "husa", "case", "defect". Dropped ads are free.

## `skipPromoted` (type: `boolean`):

Optional. Leave out paid promoted (top) ads that OLX mixes into results.

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

How many ads to save per search (country x keyword x category x location). 0 = all OLX shows (up to 1,000 per search; split by category or city for more).

## `maxPagesPerSearch` (type: `integer`):

Safety cap on results pages read per search (40 ads per page, OLX stops at 25).

## `maxConcurrency` (type: `integer`):

Pages fetched in parallel. 3 is polite and fast enough (about 1,000 ads per minute).

## `maxRequestRetries` (type: `integer`):

Retries for a page that fails or is blocked (each on a new session / IP).

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

Apify Proxy (datacenter) is the default and is included in the price.

## Actor input object example

```json
{
  "searchQueries": [
    "iphone"
  ],
  "countries": [
    "ro"
  ],
  "sellerType": "any",
  "sortBy": "relevance",
  "skipPromoted": false,
  "maxItems": 20,
  "maxPagesPerSearch": 25,
  "maxConcurrency": 3,
  "maxRequestRetries": 6,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `ads` (type: `string`):

All ads found: title, full description, price and currency, condition, private / business seller, attributes, category path, city, region, approximate coordinates, posted / refreshed / expiry times, promoted flags, delivery flag, photos and URL.

## `summary` (type: `string`):

Per-search counts: ads saved, ads OLX shows, pages read, ads scanned and filtered out, stop reason, warnings and failures.

# 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"
    ],
    "countries": [
        "ro"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rel8ble/olx-classifieds-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"],
    "countries": ["ro"],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("rel8ble/olx-classifieds-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"
  ],
  "countries": [
    "ro"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call rel8ble/olx-classifieds-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rel8ble/olx-classifieds-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/0lQkjeye6DenbHevO/builds/7Cwl34Pycnldm8Vca/openapi.json
