# OLX Search Results Scraper 🔍 (`easyapi/olx-search-results-scraper`) Actor

Extract detailed product listings from OLX search results. Get comprehensive data including prices, descriptions, seller information, and image URLs for cars and other items listed on OLX India.

- **URL**: https://apify.com/easyapi/olx-search-results-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** E-commerce, Integrations
- **Stats:** 155 total users, 1 monthly users, 96.3% runs succeeded, 3 bookmarks
- **User rating**: 3.15 out of 5 stars

## 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.

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 Search Results Scraper 🔍

Extract detailed product listings and search results from OLX, India's leading online classifieds platform. This actor helps you gather comprehensive data about products, prices, seller information, and more.

### Features ✨

- 📊 Scrapes complete listing details from OLX search results
- 🚗 Perfect for extracting vehicle listings (cars, bikes, etc.)
- 📸 Captures all product images and their variations (small, medium, large)
- 👤 Includes detailed seller information and contact details
- 📍 Extracts location data with precise coordinates
- ⚡ High-performance scraping with built-in retry mechanism
- 🛡️ Uses advanced browser automation to avoid blocking

### Usage 💡

Simply provide the OLX search URLs you want to scrape and set the maximum number of items to collect. The actor will automatically:

1. Visit each search URL
2. Scroll through the results
3. Extract detailed information for each listing
4. Save the data in structured JSON format

### Output Data 📋

For each listing, you'll get detailed information including:

- Product title and description
- Price details with currency
- Seller information and verification status
- Complete image galleries with various sizes
- Location data with coordinates
- Product parameters (e.g., year, brand, model for cars)
- Listing status and timestamps
- VAS tags and special features

### Input Parameters 🎯

- `searchUrls`: Array of OLX search URLs to scrape
- `maxItems`: Maximum number of items to collect

### Use Cases 🎯

- Market research and price analysis
- Competitive monitoring
- Vehicle market trends analysis
- Real estate market research
- Product availability tracking

### Limitations ⚠️

- Respects OLX's terms of service and rate limits
- Some listing details may vary based on category

Need custom solutions or modifications? Feel free to reach out! 🤝

#### Input Example

A full explanation of an input example in JSON.

```json
{
    "searchUrls": [
        "https://www.olx.in/cars_c84/q-mercedes?isSearchCall=false"
    ],
    "maxItems": 60
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```json
[
    {
        "searchUrl": "https://www.olx.in/cars_c84/q-mercedes?isSearchCall=false",
        "listing": {
            "id": "1795814375",
            "score": 1,
            "spell": {
                "id": 112,
                "key": "DISCERN_LOCATION_ES",
                "version": "1",
                "main": false,
                "facet_disabled": false,
                "default_sorting": "DEFAULT",
                "response_type": "ARRAY"
            },
            "status": {
                "status": "active",
                "allow_edit": true,
                "ban_reason_id": null,
                "display": "active",
                "translated_display": "Active",
                "link": null,
                "flags": {
                    "new": false,
                    "hot": false
                },
                "message": null,
                "allow_deactivate": true
            },
            "category_id": "84",
            "ad_id": "1795814375",
            "favorites": {
                "count": 0,
                "count_label_next": "1"
            },
            "vasTags": [
                "warranty",
                "document_transfer",
                "road_side_assistance",
                "verified_seller"
            ],
            "dealer_logo_url": null,
            "user_tag": "Approved dealer",
            "user_name": "PORUR VINAYAGA CARS",
            "has_phone_param": false,
            "description": "vechile in excellent condition, exchange and finance options also available based on customers profile.\n\nADDITIONAL VEHICLE INFORMATION:\n\nABS: Yes\nAccidental: Yes\nAdjustable External Mirror: Power\nAdjustable Steering: Yes\nAir Conditioning: Automatic Climate Control\nNumber of Airbags: 8 airbags\nAlloy Wheels: Yes\nAnti Theft Device: Yes\nAux Compatibility: Yes\nBattery Condition: New\nBluetooth: Yes\nVehicle Certified: Yes\nColor: White\nCruise Control: Yes\nInsurance Type: Comprehensive\nLock System: Remote Controlled Central\nMake Month: June\nNavigation System: Yes\nParking Sensors: Yes\nPower steering: Yes\nPower Windows: Front & rear\nAM/FM Radio: Yes\nRear Parking Camera: Yes\nRegistration Place: TN\nExchange: Yes\nFinance: Yes\nService History: Available\nTyre Condition: New\nUSB Compatibility: Yes",
            "created_at": "2025-01-18T10:48:03+05:30",
            "video_status": null,
            "inspection_info": null,
            "videos": [],
            "title": "Mercedes-Benz A Class 180 Edition 1, 2014, Diesel",
            "multi_location": null,
            "car_body_type": "LUXURY_SEDAN",
            "partner_id": null,
            "user_type": "Franchise",
            "price": {
                "value": {
                    "raw": 1225000,
                    "currency": {
                        "iso_4217": "INR",
                        "pre": "₹"
                    },
                    "display": "₹ 12,25,000"
                },
                "key_name": "Price",
                "key": "price"
            },
            "user_icon": "https://apollo.olx.in/v1/files/p5su43b53lph1-PANAMERA/image",
            "partner_code": null,
            "monetizationInfo": null,
            "ptt_package_id": null,
            "images": [
                {
                    "id": "1802327907",
                    "external_id": "1e4r00nfzruf-IN",
                    "width": 960,
                    "height": 1280,
                    "url": "https://apollo.olx.in:443/v1/files/1e4r00nfzruf-IN/image",
                    "full": {
                        "width": 1080,
                        "height": 1440,
                        "url": "https://apollo.olx.in:443/v1/files/1e4r00nfzruf-IN/image;s=1080x1440"
                    },
                    "big": {
                        "width": 505,
                        "height": 673,
                        "url": "https://apollo.olx.in:443/v1/files/1e4r00nfzruf-IN/image;s=505x673"
                    },
                    "medium": {
                        "width": 120,
                        "height": 160,
                        "url": "https://apollo.olx.in:443/v1/files/1e4r00nfzruf-IN/image;s=120x160"
                    },
                    "small": {
                        "width": 120,
                        "height": 160,
                        "url": "https://apollo.olx.in:443/v1/files/1e4r00nfzruf-IN/image;s=120x160"
                    }
                },
                {
                    "id": "1802327908",
                    "external_id": "9qjvmbeic7mw2-IN",
                    "width": 960,
                    "height": 1280,
                    "url": "https://apollo.olx.in:443/v1/files/9qjvmbeic7mw2-IN/image",
                    "full": {
                        "width": 1080,
                        "height": 1440,
                        "url": "https://apollo.olx.in:443/v1/files/9qjvmbeic7mw2-IN/image;s=1080x1440"
                    },
                    "big": {
                        "width": 505,
                        "height": 673,
                        "url": "https://apollo.olx.in:443/v1/files/9qjvmbeic7mw2-IN/image;s=505x673"
                    },
                    "medium": {
                        "width": 120,
                        "height": 160,
                        "url": "https://apollo.olx.in:443/v1/files/9qjvmbeic7mw2-IN/image;s=120x160"
                    },
                    "small": {
                        "width": 120,
                        "height": 160,
                        "url": "https://apollo.olx.in:443/v1/files/9qjvmbeic7mw2-IN/image;s=120x160"
                    }
                },
                {
                    "id": "1802327909",
                    "external_id": "thi4fyrbzev71-IN",
                    "width": 1280,
                    "height": 960,
                    "url": "https://apollo.olx.in:443/v1/files/thi4fyrbzev71-IN/image",
                    "full": {
                        "width": 1080,
                        "height": 810,
                        "url": "https://apollo.olx.in:443/v1/files/thi4fyrbzev71-IN/image;s=1080x810"
                    },
                    "big": {
                        "width": 505,
                        "height": 378,
                        "url": "https://apollo.olx.in:443/v1/files/thi4fyrbzev71-IN/image;s=505x378"
                    },
                    "medium": {
                        "width": 120,
                        "height": 90,
                        "url": "https://apollo.olx.in:443/v1/files/thi4fyrbzev71-IN/image;s=120x90"
                    },
                    "small": {
                        "width": 120,
                        "height": 90,
                        "url": "https://apollo.olx.in:443/v1/files/thi4fyrbzev71-IN/image;s=120x90"
                    }
                },
                {
                    "id": "1802327910",
                    "external_id": "9luew42k01nm2-IN",
                    "width": 1280,
                    "height": 960,
                    "url": "https://apollo.olx.in:443/v1/files/9luew42k01nm2-IN/image",
                    "full": {
                        "width": 1080,
                        "height": 810,
                        "url": "https://apollo.olx.in:443/v1/files/9luew42k01nm2-IN/image;s=1080x810"
                    },
                    "big": {
                        "width": 505,
                        "height": 378,
                        "url": "https://apollo.olx.in:443/v1/files/9luew42k01nm2-IN/image;s=505x378"
                    },
                    "medium": {
                        "width": 120,
                        "height": 90,
                        "url": "https://apollo.olx.in:443/v1/files/9luew42k01nm2-IN/image;s=120x90"
                    },
                    "small": {
                        "width": 120,
                        "height": 90,
                        "url": "https://apollo.olx.in:443/v1/files/9luew42k01nm2-IN/image;s=120x90"
                    }
                },
                {
                    "id": "1802327911",
                    "external_id": "2ilkmdwbhqpo2-IN",
                    "width": 1280,
                    "height": 960,
                    "url": "https://apollo.olx.in:443/v1/files/2ilkmdwbhqpo2-IN/image",
                    "full": {
                        "width": 1080,
                        "height": 810,
                        "url": "https://apollo.olx.in:443/v1/files/2ilkmdwbhqpo2-IN/image;s=1080x810"
                    },
                    "big": {
                        "width": 505,
                        "height": 378,
                        "url": "https://apollo.olx.in:443/v1/files/2ilkmdwbhqpo2-IN/image;s=505x378"
                    },
                    "medium": {
                        "width": 120,
                        "height": 90,
                        "url": "https://apollo.olx.in:443/v1/files/2ilkmdwbhqpo2-IN/image;s=120x90"
                    },
                    "small": {
                        "width": 120,
                        "height": 90,
                        "url": "https://apollo.olx.in:443/v1/files/2ilkmdwbhqpo2-IN/image;s=120x90"
                    }
                },
                {
                    "id": "1802327912",
                    "external_id": "xwo5tg7fqash-IN",
                    "width": 960,
                    "height": 1280,
                    "url": "https://apollo.olx.in:443/v1/files/xwo5tg7fqash-IN/image",
                    "full": {
                        "width": 1080,
                        "height": 1440,
                        "url": "https://apollo.olx.in:443/v1/files/xwo5tg7fqash-IN/image;s=1080x1440"
                    },
                    "big": {
                        "width": 505,
                        "height": 673,
                        "url": "https://apollo.olx.in:443/v1/files/xwo5tg7fqash-IN/image;s=505x673"
                    },
                    "medium": {
                        "width": 120,
                        "height": 160,
                        "url": "https://apollo.olx.in:443/v1/files/xwo5tg7fqash-IN/image;s=120x160"
                    },
                    "small": {
                        "width": 120,
                        "height": 160,
                        "url": "https://apollo.olx.in:443/v1/files/xwo5tg7fqash-IN/image;s=120x160"
                    }
                },
                {
                    "id": "1802327913",
                    "external_id": "pjegs6eu7mhr3-IN",
                    "width": 960,
                    "height": 1280,
                    "url": "https://apollo.olx.in:443/v1/files/pjegs6eu7mhr3-IN/image",
                    "full": {
                        "width": 1080,
                        "height": 1440,
                        "url": "https://apollo.olx.in:443/v1/files/pjegs6eu7mhr3-IN/image;s=1080x1440"
                    },
                    "big": {
                        "width": 505,
                        "height": 673,
                        "url": "https://apollo.olx.in:443/v1/files/pjegs6eu7mhr3-IN/image;s=505x673"
                    },
                    "medium": {
                        "width": 120,
                        "height": 160,
                        "url": "https://apollo.olx.in:443/v1/files/pjegs6eu7mhr3-IN/image;s=120x160"
                    },
                    "small": {
                        "width": 120,
                        "height": 160,
                        "url": "https://apollo.olx.in:443/v1/files/pjegs6eu7mhr3-IN/image;s=120x160"
                    }
                }
            ],
            "certified_car": false,
            "package": {
                "id": "2006357"
            },
            "is_kyc_verified_user": true,
            "locations_resolved": {
                "COUNTRY_id": "1000001",
                "COUNTRY_name": "India",
                "ADMIN_LEVEL_1_id": "2001173",
                "ADMIN_LEVEL_1_name": "Tamil Nadu",
                "ADMIN_LEVEL_3_id": "4059162",
                "ADMIN_LEVEL_3_name": "Chennai",
                "SUBLOCALITY_LEVEL_1_id": "5334892",
                "SUBLOCALITY_LEVEL_1_name": "Arumbakkam"
            },
            "deal_price": null,
            "business_platform": null,
            "tags": null,
            "main_info": "2014 - 0 km",
            "dealer_showroom_enabled": false,
            "artificial_boost": false,
            "display_date": "2025-01-18T05:19:28+0000",
            "isSpinViewAvailable": false,
            "user_id": "28659643",
            "installment": null,
            "created_at_first": "2025-01-18T10:48:02+05:30",
            "locations": [
                {
                    "lat": 13.073,
                    "lon": 80.212,
                    "region_id": "2001173",
                    "district_id": "5334892",
                    "city_id": "4059162"
                }
            ],
            "parameters": [
                {
                    "type": "single",
                    "key": "make",
                    "value_name": "Mercedes-Benz",
                    "value": "mercedes-benz",
                    "key_name": "Brand",
                    "formatted_value": "Mercedes-Benz"
                },
                {
                    "type": "single",
                    "key": "model",
                    "value_name": "A Class",
                    "value": "mercedes-benz-a-class",
                    "key_name": "Model",
                    "formatted_value": "A Class"
                },
                {
                    "type": "single",
                    "key": "variant",
                    "value_name": "A 180 Edition 1",
                    "value": "mercedes-benz-a-class-a-180-edition-1",
                    "key_name": "Variant",
                    "formatted_value": "A 180 Edition 1"
                },
                {
                    "type": "single",
                    "key": "year",
                    "value_name": "2014",
                    "value": "2014",
                    "key_name": "Year",
                    "formatted_value": "2014"
                },
                {
                    "type": "single",
                    "key": "petrol",
                    "value_name": "Diesel",
                    "value": "diesel",
                    "key_name": "Fuel",
                    "formatted_value": "Diesel"
                },
                {
                    "type": "single",
                    "key": "transmission",
                    "value_name": "Automatic",
                    "value": "1",
                    "key_name": "Transmission",
                    "formatted_value": "Automatic"
                },
                {
                    "type": "single",
                    "key": "mileage",
                    "value_name": "0",
                    "value": "0",
                    "key_name": "KM driven",
                    "formatted_value": "0 km"
                },
                {
                    "type": "single",
                    "key": "first_owner",
                    "value_name": "1st",
                    "value": "1",
                    "key_name": "No. of Owners",
                    "formatted_value": "1st"
                }
            ]
        },
        "scrapedAt": "2025-01-20T10:07:18.521Z"
    },
    ...
]
```

### Related Actors

- 🛍️ [Meesho Product Search Scraper](https://apify.com/easyapi/meesho-product-search-scraper) - Extract product listings from Meesho search results with comprehensive product information.
- 🏠 [Realtor.com Scraper](https://apify.com/easyapi/realtor-com-scraper) - Extract detailed property listings from Realtor.com with advanced search capabilities.
- 🏠 [Rightmove Property Search Scraper](https://apify.com/easyapi/rightmove-property-search-scraper) - Comprehensive scraper for UK's leading property website listings.
- 🏠 [Funda.nl Scraper](https://apify.com/easyapi/funda-nl-scraper) - Extract property listings from Netherlands' leading real estate platform.
- 🛍️ [Flipkart Product Scraper](https://apify.com/easyapi/flipkart-product-scraper) - Scrape product data from Flipkart search results with detailed information.
- 🛍️ [Myntra Product Scraper](https://apify.com/easyapi/myntra-product-scraper) - Extract comprehensive product data from India's leading fashion marketplace.
- 🛍️ [Jumia Product Scraper](https://apify.com/easyapi/jumia-product-scraper) - Scrape product listings from Jumia e-commerce platform with detailed information.
- 🛍️ [TradeIndia Product Scraper](https://apify.com/easyapi/tradeindia-product-scraper) - Extract B2B product listings with comprehensive business information.
- 🛒 [Costco Product Search Scraper](https://apify.com/easyapi/costco-product-search-scraper) - Scrape detailed product data from Costco.com search results.
- 🔍 [Craigslist Search Results Scraper](https://apify.com/easyapi/craigslist-search-results-scraper) - Extract comprehensive listings from Craigslist search results.
- 🛍️ [Hobby Lobby Products Scraper](https://apify.com/easyapi/hobby-lobby-products-scraper) - Extract detailed product information from Hobby Lobby's website.
- 🛍️ [Lidl Product Scraper](https://apify.com/easyapi/lidl-product-scraper) - Scrape product data from Lidl's online store with comprehensive details.
- 🛍️ [AJIO Product Scraper](https://apify.com/easyapi/ajio-product-scraper) - Extract detailed fashion product information from AJIO marketplace.
- 🛍️ [AppSumo Product Scraper](https://apify.com/easyapi/appsumo-product-scraper) - Scrape deals and offers from AppSumo digital marketplace.
- 🛍️ [Zara Product Scraper](https://apify.com/easyapi/zara-product-scraper) - Extract detailed product information from Zara's online store.
- 🛒 [Woolworths Product Scraper](https://apify.com/easyapi/woolworths-product-scraper) - Get comprehensive product data from Woolworths Australia's online store.

# Actor input Schema

## `searchUrls` (type: `array`):

List of OLX search result URLs to scrape

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

Maximum number of items to scrape (default: 100)

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.olx.in/cars_c84/q-mercedes?isSearchCall=false"
  ],
  "maxItems": 10
}
```

# 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 = {
    "searchUrls": [
        "https://www.olx.in/cars_c84/q-mercedes?isSearchCall=false"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/olx-search-results-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 = {
    "searchUrls": ["https://www.olx.in/cars_c84/q-mercedes?isSearchCall=false"],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/olx-search-results-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 '{
  "searchUrls": [
    "https://www.olx.in/cars_c84/q-mercedes?isSearchCall=false"
  ],
  "maxItems": 10
}' |
apify call easyapi/olx-search-results-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,easyapi/olx-search-results-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/J8JUjn8V4vEPnip8K/builds/1GJU9dky8Z4nEZYoZ/openapi.json
