# OLX Brazil Listings Scraper: Past the 5,000 Limit (`luzivanlt/olx-brazil-listings-scraper`) Actor

OLX Brazil listings in any category, past the 5,000 a search shows. $1.00 per 1,000 listings. Title, price, city and state, category, seller, posted date, images and link; full description optional. No login needed.

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

## Pricing

from $0.70 / 1,000 listings

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 Brazil Listings Scraper: Past the 5,000 Limit

OLX Brazil listings from any search, category or single listing link: title,
price, city and state, category, seller, posted date, images and the link. One
row per listing. It reads past the point where one OLX search stops at 5,000
listings, so a whole state or a whole category is reachable in one run, not
only the first 5,000 rows.

Tested daily. Latest check: 6,000 listings from the São Paulo sale search in
36 seconds, and 20,000 from the same search in 2 minutes, from a search that
shows 2,555,307 listings and lets you page through 5,000.

### What does this Actor do?

You give it OLX Brazil search or category links, or keywords and a state. It
saves one row per listing it finds: what is being sold, the asking price, where
it is, which category it sits in, who posted it, when, the photos and the link
to the listing.

A single OLX search stops at 5,000 listings however many it advertises. When
you ask for more than that, this Actor reads the same search in slices, using
OLX's own price filter on the link, so the rows on page 120 are as reachable as
the rows on page 1. In the measured run, a search that shows 2,555,307 listings
and serves 5,000 gave 20,000 rows.

Each listing comes with:

- The title as written by the seller, and the asking price as a number and as
  shown, plus a flag when the price was cut and the previous price.
- City, neighbourhood, state and area code.
- The category as OLX names it, with its category ids.
- Seller type, seller name and the seller's rating when the listing shows one.
- The posted date, how long ago it was bumped, and whether it is featured,
  online or carries a 360° photo.
- Every image link, the image count, the video count and the 360° view when
  the listing has one.
- The listing's own labelled fields: for property the type, area, rooms,
  bathrooms, garage spaces, condo fee, IPTU and features; for vehicles the
  brand, model, year, mileage, fuel, gearbox, colour and features.
- With the optional details step: the full description, the seller account,
  the ad id, the region, the category fields with their filter links, and the
  listing page's own labelled fields.

No OLX Brazil account, cookie or login is needed.

### Why use it?

- **More than one search shows.** A state-wide property search advertises
  millions of listings and serves 5,000. This Actor keeps going, and every
  listing is saved once even when two pages show the same promoted ad.
- **One row for one listing, complete.** Price, place, category, seller,
  posted date, photos and link come from the page you already asked for, so
  you do not need a second pass to answer "how much and where".
- **Any category, not only property.** Property, cars, phones, bikes,
  furniture: anything with a search or category link on OLX Brazil.
- **Search links keep the filters you set.** Price range, state, category,
  condition and sorting all live in the link, so a filtered search you copy
  from the site is exactly what you get back.
- **Export as JSON, CSV or Excel**, or pull the rows through Apify's API and
  integrations.

### How to use it

1. Copy a search or category link from olx.com.br, such as
   `https://www.olx.com.br/imoveis/venda/estado-sp`, and paste it into **OLX
   links**. Or leave the links empty and type a few words into **Keywords**
   with a **State**.
2. Set **Maximum listings** to the number of rows you want, or 0 to read every
   listing the searches offer.
3. Turn on **Full description and seller** if you want the description, seller
   account and labelled fields from each listing page. It is charged
   separately and is slower.

Run it with no changes and it saves 20 property listings for sale in São
Paulo, which is the fastest way to see the row shape.

#### Links that work

- A search or category link: `https://www.olx.com.br/imoveis/venda/estado-sp`
- A keyword search on the site: `https://www.olx.com.br/autos-e-pecas/carros-vans-e-utilitarios?q=corolla`
- A single listing link, from any state subdomain, such as
  `https://sp.olx.com.br/sao-paulo-e-regiao/imoveis/apartamento-...-1553573087`

A link that is not OLX Brazil stops the run before anything is read and names
the line, so a typo in a long list does not cost a run.

### Input

| Field | What it does | Default |
| --- | --- | --- |
| **OLX links** (`searches`) | Search or category links copied from olx.com.br, plus single listing links. Up to 50 links and keywords in one run. | the São Paulo sale search |
| **Keywords** (`keywords`) | Words to search for, one search each, such as `corolla` or `iphone 13`. | empty |
| **State** (`state`) | Limits keyword searches to one Brazilian state, such as SP or RJ. Links carry their own state. | all of Brazil |
| **Maximum listings** (`maxListings`) | How many listings to save in one run, across every link and keyword. 0 reads every listing the searches offer. | 200 |
| **Full description and seller** (`details`) | Adds each listing's full description, seller account, category ids and labelled fields. Charged separately. | off |

Give at least one link or one keyword. When both are empty the run reads the
sample search instead.

```json
{
  "searches": ["https://www.olx.com.br/imoveis/venda/estado-sp"],
  "keywords": [],
  "state": "SP",
  "maxListings": 200,
  "details": false
}
```

### Output

One row per listing.

```json
{
  "listing_id": 1553573087,
  "url": "https://sp.olx.com.br/sao-paulo-e-regiao/imoveis/venda-4-dormitorios-no-moema-1553573087",
  "title": "Venda · 4 dormitórios no Moema",
  "price": 70000000,
  "price_text": "R$ 70.000.000",
  "old_price": null,
  "price_reduced": false,
  "category": "Apartamentos",
  "category_id": 1001,
  "category_root_id": 1000,
  "seller_type": "business",
  "seller_name": "Olimpia House",
  "seller_rating": null,
  "city": "São Paulo",
  "neighbourhood": "Indianópolis",
  "state": "SP",
  "area_code": "11",
  "location": "São Paulo, Indianópolis",
  "posted_at": "2026-11-17T03:24:36.000Z",
  "bumped_seconds_ago": 0,
  "images": ["https://img.olx.com.br/images/37/378662343390263.jpg"],
  "image_count": 1,
  "video_count": 0,
  "has_360_view": false,
  "featured": false,
  "online": false,
  "attributes": { "rooms": "4", "bathrooms": "3", "garage_spaces": "2", "size": "220m²" },
  "description": null,
  "seller_id": null,
  "ad_id": null,
  "region": null,
  "main_category": null,
  "main_category_id": null,
  "sub_category": null,
  "sub_category_id": null,
  "detail_attributes": null,
  "scraped_at": "2026-11-17T03:39:15.650Z"
}
```

| Field | What it holds |
| --- | --- |
| `listing_id` | OLX's own id for the listing; the same listing always has the same id |
| `url` | The listing link as OLX publishes it |
| `title` | The seller's title |
| `price` | The asking price in reais, as a number; empty when the seller writes a price in words |
| `price_text` | The price exactly as the page shows it |
| `old_price` | The previous price in reais when OLX marks a price drop |
| `price_reduced` | Whether the page shows a price-drop badge |
| `category` | The category as OLX names it, such as "Apartamentos" or "Carros, vans e utilitários" |
| `category_id` | OLX's id for that category |
| `category_root_id` | OLX's id for the main category, such as 1000 for property |
| `seller_type` | "business" or "private" |
| `seller_name` | The seller or agency name shown on the listing |
| `seller_rating` | The seller's Google rating, when the page shows one |
| `city` | The city |
| `neighbourhood` | The neighbourhood or district |
| `state` | The state code, such as SP |
| `area_code` | The phone area code of the listing's town |
| `location` | City and neighbourhood as the page words it |
| `posted_at` | When the listing was posted, as a date |
| `posted_at_epoch` | The same moment as a Unix timestamp |
| `bumped_seconds_ago` | Seconds since the seller last bumped the listing |
| `images` | Every image link, in the order the page shows them |
| `image_count` | How many images the listing has |
| `video_count` | How many videos the listing has |
| `has_360_view` | Whether the listing has a 360° photo |
| `featured` | Whether the listing is a featured one |
| `online` | Whether OLX marks the seller as online now |
| `attributes` | The listing's labelled fields, as a name and value pair: property area, rooms, bathrooms, garage, condo fee, IPTU and features; vehicle brand, model, year, mileage, fuel, gearbox and colour |
| `description` | The full description, only with **Full description and seller** |
| `seller_id` | OLX's public account id for the seller, only with that option |
| `ad_id` | OLX's internal ad id, only with that option |
| `region` | The OLX region, such as "São Paulo e região", only with that option |
| `main_category` | The main category as OLX names it, only with that option |
| `main_category_id` | OLX's id for the main category, only with that option |
| `sub_category` | The second-level category, only with that option |
| `sub_category_id` | OLX's id for that category, only with that option |
| `detail_attributes` | The listing page's labelled fields with their filter links, only with that option |
| `scraped_at` | When this row was read |

`price`, `old_price`, `seller_rating`, `area_code` and the details fields can be
empty: a seller may write "A combinar" instead of a number, only some sellers
show a rating, and the details fields are empty unless you turn that option on.
Measured on 20 sample listings, every other field was filled in every row.

### How much does it cost?

You pay for what you get:

- **$1.00 per 1,000 listings.** One listing saved to your results. A listing
  found twice in one run is charged once, and a page that did not answer is
  not charged. On the Gold plan, $0.70 per 1,000.
- **$0.80 per 1,000 full listings.** One listing's full description, seller
  account, ad id, category ids and labelled fields, only when **Full
  description and seller** is on and the listing page answers. On the Gold
  plan, $0.56 per 1,000.

A run of the São Paulo sale search that saves 6,000 listings costs $6.00
($4.20 on Gold). The same run with descriptions and sellers for all 6,000
costs $10.80 ($7.56 on Gold). The platform's compute for that run was under one
cent.

### How long does a run take?

About 20 listings in 4 seconds, 1,000 in 13 seconds, 6,000 in 36 seconds and
20,000 in 2 minutes. With **Full description and seller** on, add about a third
of a second per listing: 200 listings with details took 37 seconds, 500 took 80
seconds.

### Good to know

- **OLX Brazil only.** A link from another site stops the run before anything
  is read.
- **One search serves 5,000 listings.** OLX returns page 100 for every page
  after it. This Actor notices that and continues on the site's price filter,
  so a request larger than 5,000 still arrives; the rows are the same rows, in
  a different order.
- **Promoted listings repeat.** Adjacent pages carry the same few promoted ads;
  each listing is saved and charged once.
- **A stale link is skipped, not fatal.** A search link that redirects to the
  home page, or a listing that is gone, is left out and named in the run
  summary; the rest of the run continues.
- **Prices are text on OLX.** When a seller writes a price in words, `price` is
  empty and `price_text` keeps the words.
- **For daily monitoring**, paste the same search links and turn details off;
  the price, seller and posted date of each listing are already in the list
  row.

### FAQ

**Can I scrape a whole state?**
Yes, that is what the price filter is for: a state-wide property search that
advertises millions of listings is read past the 5,000-row window. A very large
request takes longer and costs more, so start with a few thousand rows.

**Do I need to divide my search by price or city myself?**
No. When a request is larger than one search serves, the Actor does it on the
site's own price filter. You can still paste several filtered links if you want
a specific price range.

**Does it work for cars and phones, not only property?**
Yes. Any search or category link works, and the listing's own fields come with
it: mileage, year and gearbox for cars, memory and condition for phones, area
and rooms for property.

**Can I get the full description without the details option?**
No. The list page carries everything except the description, the seller account
and the labelled fields, which only the listing's own page has.

# Actor input Schema

## `searches` (type: `array`):

Search or category links copied from olx.com.br, such as https://www.olx.com.br/imoveis/venda/estado-sp. Filters you set on the site stay in the link. A single listing link works too. Up to 50 links and keywords in one run; a link written twice is read once. A link that is not OLX Brazil stops the run before anything is read, naming the line.

## `keywords` (type: `array`):

Words to search for on OLX Brazil, such as corolla or iphone 13. Each keyword is one search, and every listing it finds is saved. Leave empty when you paste links.

## `state` (type: `string`):

Limits keyword searches to one Brazilian state, such as SP or RJ. Links already carry their own state, so this only changes keywords. Leave empty to search all of Brazil.

## `maxListings` (type: `integer`):

How many listings to save in one run, across every link and keyword. 0 reads every listing the searches offer. A large number takes longer and costs more.

## `details` (type: `boolean`):

Adds each listing's full description, seller account, category ids and every labelled field from its own page. Charged separately per listing and several times slower. Off by default.

## Actor input object example

```json
{
  "searches": [
    "https://www.olx.com.br/imoveis/venda/estado-sp"
  ],
  "keywords": [],
  "maxListings": 20,
  "details": false
}
```

# Actor output Schema

## `listings` (type: `string`):

Every listing read from the links and keywords, one row each.

## `summary` (type: `string`):

How many listings were saved, how many searches were read, and why the run stopped.

## `misses` (type: `string`):

Links and listing pages that did not answer, with the reason.

# 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 = {
    "searches": [
        "https://www.olx.com.br/imoveis/venda/estado-sp"
    ],
    "keywords": [],
    "maxListings": 20,
    "details": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("luzivanlt/olx-brazil-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 = {
    "searches": ["https://www.olx.com.br/imoveis/venda/estado-sp"],
    "keywords": [],
    "maxListings": 20,
    "details": False,
}

# Run the Actor and wait for it to finish
run = client.actor("luzivanlt/olx-brazil-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 '{
  "searches": [
    "https://www.olx.com.br/imoveis/venda/estado-sp"
  ],
  "keywords": [],
  "maxListings": 20,
  "details": false
}' |
apify call luzivanlt/olx-brazil-listings-scraper --silent --output-dataset

```

## MCP server setup

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