# OLX Brazil Scraper - Listings, Prices & Locations (`macgyver_dev/olx-brazil-scraper`) Actor

Extract OLX Brazil listings by search term or URL: title, price in BRL, city, neighborhood, state, photos, category details and publication date. Filter by state and price, sort by newest. Fast, no browser, $0.80 per 1,000 listings.

- **URL**: https://apify.com/macgyver_dev/olx-brazil-scraper.md
- **Developed by:** [Macgyver Cseh](https://apify.com/macgyver_dev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 listing scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Scraper - Listings, Prices & Locations

Extract listings from **OLX Brazil** (olx.com.br), the largest classifieds site in Brazil. Type a search term (or paste an OLX search URL) and get every listing as clean data: title, price in BRL, city, neighborhood, state, photos, category, details such as brand and condition, and the publication date.

No browser, no login, no setup. It is fast and cheap: **$0.80 per 1,000 listings**.

### What you get for each listing

| Field | Example |
|---|---|
| `title` | Refrigerador Electrolux RE31 degelo 240 litros-NOVA |
| `price` | 1400 (number, in BRL) |
| `priceText` / `oldPrice` | "R$ 1.400" / previous price when the seller lowered it |
| `city`, `neighborhood`, `state` | Rio de Janeiro, Realengo, RJ |
| `category` | Geladeiras e Freezers |
| `properties` | brand, condition, voltage, model, year, mileage... (depends on the category) |
| `publishedAt` | 2026-11-13T17:01:00.000Z |
| `url`, `imageUrl`, `imageCount` | link to the listing and its main photo |
| `isProfessional`, `isFeatured`, `olxPay` | professional seller, paid highlight, OLX Pay enabled |

### How to use

1. Add one or more **Search queries**, for example `iphone 13`, `bicicleta aro 29`, `apartamento 2 quartos`.
2. Optionally pick a **State (UF)** such as `sp`, `rj` or `mg` (leave empty to search all of Brazil).
3. Optionally set **Minimum / Maximum price** and the **Sort order** (relevance, newest, lowest or highest price).
4. Set **Maximum listings** and click **Start**. Download the results as JSON, CSV or Excel, or use the API.

You can also paste any OLX search or category URL into **OLX search URLs** (for example a page with your own filters already applied).

#### Input example

```json
{
  "searchQueries": ["iphone 13", "geladeira"],
  "state": "sp",
  "minPrice": 500,
  "maxPrice": 3000,
  "sortBy": "date",
  "maxItems": 500
}
```

#### Output example

```json
{
  "listId": "1543225265",
  "title": "Refrigerador Electrolux RE31 degelo 240 litros-NOVA",
  "price": 1400,
  "priceText": "R$ 1.400",
  "oldPrice": null,
  "currency": "BRL",
  "url": "https://rj.olx.com.br/rio-de-janeiro-e-regiao/eletro/geladeiras-e-freezers/refrigerador-electrolux-re31-degelo-240-litros-nova-1543225265",
  "imageUrl": "https://img.olx.com.br/images/50/502639933186485.jpg",
  "imageCount": 5,
  "city": "Rio de Janeiro",
  "neighborhood": "Realengo",
  "state": "RJ",
  "location": "Rio de Janeiro, Realengo",
  "category": "Geladeiras e Freezers",
  "properties": {
    "eletro_refrigerators_brand": "Electrolux",
    "eletro_refrigerators_condition": "Novo",
    "eletro_refrigerators_voltage": "220v"
  },
  "publishedAt": "2026-11-13T17:01:00.000Z",
  "isProfessional": false,
  "isFeatured": false,
  "olxPay": true,
  "query": "geladeira",
  "scrapedAt": "2026-11-14T21:40:00.000Z"
}
```

### Use cases

- **Resellers and flippers:** find underpriced items fast (sort by newest, filter by price).
- **Price research:** know the real market price of a phone, a car or a fridge in each state.
- **Real estate and cars:** collect listings by city with all the details OLX shows.
- **Monitoring:** schedule the Actor every hour with "newest first" and get new listings as soon as they appear.
- **Market studies:** count supply by category, city or seller type (private vs professional).

### Pricing

**$0.80 per 1,000 listings ($0.0008 each)**, plus a tiny start fee per run. Example: 10,000 listings cost about **$8**. You only pay for listings saved to the dataset, and you can set a maximum cost per run.

### FAQ

**How many listings does one search return?** OLX shows about 50 listings per page. Increase **Maximum pages per query** to go deeper.

**Do I need a proxy?** The default Apify Proxy is recommended for reliable runs. The Actor retries automatically if a request is refused.

**Can I get the seller's phone number?** No. The Actor only collects what OLX shows publicly on the search page. Phone numbers are not public.

**Why is the price sometimes 1?** Some sellers put "R$ 1" as a placeholder. Use **Minimum price** to filter those out.

**Is it legal?** The Actor only reads public pages, like a visitor would. Use the data responsibly and follow the LGPD and OLX terms; don't use it to spam sellers.

### Support

Found a problem or need a new field? Open an issue on the Actor page and it will be looked at quickly.

# Actor input Schema

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

Terms to search on public OLX Brazil listings.

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

Public OLX Brazil search or category URLs to scrape.

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

Optional Brazilian state abbreviation such as sp or rj; leave empty for Brazil-wide search.

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

Maximum number of listings saved across all searches.

## `maxPagesPerQuery` (type: `integer`):

Maximum paginated OLX result pages fetched for each query or URL.

## `minPrice` (type: `number`):

Optional minimum listing price in Brazilian reais.

## `maxPrice` (type: `number`):

Optional maximum listing price in Brazilian reais.

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

Order of the results: relevance, newest first, lowest price or highest price.

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

Proxy used for the requests. Keep the default Apify Proxy for reliable runs.

## Actor input object example

```json
{
  "searchQueries": [
    "iphone 13"
  ],
  "startUrls": [],
  "state": "sp",
  "maxItems": 50,
  "maxPagesPerQuery": 5,
  "sortBy": "relevance",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 13"
    ],
    "state": "sp",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("macgyver_dev/olx-brazil-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 13"],
    "state": "sp",
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("macgyver_dev/olx-brazil-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 13"
  ],
  "state": "sp",
  "maxItems": 50
}' |
apify call macgyver_dev/olx-brazil-scraper --silent --output-dataset

```

## MCP server setup

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