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

OLX Listings Scraper SD - OLX Listings Scraper is a classifieds data tool that extracts public OLX ads from Poland, Romania, Portugal, Bulgaria, Ukraine, Kazakhstan, Uzbekistan, Brazil and India: price, photos, location, seller, condition, attributes and dates.

- **URL**: https://apify.com/neuro-scraper/olx-listings-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

./README.md

# Actor input Schema

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

Which OLX site the keywords below are searched on. Search URLs always use the site in the URL.

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

What you would type in OLX's search box, one search per line (e.g. iphone, rower, apartamento). Each keyword is searched with the filters below. Leave empty to list a whole category / city.

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

OLX search or category pages copied from the browser, from any supported site, e.g. https://www.olx.pl/elektronika/telefony/warszawa/q-iphone/?search%5Border%5D=created_at%3Adesc , https://www.olx.com.br/imoveis/venda/estado-sp?q=casa , https://www.olx.in/mumbai_g4058997/q-iphone . Every filter in the URL is kept (OLX resolves it on its own page).

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

Optional category as it appears in the site's URL: olx.pl 'elektronika/telefony', olx.ro 'electronice-si-electrocasnice', olx.com.br 'imoveis/venda' or 'celulares', olx.in 'mobile-phones_c1453' (or just 1453). OLX resolves it to its category id on every run.

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

Optional. Europe/Asia sites: the city or region slug from the OLX URL (warszawa, krakow, mazowieckie, bucuresti). Brazil: a state code (SP, RJ, MG ...) or path like estado-sp/grande-campinas. India: location slug with id from olx.in (mumbai_g4058997) or the id.

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

OLX's own sort order. olx.in has no relevance sort: its default is newest first.

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

OLX's price filter, lower bound in the site's currency (0 = none), e.g. 500 (PLN on olx.pl, BRL on olx.com.br, INR on olx.in).

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

OLX's price filter, upper bound in the site's currency (0 = none), e.g. 1500.

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

OLX's private / business seller filter (sent to OLX on Europe/Asia and Brazil; applied by the Actor on India).

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

Item condition. Sent to OLX on Europe/Asia sites (state filter); applied by the Actor on Brazil and India from the ad's condition attribute (ads without one are left out).

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

Keep only ads created on or after this date (YYYY-MM-DD), applied by the Actor. With Sort by = Newest first the search stops at the first page with no newer ad.

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

olx.com.br only: also load each ad's page for the full description, seller name and id, postal code (CEP) and parent category - one extra request per ad. Europe/Asia and India search results already carry the description and seller.

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

Ads per keyword / URL. The Actor follows OLX's own next-page link (Europe/Asia: links.next, 40 per page, OLX shows at most 1,000 per filter set; Brazil: page o=N, 50 per page; India: next_page_url, 40 per page) until this number or the last page.

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

Keep RESIDENTIAL. When no country is chosen, the Actor uses the OLX site's own country (Brazil and India answer only local IPs). A blocked request is retried on a new IP.

## Actor input object example

```json
{
  "country": "pl",
  "searchQueries": [
    "iphone"
  ],
  "sortBy": "relevance",
  "priceMin": 0,
  "priceMax": 0,
  "sellerType": "all",
  "condition": "any",
  "includeDetails": false,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/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 = {
    "searchQueries": ["iphone"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/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 '{
  "searchQueries": [
    "iphone"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call neuro-scraper/olx-listings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/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/2kqEDn7bCJf69nuAw/builds/JEOCo9R2sQ2olfea8/openapi.json
