# OLX Scraper: Listings, Prices & Sellers in 7 Countries (`innolabs/olx-scraper`) Actor

OLX scraper API for olx.pl, olx.ua, olx.ro, olx.bg, olx.pt, olx.kz and olx.uz: search by keyword, category, city or URL and get prices, attributes, photos, GPS and seller data.

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

## Pricing

from $0.90 / 1,000 listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

## OLX Scraper: Listings, Prices & Sellers in 7 Countries

Get OLX listings as clean data from **olx.pl, olx.ua, olx.ro, olx.bg, olx.pt, olx.kz and
olx.uz**: title, full description, price with currency and negotiable flag, previous price,
condition, every category attribute (car year and mileage, phone model and memory, flat
area, rooms and floor…), salary ranges for jobs, photos, city, district, region and GPS
point, seller name, business flag and seller ID, promoted flags and post dates. Search by
keyword with filters, paste any OLX search or category link, a single listing or a seller's
page. No OLX account, no login, no API key. Export as JSON, CSV or Excel, or use it as an
OLX API.

### What does OLX Scraper do?

Type a keyword such as **iphone 13**, pick the country and optional filters (category,
city or region, price range, condition, private or business seller, sort order, "posted
after"), or paste OLX links copied from your browser:

- **Search and category pages** —
  `https://www.olx.pl/elektronika/telefony/warszawa/q-iphone/?search[filter_float_price:from]=1000`
  keeps all the filters you set on the website.
- **Single listings** — `https://www.olx.pl/d/oferta/czarny-iphone-15-CID99-ID1dn4yb.html`.
- **Seller pages** — `https://www.olx.pl/oferty/uzytkownik/1sQKv8/` returns every active
  listing of that seller.

Every listing becomes one flat record with the same fields on all seven sites:

- **Price** — `price` (number), `currency`, `priceLabel` as shown, `negotiable`,
  `previousPrice` (price drops), `priceType` (price, free, exchange, budget…); jobs get
  `salaryFrom`, `salaryTo`, `salaryCurrency`, `salaryPeriod` and `salaryGross`.
- **Item** — `title`, full `description` as plain text with line breaks, `condition`
  (new/used/damaged), `attributes` (all category parameters with their labels in
  `attributeNames`), `categoryId`, photos (`imageUrl`, `photos`, `photoCount`).
- **Location** — `city`, `district`, `region` with OLX IDs, `latitude`/`longitude` and
  whether the point is exact or approximate (`locationRadiusKm`).
- **Seller** — `sellerName`, `sellerCompanyName`, `isBusiness`, `sellerId`/`sellerUuid`,
  registration date, last seen, whether a phone number and chat are available, OLX
  delivery.
- **Listing status** — `createdAt`, `refreshedAt`, `pushedUpAt`, `validTo`, `isPromoted`
  (paid slot in the results), `isTopAd`, `isHighlighted`, `isUrgent`.

Data is read live from OLX at run time.

### Use cases

- **Used-car and real-estate analysis** — export cars with year and mileage, or rentals
  with area, rooms, floor and price, and compare prices by city and region.
- **Resale and price research** — find the going rate for phones, consoles, tools and
  other used goods across Poland, Ukraine, Romania and four more markets.
- **New-listing alerts** — schedule a run with **Only listings posted after** = `1 day`
  and get only fresh listings for your keyword.
- **Price-drop monitoring** — `previousPrice` shows listings that were just reduced.
- **Dealer and shop leads** — filter **Seller type** = Business to list companies,
  shops and agencies active in a category and city.
- **Job market data** — collect OLX job ads with salary ranges, hourly or monthly, gross
  or net.
- **Dashboards and AI agents** — feed clean OLX data into Google Sheets, BI tools or an
  LLM agent.

### How much does it cost?

You pay only for the listings you get (pay-per-event). Duplicates, failed links and
listings above your limits are never charged.

| Event | What you pay for | Free plan | Paid plans (from) |
| --- | --- | --- | --- |
| `listing` | One OLX listing with price, attributes, photos, location and seller details | $0.90 per 1,000 | $0.90 per 1,000 |

The price is the same on every plan and includes all fields (description, GPS, seller,
attributes); there are no add-on events. Apify also charges a tiny actor-start fee per run.

Worked examples:

1. **Quick check** — the prefilled input (keyword `iphone 13` on olx.pl, 20 listings):
   20 × $0.90 / 1,000 = **$0.018**.
2. **Weekly market snapshot** — 10 car models × 1,000 listings each = 10,000 listings:
   10,000 × $0.90 / 1,000 = **$9.00**.

Apify Free plan includes $5 monthly credit, enough for about 5,500 OLX listings every
month.

### How to use OLX Scraper

1. Open the actor in Apify Console and click **Try for free**.
2. Enter one or more **Search queries** and choose the **Country**, or paste OLX links
   into **Start URLs** (search/category pages, single listings, seller pages; any of the
   seven sites).
3. Optionally set the filters: **Category ID**, **City, district or region**, **Min/Max
   price**, **Condition**, **Seller type**, **Sort by**, **Only listings posted after**.
4. Set **Max listings per search** and **Max items** and click **Start**. 1,000 listings
   take about 20 seconds.
5. Open the **Output** tab (Listings, Details & location, Jobs views) and export as JSON,
   CSV, Excel or HTML.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `searchQueries` | array | – | Keywords, one search each, on the site chosen in `country`. |
| `startUrls` | array | – | OLX links: search or category pages (with their filters), single listings, seller pages. Each link uses its own site. |
| `country` | string | `pl` | `pl`, `ua`, `ro`, `bg`, `pt`, `kz` or `uz`, for search queries and category ID. |
| `categoryId` | integer | – | OLX category ID (per country, e.g. 1838 = Phones on olx.pl). Alone, lists the whole category. |
| `location` | string | – | City, district or region as written on OLX: `Warszawa`, `Mokotów`, `Mazowieckie`, `Kraków, Małopolskie`, `Київ`. |
| `priceMin` / `priceMax` | integer | – | Price range in the local currency. |
| `condition` | string | `any` | `new`, `used` or `damaged` (categories with a condition). |
| `sellerType` | string | `any` | `private` or `business`. |
| `sortBy` | string | `relevance` | `newest`, `price-asc`, `price-desc`. |
| `postedAfter` | string | – | Only listings first posted after a date (`2026-11-01`) or within a period (`7 days`, `24 hours`). |
| `includePromoted` | boolean | `true` | Keep the paid promoted listings OLX mixes into every results page. |
| `maxItemsPerSearch` | integer | `1000` | Cap per search query or link. |
| `maxItems` | integer | `1000` | Hard cap on listings for the whole run. |
| `proxyConfiguration` | object | Apify Proxy | Proxy settings; the default works. |
| `debug` | boolean | `false` | Log every results page and retry. |

Filters (price, condition, seller type, sort, category) also apply on top of pasted search
links; the location filter applies to search queries.

Example — used iPhones from private sellers in Warsaw, 500–1,500 PLN, cheapest first:

```json
{
    "searchQueries": ["iphone 13", "iphone 14"],
    "country": "pl",
    "location": "Warszawa",
    "priceMin": 500,
    "priceMax": 1500,
    "condition": "used",
    "sellerType": "private",
    "sortBy": "price-asc",
    "maxItems": 300
}
```

Example — flats for rent in Kyiv posted in the last 3 days, from a pasted link:

```json
{
    "startUrls": [{"url": "https://www.olx.ua/uk/nedvizhimost/kvartiry/dolgosrochnaya-arenda-kvartir/kiev/"}],
    "postedAfter": "3 days",
    "maxItems": 500
}
```

Example — every listing of a seller plus two single listings:

```json
{
    "startUrls": [
        {"url": "https://www.olx.pl/oferty/uzytkownik/1sQKv8/"},
        {"url": "https://www.olx.pl/d/oferta/czarny-iphone-15-CID99-ID1dn4yb.html"},
        {"url": "https://www.olx.ro/d/oferta/iphone-13-pro-max-128-gb-IDl7x8V.html"}
    ]
}
```

### Output

Listing record from a real run on 2026-11-21 (description shortened):

```json
{
    "id": 1113775263,
    "url": "https://www.olx.pl/d/oferta/iphone-13-83-kondycji-CID99-ID1dnhP9.html",
    "title": "Iphone 13 83% kondycji",
    "description": "Biały iphone 13. Baterie miał wymienioną na oryginalną około dwa lata temu i ma teraz 83% kondycji. …",
    "price": 650,
    "currency": "PLN",
    "priceLabel": "650 zł",
    "priceType": "price",
    "negotiable": false,
    "previousPrice": null,
    "convertedPrice": null,
    "convertedCurrency": null,
    "salaryFrom": null,
    "salaryTo": null,
    "salaryCurrency": null,
    "salaryPeriod": null,
    "salaryGross": null,
    "condition": "used",
    "attributes": {"state": "Używane", "phonemodel": "iPhone 13", "builtinmemory_phones": "128GB", "coloriphone": "Biały"},
    "attributeNames": {"state": "Stan", "phonemodel": "Model telefonu", "builtinmemory_phones": "Wbudowana pamięć", "coloriphone": "Kolor"},
    "categoryId": 2298,
    "categoryType": "electronics",
    "offerType": "offer",
    "status": "active",
    "isBusiness": false,
    "sellerId": 2165053976,
    "sellerUuid": "4bd33252-01c7-4b77-8a4d-53a763927d93",
    "sellerName": "Maciej",
    "sellerCompanyName": null,
    "sellerRegisteredAt": "2024-05-04T17:50:48+02:00",
    "sellerLastSeenAt": "2026-11-21T02:20:19+01:00",
    "sellerOtherAdsEnabled": true,
    "hasPhone": true,
    "chatEnabled": true,
    "courierDelivery": false,
    "olxDelivery": true,
    "city": "Warszawa",
    "cityId": 17871,
    "district": "Bielany",
    "districtId": 369,
    "region": "Mazowieckie",
    "regionId": 2,
    "latitude": 52.28479,
    "longitude": 20.93958,
    "locationExact": false,
    "locationRadiusKm": 7,
    "imageUrl": "https://ireland.apollo.olxcdn.com/v1/files/2svc7kv8a54m2-PL/image;s=803x1000",
    "photos": ["https://ireland.apollo.olxcdn.com/v1/files/2svc7kv8a54m2-PL/image;s=803x1000", "…"],
    "photoCount": 8,
    "isTopAd": false,
    "isHighlighted": false,
    "isUrgent": false,
    "createdAt": "2026-11-21T02:20:18+01:00",
    "refreshedAt": "2026-11-21T02:23:29+01:00",
    "pushedUpAt": null,
    "validTo": "2026-12-21T02:20:19+01:00",
    "country": "pl",
    "isPromoted": false,
    "searchQuery": "iphone 13",
    "sourceUrl": null,
    "page": 1,
    "scrapedAt": "2026-11-21T11:05:04Z"
}
```

Field notes:

- `id` — OLX's numeric listing ID, stable across runs; with `country` it is a unique key.
- `price` is a number in `currency`; `priceLabel` is the text OLX shows. `convertedPrice`
  is OLX's own conversion where it offers one (e.g. USD listings on olx.ua).
- `attributes` keys are OLX's parameter keys (same across listings of a category); values
  are the labels in the site's language. `attributeNames` gives the label of each key.
- `isPromoted` — the listing was shown in a paid slot of the results page; `isTopAd`,
  `isHighlighted`, `isUrgent` — the paid features the seller bought.
- `latitude`/`longitude` — when `locationExact` is false, OLX shows an approximate point
  within `locationRadiusKm`.
- `hasPhone` — the seller published a phone number (the number itself is not included).
- Dates are ISO 8601 with the site's time zone offset; `scrapedAt` is UTC.
- `searchQuery` / `sourceUrl` / `page` — which input (and results page) produced the record.

### Integrations and API

Run the actor and get the listings back in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/innolabs~olx-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["rower"], "country": "pl", "location": "Kraków", "maxItems": 100}'
```

Python with [apify-client](https://docs.apify.com/api/client/python):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("innolabs/olx-scraper").call(run_input={
    "searchQueries": ["iphone 13"],
    "country": "ro",
    "sortBy": "newest",
    "maxItems": 200,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["url"], item["price"], item["currency"], item["city"])
```

- **Make, Zapier, n8n** — use the Apify app or node to start the actor and send listings to
  Google Sheets, Airtable, Slack or a database.
- **Scheduling** — create a schedule in Apify Console and combine it with
  `postedAfter` for new-listing alerts.
- **Webhooks** — trigger your pipeline when a run finishes.
- **AI agents (MCP)** — connect Claude, Cursor or other MCP clients through the Apify MCP
  server at https://mcp.apify.com and let your agent pull OLX listings on demand.

### FAQ

#### Which OLX sites are supported?

Poland (olx.pl), Ukraine (olx.ua), Romania (olx.ro), Bulgaria (olx.bg), Portugal (olx.pt),
Kazakhstan (olx.kz) and Uzbekistan (olx.uz). They share one platform, so the records have
the same fields everywhere. OLX Brazil and OLX India run on different systems and are not
covered.

#### How many listings can I get per search?

OLX shows at most about 1,000 regular results per search (plus promoted ones), even when a
search has 150,000 matches. To get more, split the search: by city or region, by price
range, by category, or with several keywords. Duplicates across your searches are removed
and not charged.

#### Do I need an OLX account or cookies?

No. The scraper reads public OLX data without logging in, so your own account is never at
risk.

#### Does it return the seller's phone number?

No. OLX shows phone numbers only after a click, often only to logged-in users. Records say
whether a number exists (`hasPhone`) and give the seller's name, company, ID and seller
page, so you can contact them on OLX.

#### How do I find a category ID?

Easiest: open the category on OLX in your browser, set the filters you want and paste the
link into **Start URLs**. The category ID of any listing is also in its `categoryId` field.

#### How does "Only listings posted after" work?

It keeps listings whose `createdAt` is after the date or period. Searches then run newest
first and stop at the first results page that holds only older listings, so you pay only
for fresh listings. Refreshed old listings are skipped.

#### Is it legal to scrape OLX?

The scraper collects public information that anyone can see on OLX without logging in.
Listings can contain personal data (seller names), so make sure your use complies with
OLX's terms and the data-protection laws that apply to you (for example GDPR).

#### What happens with removed listings or wrong links?

A listing that was removed or expired, an unknown location or a link from another site is
reported in the run's `SUMMARY` record with the reason; the other inputs still run and you
are not charged for it.

### Limits

- About 1,000 regular results per search (an OLX limit); split large searches by
  location, price or category.
- Phone numbers, seller ratings and listing view counts are not included.
- The location filter applies to search queries; links keep the location in the link.
- Category IDs differ per country; pasting a category link avoids looking them up.
- Data is a snapshot at the time of the run; schedule runs to track prices over time.

# Changelog

This Actor's version history is a separate document: https://apify.com/innolabs/olx-scraper/changelog.md

# Actor input Schema

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

Keywords to search for, as you would type them on OLX (one search per line). Searched on the site chosen in Country, with the filters below.

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

OLX links copied from the browser, on any of the 7 sites: a search or category page with its filters (https://www.olx.pl/elektronika/telefony/warszawa/q-iphone/), a single listing (…-ID1dn4yb.html) or a seller's page (https://www.olx.pl/oferty/uzytkownik/1sQKv8/). Each link carries its own country.

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

OLX site for Search queries and Category ID. Start URLs always use the site in the link.

## `categoryId` (type: `integer`):

Only listings in this OLX category (IDs differ per country; e.g. 1838 = Phones on olx.pl). Without a search query, the whole category is listed. Tip: paste a category page into Start URLs instead.

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

Only listings from this place, as written on OLX: Warszawa, Mokotów, Mazowieckie, "Kraków, Małopolskie", Київ, Cluj-Napoca. Applies to Search queries.

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

Minimum price in the site's local currency (PLN, UAH, RON, BGN, EUR, KZT, UZS).

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

Maximum price in the site's local currency.

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

Only new, used or damaged items (in categories that have a condition, e.g. electronics; damaged exists on olx.pl).

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

Only private sellers or only businesses.

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

Order of the results. Newest = most recently posted or refreshed first.

## `postedAfter` (type: `string`):

Skip listings first posted before this: a date (2026-11-01) or a period (7 days, 24 hours, 30 minutes). Searches then run newest first and stop at the first page with only older listings.

## `includePromoted` (type: `boolean`):

OLX mixes paid promoted listings into every results page (flagged isPromoted). Turn off to keep only the regular results.

## `maxItemsPerSearch` (type: `integer`):

Cap per search query or Start URL. OLX lists at most about 1,000 regular results per search; narrow the filters (location, price, category) to go further.

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

Hard cap on listings for the whole run. The run stops cleanly when reached.

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

Apify Proxy (datacenter) works for OLX. Blocked requests are retried on a new IP.

## `debug` (type: `boolean`):

Log retries and every results page.

## Actor input object example

```json
{
  "searchQueries": [
    "iphone 13"
  ],
  "country": "pl",
  "condition": "any",
  "sellerType": "any",
  "sortBy": "relevance",
  "includePromoted": true,
  "maxItemsPerSearch": 1000,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "debug": false
}
```

# Actor output Schema

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

All listings produced by the run, one record per OLX listing (search results, single listings and seller 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 = {
    "searchQueries": [
        "iphone 13"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

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

```

## MCP server setup

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