# OLX Brasil Scraper & API: Export Listings, Cars & Real Estate (`s_actors/olx-brasil-scraper`) Actor

Scrape OLX Brasil (olx.com.br) without login: search by keyword, category, state, price and seller type, or paste search URLs. Price, place, photos, details list, optional full description, CEP and seller. Tens of thousands of ads per run. JSON, CSV, Excel.

- **URL**: https://apify.com/s_actors/olx-brasil-scraper.md
- **Developed by:** [Superior Actors](https://apify.com/s_actors) (community)
- **Categories:** E-commerce, Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 ads

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 Brasil Scraper & API: Export Listings, Cars & Real Estate

Scrape **OLX Brasil (olx.com.br) without login**: search by **keyword, category, state, price range and seller type**, or paste any **OLX search or category URL** with your filters. Every ad comes with its **title, price (and old price), city, neighbourhood, state, area code, posting time, photos, the details list (brand, model, year, mileage, area, rooms...) and the seller type**. Turn on **Full details** to also get the **full description, postcode (CEP), seller name and ID, the seller's sales count and every photo**. OLX shows only 5 000 ads per search: the Actor **cuts big searches into slices (state, price band)** and returns **tens of thousands of ads in one run**. Export to JSON, CSV, Excel or HTML, call it from the API, or schedule it and get **only the new ads**.

```json
{ "searchQueries": ["iphone 15", "bicicleta"], "states": ["sp", "rj"], "maxItems": 500 }
```

#### What you get

Real examples (search "iphone 15" on olx.com.br):

| title | price | city | state | seller type | posted |
|---|---|---|---|---|---|
| iPhone 15 Pro Max 256GB (Impecável) | R$ 3 999 | Betim | MG | business | 2026-11-07 |
| iPhone 16e Preto, 128 GB, Impecável | R$ 3 150 | Curitiba | PR | private | 2026-11-07 |

| Field | Description |
|---|---|
| `id`, `url`, `title` | Ad id, link, title |
| `price`, `priceLabel`, `currency`, `previousPrice` | Price in reais as a number and as OLX shows it, the crossed-out old price |
| `category`, `categoryId`, `attributes`, `vehicle` | OLX category and the details list as the site shows it (brand, model, year, mileage, fuel, area, rooms, condition, memory...) |
| `city`, `neighbourhood`, `state`, `areaCode`, `locationText` | Where the ad is (state code, area code DDD) |
| `postedAt` | When the ad was posted or last pushed up |
| `imageUrl`, `images`, `imageCount`, `videoCount` | First photo, photo links, number of photos and videos |
| `sellerType`, `sellerName` | Private or business seller, and the name when OLX shows it in the list |
| `deliveryAvailable`, `olxPay`, `chatAvailable`, `isFeatured`, `isOnTop` | OLX Delivery and OLX Pay badges, chat, paid placement flags |
| `description`, `postcode`, `neighbourhood`, `sellerId`, `sellerName`, `sellerSales`, `adId`, `listedAt` | **Full details only**: full description as plain text, CEP, seller ID and name, number of the seller's sales, exact time |
| `search`, `source`, `scrapedAt` | Your search query, where the row came from, run time |

#### How it works

1. Add **Search queries** (anything you type into the OLX search box, in Portuguese). Pick a **Category** and one or more **States**, or leave them empty for all of Brazil. Leave the queries empty to take every ad of a category or state
2. And / or paste **OLX search or category URLs** copied from your browser with all filters set: the Actor keeps the category, state, region, keyword, price range and seller filter of the page
3. Set a **price range** and **seller type** (private / business), choose the **sort order**, turn on **Full details** if you need the description and the CEP, run, and download the dataset. Tabs: **Overview**, **With details**, **Sellers**
4. Set **Ads per search** up to 100 000. OLX itself ends every search at 5 000 ads: above that the Actor splits the search by state and price band and joins the slices (ads come in slice order, duplicates removed)

#### Why this Actor

| | |
|---|---|
| 🇧🇷 **The whole of OLX Brasil** | Cars, motorcycles, real estate, phones, furniture, jobs and every other category, all 27 states |
| 🔓 **Beyond the 5 000-ad limit** | Big searches are cut automatically by state and price band |
| 🔗 **Your own filters** | Paste a search URL with any OLX filter and get exactly those ads |
| 📝 **Description and CEP when you need them** | One switch opens every ad page: full text, postcode, seller ID, all photos |
| 🔔 **Only new ads** | Schedule a search and get just the ads added since the last run: flipping, price tracking, apartment and car hunting |
| 💰 **$1.12 per 1,000 ads** | No subscription, no login, no cookies |

#### Get new ads every hour

1. Add your searches (or search URLs) and turn on **Only new ads**
2. Save as a task and add a schedule, e.g. every hour
3. The **first run** returns everything as a baseline. **Every later run** returns only ads not seen before for the same search (the 5 000 newest of each search are compared): send them to [Google Sheets](https://apify.com/s_actors/google-sheets-import-export), Slack, Telegram or email with an integration

The memory is kept in your account (key-value store `olx-brasil-scraper-state`). Use a different **Monitor name** for each task.

#### Pricing

Pay per ad. Apify Scale and Business plans pay less:

| Event | Free and Starter plans | Scale plan | Business plan |
|---|---|---|---|
| Run start | $0.001 | $0.001 | $0.001 |
| Ad (one row) | $0.00112 | $0.00101 | $0.000896 |
| Ad details (only with **Full details**) | $0.0009 | $0.00081 | $0.00072 |

| Task | Cost |
|---|---|
| 100 ads for one keyword | ~$0.11 |
| 1 000 ads | ~$1.12 |
| 1 000 ads with full description and CEP | ~$2.02 |
| Hourly check of 5 searches (~10 new ads each, 30 days) | ~$2.20 per month |

Ads left out by **Only new ads** and failed lookups are not charged.

#### FAQ

**Do I need an OLX account or cookies?** No. The Actor reads what OLX shows to any visitor who is not logged in.

**How many ads can I get for one keyword?** As many as exist, up to your **Ads per search** limit (100 000 maximum). OLX shows 5 000 per search, so the Actor splits bigger searches by state and price band. Ads without a price are left out of a split search. With **Only new ads** it reads the 5 000 newest.

**In which order do the ads come?** Inside one slice by your sort order (newest, best match, price). A split search is read slice after slice, so the whole dataset is not in one global order: sort the table after the run.

**Are phone numbers included?** No. OLX shows them only after a login. The seller name and ID come with **Full details**.

**Why are some ads missing the seller name in the Overview?** The search page shows the name only for sellers with OLX Pay. **Full details** adds the name of every seller.

**Which language are the labels in?** Portuguese, as on the site. Field names are always English.

#### Use with the API and AI agents

Run it via the [Apify API](https://docs.apify.com/api/v2) from Python, Node.js or any HTTP client, or connect it to Claude, ChatGPT and other AI agents through the [Apify MCP server](https://mcp.apify.com): "Find used iPhone 15 ads under R$ 3000 in São Paulo on OLX and list private sellers".

#### Other marketplace tools

| Tool | What it does |
|---|---|
| [AliExpress Scraper](https://apify.com/s_actors/aliexpress-scraper) | AliExpress products, prices and sales by keyword |
| [AutoScout24 Scraper](https://apify.com/s_actors/autoscout24-scraper) | Used and new car listings from AutoScout24 with price ratings and price drop tracking |
| [Facebook Marketplace Scraper](https://apify.com/s_actors/facebook-marketplace-scraper) | Facebook Marketplace listings by city and keyword |
| [Marktplaats Scraper](https://apify.com/s_actors/marktplaats-scraper) | Marktplaats and 2dehands ads from the Netherlands and Belgium with prices and sellers |
| [Kleinanzeigen Scraper](https://apify.com/s_actors/kleinanzeigen-scraper) | Kleinanzeigen ads from Germany with prices, sellers and ad details |
| [Otodom Scraper](https://apify.com/s_actors/otodom-scraper) | Otodom property listings from Poland with prices, areas and agencies |
| [Otomoto Scraper](https://apify.com/s_actors/otomoto-scraper) | Otomoto car, van and truck listings from Poland with prices and dealer phones |
| [Google Sheets Import & Export](https://apify.com/s_actors/google-sheets-import-export) | Send the ads to a Google Sheet |

#### Is it legal?

The Actor collects only public data that OLX shows to any visitor without logging in. Seller names and photos can be personal data: use them in line with the LGPD and OLX's terms. Photos and texts belong to their authors: respect copyright when you reuse them.

# Actor input Schema

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

What to search on OLX Brasil: any words you would type in the search box, in Portuguese. One search per keyword. Leave empty to take every ad of the category or state below.

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

Search or category pages copied from your browser with the filters already set (for example https://www.olx.com.br/imoveis/aluguel/estado-sp/sao-paulo-e-regiao?ps=1000\&pe=3000). The path (category, state, region), the keyword, the price range and the seller filter are kept.

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

Maximum ads for each keyword, each URL and each state. OLX shows at most 5 000 ads per search, so above 5 000 the Actor cuts the search into slices (state, price band) and joins them: ads come in slice order, not in one global order. Ads without a price are left out of a cut search.

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

Only this category. Other categories: open them on OLX and paste the URL in "OLX search URLs".

## `states` (type: `array`):

Only ads from these states (for example São Paulo, Rio de Janeiro, Minas Gerais). One search per state. Empty = all of Brazil.

## `priceFrom` (type: `number`):

Only ads priced at or above this amount, in reais.

## `priceTo` (type: `number`):

Only ads priced at or below this amount, in reais.

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

Private sellers only, businesses only, or both.

## `sort` (type: `string`):

Newest first, best match, or price from low to high. Inside a cut search the order holds within each slice.

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

Open the page of every ad to add the full description, the postcode (CEP), the seller name and ID, the seller sales count and every photo. Charged as a separate "Ad details" event per ad.

## `onlyNew` (type: `boolean`):

Output only ads that were not returned for the same search in the previous runs with the same monitor name (sorted by newest, up to 5 000 per search). Schedule the Actor to get new ads every hour.

## `monitorName` (type: `string`):

Keeps the memory of seen ads apart for different schedules.

## `debugLog` (type: `boolean`):

Log every request retry.

## Actor input object example

```json
{
  "searchQueries": [
    "iphone 15",
    "bicicleta",
    "apartamento 2 quartos"
  ],
  "startUrls": [
    "https://www.olx.com.br/autos-e-pecas/carros-vans-e-utilitarios/estado-sp?q=civic",
    "https://www.olx.com.br/imoveis/venda/estado-mg"
  ],
  "maxItems": 100,
  "sellerType": "all",
  "sort": "newest",
  "includeDetails": false,
  "onlyNew": false,
  "debugLog": false
}
```

# Actor output Schema

## `overview` (type: `string`):

Ads: title, price, category, place, date, seller type.

## `details` (type: `string`):

Ads with the details list, description and CEP (with "Full details" on).

## `sellers` (type: `string`):

Who sells: seller name, ID, type, sales count.

## `all` (type: `string`):

Every field.

# 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 15"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("s_actors/olx-brasil-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 15"],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("s_actors/olx-brasil-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 15"
  ],
  "maxItems": 100
}' |
apify call s_actors/olx-brasil-scraper --silent --output-dataset

```

## MCP server setup

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