# OLX Listings Scraper (`fanndev/olx-listings-scraper`) Actor

Classified listings from OLX Poland, Ukraine, Kazakhstan and Uzbekistan: price with currency, category branch, city and coordinates, seller, photos and the category-specific attributes. Paid placements are flagged, not blended in, and both of OLX's contradictory totals are reported.

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

## Pricing

from $1.75 / 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

## OLX Listings Scraper — Poland, Ukraine, Kazakhstan, Uzbekistan

Search OLX classifieds in four countries and get structured listings: price and currency, category path, city with coordinates, seller details, photos and all category-specific attributes (mileage, rooms, size…). Paid placements are marked so you can keep or drop them.

### Best for

- Price monitoring for cars, real estate and electronics
- Market research on second-hand supply and pricing by city
- Sourcing deals and tracking new listings for a keyword

### What each row contains

| Group | Fields |
|---|---|
| Listing | offerId, title, url, description, createdTime, status |
| Price | price, priceCurrency, priceNegotiable, previousPrice, priceConverted |
| Location | cityName, regionName, districtName, latitude, longitude |
| Seller | sellerName, sellerIsBusiness, sellerSince, sellerCompanyName |
| Details | categoryPath, attributes, photos, photoCount, deliveryAvailable |
| Placement | isPromoted, isHighlighted, resultPosition |

### Good to know

- Countries: `pl`, `ua`, `kz`, `uz` — the four OLX sites whose robots.txt allows their listings API.
- OLX never returns more than ~1,000 organic listings per search, whatever its match count says. Narrow with category, region or price for more coverage.
- A keyword OLX doesn't recognise falls back to fuzzy matches rather than zero results — check the summary row for OLX's search suggestion.
- About 12 of every 40 rows on a page are paid placements; switch **Include promoted** off for organic results only.
- An unknown region id returns zero rows without an error, so double-check region ids.

### FAQ

**Can I get phone numbers?**\
Only whether a phone is available — OLX hides the number behind a login.

**Which currency are prices in?**\
The country's own currency, plus a converted value where OLX provides one.

### Support

Found a problem or need a field that is missing? Open an issue on the actor's Issues tab and include the run ID.

# Actor input Schema

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

Which OLX site to read. Only these four are offered: their own robots.txt permits the offers endpoint. OLX Romania, Bulgaria and Portugal disallow /api/ with no exception, and OLX Brazil, Bosnia and India answer robots.txt with a challenge page, so none of those are available here.

## `queries` (type: `array`):

Keywords to search, one run each with its own summary row. Note that a keyword OLX does not recognise does NOT return zero: it falls back to fuzzy matches, so rows coming back is not proof the keyword was understood. When OLX substitutes something it is reported in the summary's searchSuggestion. Pass an empty string to list a whole category without a keyword.

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

Optional category, given either as a numeric id (for example 99) or as OLX's own path (for example 'nieruchomosci'). It is checked against the category tree OLX publishes on its own listing page before any request is spent, and an unknown value is refused with examples rather than guessed at.

## `regionId` (type: `integer`):

Optional numeric region id. Be careful with this one: OLX answers an unknown region id with HTTP 200 and zero rows, which is indistinguishable from a search that genuinely matched nothing. Read the regionId off a row from an unfiltered run rather than guessing.

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

Result ordering. Checked against this list before the request, because OLX refuses the plausible value 'relevance' with HTTP 400 while silently ignoring outright nonsense - so its own error is not a validity test.

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

Lower price bound, in the country's own currency. Verified to genuinely move the match count.

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

Upper price bound, in the country's own currency.

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

OLX injects paid placements on top of every page - about 12 extra rows per page of 40 - and publishes which positions they occupy. They are kept by default and flagged with isPromoted so you can tell them apart. Turn this off to keep organic results only; either way the summary reports how many there were.

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

Pages per keyword. OLX caps paging at offset 1040 whatever the reported match count, so about 1,000 organic listings is the hard ceiling per search even when it says 159,000 matched. To go deeper, narrow the search rather than raising this.

## `pageSize` (type: `integer`):

Organic listings requested per page. 50 is OLX's ceiling - 100 is refused. Promoted listings arrive on top of this number, so a page of 50 returns about 65 rows.

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

Optional overall cap on listing rows across every search. Summary rows are always emitted and do not count against it.

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

Parallel requests across searches.

## `minRequestInterval` (type: `integer`):

Politeness delay between request starts. It paces starts only and does not hold a concurrency slot, so raising it slows the run without idling the workers.

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

Optional. Not needed for OLX in testing; use it if you are running at volume or from a blocked network.

## Actor input object example

```json
{
  "country": "pl",
  "queries": [
    "iphone"
  ],
  "sortBy": "relevance",
  "includePromoted": true,
  "maxPages": 5,
  "pageSize": 50,
  "maxConcurrency": 3,
  "minRequestInterval": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `items` (type: `string`):

One row per scraped record. See the dataset's default view for field definitions.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("fanndev/olx-listings-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("fanndev/olx-listings-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 '{}' |
apify call fanndev/olx-listings-scraper --silent --output-dataset

```

## MCP server setup

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