top of page

How to extract real estate listings from OLX using the Minexa API

OLX is one of Eastern Europe's largest classifieds platforms. Its real estate section for Ukraine lists thousands of houses, apartments, and land plots updated daily. Getting that data into a structured format without writing a custom scraper from scratch is where the Minexa API workflow saves significant time.

This guide walks through extracting house sale listings from OLX's Lviv region page using Minexa.

Step 1: Train a scraper with the Chrome extension

Before calling the API, you need a trained scraper. Install the Minexa Chrome extension, then open the OLX listings page.

Click 'I'm on the right page', confirm the scraping mode, then select the HTML container wrapping the full listing block. Minexa identifies all data columns automatically.

Click 'API Request' to get your pre-generated Python code including your scraper_id.

Sample extracted data

[{"title":"Будинок 120 кв.м, Личаківський район","price":"85 000 $","location":"Lviv, Lychakivskyi","listing_url":"https://www.olx.ua/uk/..."},{"title":"Котедж 200 кв.м з ділянкою","price":"130 000 $","location":"Lviv, Shevchenkivskyi","listing_url":"https://www.olx.ua/uk/..."}]

Step 2: Call the Minexa API

import requests
url = "https://api.minexa.ai/data/"
headers = {"Content-Type": "application/json", "api-key": "YOUR_KEY"}
data = {"batches": [{"scraper_id": 6214,"columns": ["top_30"],"urls": ["https://www.olx.ua/uk/nedvizhimost/doma/prodazha-domov/lvov/"],"scraping": {"js_render": True,"proxy": "verified","timeout": 30,"retry": 3}}],"threads": 5}
response = requests.post(url, json=data, headers=headers)
print(response.json())

For OLX, JavaScript rendering is required. Use js_render: true and a verified proxy. If results are incomplete, try switching to service3 in the provider field. Pagination across multiple OLX pages requires passing each page URL explicitly in the urls array or setting up your own cron job to iterate pages programmatically.

Video tutorial

The scraper trained on this OLX page structure works across all similar OLX listing pages without modification. Update the scraper_id and swap in your target URLs to cover other cities or property types.

Get started at minexa.ai or read the API docs for full parameter reference.

Recent Posts

See All

Comments


Heading 2

bottom of page