# Mercado Livre Brazil Scraper — Products & Deals (`reventadata/mercadolivre-scraper`) Actor

Fast, structured product data from Mercado Livre Brasil (mercadolivre.com.br). Scrapes search results, prices, discounts, installments, ratings, free shipping, and seller brands. Zero seller PII.

- **URL**: https://apify.com/reventadata/mercadolivre-scraper.md
- **Developed by:** [reventadata](https://apify.com/reventadata) (community)
- **Categories:** E-commerce, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 product listings

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

> **Unofficial.** This Actor is not affiliated with, authorised by, endorsed by, or in any
> way officially connected to Mercado Livre or Mercado Libre. "Mercado Livre" and "Mercado Libre" are trademarks of their respective owners and are used
> here only to describe what this tool reads. It reads the same public pages a browser does.

Mercado Livre Brazil Scraper searches Latin America's largest marketplace ([mercadolivre.com.br](https://www.mercadolivre.com.br)) and returns structured product listing data with current prices, original prices, discount percentages, installment terms, seller brands, product conditions, review ratings, free shipping indicators, and high-resolution thumbnail images.

### What data can you extract from Mercado Livre?

- **Product Identity:** Full title, listing URL, canonical item ID (`MLB...`), and product image URL.
- **Pricing & Discounts:** Current selling price in BRL (R$), crossed-out original price, calculated discount percentage, and installment terms (e.g. `10x R$ 389,90 sem juros`).
- **Seller & Brand Information:** Official brand store name or verified seller display name. **Zero personal seller PII** (no personal seller identities, CPF/CNPJ documents, or phone numbers).
- **Condition & Shipping:** Condition (`new` / `used`), free shipping badge indicator, and Full fulfillment indicator (`Mercado Livre Full`).
- **Social Proof:** Average star rating score (e.g. `4.9`) and total review counts.

### Why scrape Mercado Livre?

- **#1 Marketplace in Latin America:** Over 300 million monthly visits and tens of millions of active listings across Brazil.
- **E-Commerce Price Intelligence & Monitoring:** Track price changes, discount trends, official brand pricing, and stock changes.
- **Competitive Assortment Analysis:** Discover best-sellers, top-rated products, and competitive pricing in any retail category.
- **Predictable Pay-Per-Event (PPE) Pricing:** Pay only for results returned at **$1.99 per 1,000 listings**, with zero monthly subscription lock-in.

### How to scrape Mercado Livre

1. Enter one or more search keywords in `searchQueries` (e.g. `["notebook lenovo"]`, `["iphone 15"]`, `["vestido de festa"]`).
2. Optionally filter by condition: all, new only (novo), or used only (usado).
3. Optionally set price boundaries (minimum and maximum price in BRL).
4. Optionally toggle `freeShippingOnly` to collect only listings with free shipping.
5. Set `maxItems` to control the total number of listings to collect.
6. Run the Actor and export datasets in JSON, CSV, Excel, or integrate via Apify API / Python SDK.

#### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `searchQueries` | array | `["notebook lenovo"]` | Keywords or product terms to search. |
| `condition` | string | `all` | Filter condition: `all`, `new`, or `used`. |
| `minPrice` | integer | *None* | Optional minimum price in BRL. |
| `maxPrice` | integer | *None* | Optional maximum price in BRL. |
| `freeShippingOnly` | boolean | `false` | When true, only returns items offering free shipping. |
| `maxItems` | integer | `100` | Maximum number of listings to return. |
| `proxyConfiguration` | object | *Brazil Residential* | Apify Residential proxy with Brazilian exit IPs. |

#### Sample Output Record

```json
{
  "itemId": "MLB5759767112",
  "title": "Notebook Lenovo Ideapad Slim 3 15irh10 Intel Core i5-13420h 8gb 256gb Ssd Windows 11 15.3 - 83ns0003br Luna Grey",
  "url": "https://www.mercadolivre.com.br/notebook-lenovo-ideapad-slim-3-15irh10-intel-core-i5-13420h-8gb-256gb-ssd-windows-11-153-83ns0003br-luna-grey/p/MLB5759767112",
  "price": 3509.0,
  "originalPrice": 4699.0,
  "currency": "BRL",
  "discountPercentage": 25,
  "installments": "10x R$ 389,90 sem juros",
  "seller": "Mercado Livre",
  "condition": "new",
  "isFreeShipping": true,
  "isFullFulfillment": true,
  "rating": 4.9,
  "reviewsCount": 123,
  "imageUrl": "https://http2.mlstatic.com/D_Q_NP_2X_986125-MLA100031539491_122025-E.webp",
  "matchedKeyword": "notebook lenovo",
  "scrapedAt": "2026-10-17T12:00:00Z"
}
```

# Actor input Schema

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

List of keywords or product queries to search on Mercado Livre Brasil (e.g. \['notebook lenovo', 'iphone 15']).

## `condition` (type: `string`):

Filter by item condition: all, new (novo), or used (usado).

## `minPrice` (type: `integer`):

Minimum item price in Brazilian Reais (BRL). Optional.

## `maxPrice` (type: `integer`):

Maximum item price in Brazilian Reais (BRL). Optional.

## `freeShippingOnly` (type: `boolean`):

When enabled, only extracts listings offering free shipping (frete grátis).

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

Maximum number of product listings to collect across all queries.

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

Proxy settings. Brazil Residential Proxy is required to reliably reach Mercado Livre without challenges.

## Actor input object example

```json
{
  "searchQueries": [
    "notebook lenovo"
  ],
  "condition": "all",
  "freeShippingOnly": false,
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "BR"
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Items scraped from the target website.

# 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": [
        "notebook lenovo"
    ],
    "condition": "all",
    "freeShippingOnly": false,
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "BR"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("reventadata/mercadolivre-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": ["notebook lenovo"],
    "condition": "all",
    "freeShippingOnly": False,
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "BR",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("reventadata/mercadolivre-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": [
    "notebook lenovo"
  ],
  "condition": "all",
  "freeShippingOnly": false,
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "BR"
  }
}' |
apify call reventadata/mercadolivre-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,reventadata/mercadolivre-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/Qpsz4cuUUqUkFcfno/builds/B8sed8ywxJVLNjWRs/openapi.json
