# Mercado Livre Scraper — Search Results, Prices & Sales (`gangary/mercado-livre-search-scraper`) Actor

Scrape Mercado Livre (Brazil) search results by keyword: titles, prices, discounts, installments, sellers, ratings, shipping and sales data. Follows pagination up to 1,000 items per query with optional sponsored-ad filtering. Great for price monitoring, competitor tracking and market research.

- **URL**: https://apify.com/gangary/mercado-livre-search-scraper.md
- **Developed by:** [Gangary](https://apify.com/gangary) (community)
- **Categories:** E-commerce, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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

![mercado-livre-search-scraper](https://empresas-por-cnae.vercel.app/covers/mercado-livre-search-scraper.png)

## Mercado Livre Scraper — Search Results, Prices & Sales

Search Mercado Livre — Brazil's largest marketplace — by keyword and get every listing back as structured data: **price, crossed-out price, discount %, installments, seller, official-store flag, rating, units sold, shipping flags** and more. The actor follows the site's own pagination up to 1,000 items per query, with optional sponsored-ad filtering.

Built for **price monitoring, competitor tracking, repricing and market research** on the Brazilian e-commerce market.

**Em português:** raspe o Mercado Livre do Brasil por palavra-chave e receba preços, descontos, parcelamento, vendedores, notas e avaliações, mais vendidos e frete em tabela pronta pra planilha. Feito pra monitorar preços, acompanhar concorrentes e pesquisar mercado.

### What you get

One row per listing, real output from a "fone bluetooth" search:

```json
{
  "query": "fone bluetooth",
  "position": 1,
  "itemId": "MLB6467824944",
  "productId": "MLB53451486",
  "title": "Fone Ouvido Soundcore Liberty 5 Bluetooth 5.4 ANC 3.0 Redução de Voz 2X Dolby Áudio Hi-Res LDAC Graves Dinâmicos 48h IP55 Carregamento Rápido 6 Mics IA Chamadas Claras App Personalização Cor Auzl",
  "url": "https://www.mercadolivre.com.br/p/MLB53451486",
  "price": 559,
  "originalPrice": 799,
  "discountPct": 30,
  "currency": "BRL",
  "installments": "10x R$ 55,90 sem juros",
  "freeShipping": true,
  "isFull": true,
  "sellerName": "Soundcore",
  "isOfficialStore": true,
  "rating": 4.8,
  "soldText": null,
  "soldQuantity": 500,
  "isAd": true,
  "categoryId": "MLB196208",
  "domainId": "MLB-HEADPHONES",
  "thumbnail": "https://http2.mlstatic.com/D_NQ_NP_841908-MLA99999841907_112025-O.webp",
  "scrapedAt": "2026-09-26T18:42:11.000Z"
}
```

| Field | Meaning |
|---|---|
| `query` / `position` | The search term and where the listing ranked |
| `price` / `originalPrice` / `discountPct` | Current price, crossed-out price and discount % |
| `installments` | Installment plan as shown on the card (e.g. 10x interest-free) |
| `sellerName` / `isOfficialStore` | Seller and whether it's an official store |
| `rating` / `soldQuantity` | Star rating and units sold, when the card displays them |
| `freeShipping` / `isFull` | Free shipping and Fulfillment (FULL) flags |
| `isAd` | `true` for sponsored placements — filter with **Include sponsored ads** |
| `url` / `itemId` | Canonical listing link and item ID — join with the reviews actor |
| `error` | Set only on failed queries — those rows are **not charged** |

### How to use it

1. Type search terms into **Search queries** exactly as a shopper would ("fone bluetooth") — up to 20 per run.
2. Set **Max items per query** (default 100, up to 1,000) — the actor follows the site's pagination until the limit or the last page.
3. Leave **Include sponsored ads** on to keep paid placements (marked `isAd: true`), or turn it off for organic-only results.
4. Run and export — the **Price watch** dataset view gives you a slim item / price / discount / seller table ready for monitoring.

### Pricing

Pay per event: a small start fee opens the Brazilian residential session, then a flat fee per **listing delivered**. Blocked pages, failed queries and invalid URLs are **never charged** — and every run respects the `maxTotalChargeUsd` budget you set on Apify.

| Scenario | Approximate cost |
|---|---|
| 100 listings (1 query) | ~US$ 0.17 |
| 1,000 listings (1 query, max per query) | ~US$ 1.52 |
| 10,000 listings (10 queries) | ~US$ 15.02 |

### FAQ

**Is scraping Mercado Livre legal?**
The actor reads publicly listed search results — no login, no paywall bypass, and no personal data beyond the public store/seller name already shown on every listing card.

**Why do some queries come back `blocked`?**
Mercado Livre runs aggressive anti-bot protection. When a session gets blocked, the actor drops it, opens a fresh Brazilian residential IP and retries the same page — up to 3 times. If it still fails, the query is abandoned with an error row and you are not charged for it.

**Is proxy included?**
Yes — Brazilian residential proxies are included in the per-listing price. Nothing to configure.

### Honest limitations

- Mercado Livre itself serves at most ~2,000 results per search term (42 pages) — nothing can scrape deeper than the site offers.
- Per query this actor collects up to 1,000 items per run; for more volume, spread terms across queries (up to 20 per run) or schedule multiple runs.
- Ratings, sold counts and installments appear only when the listing card displays them.
- Sponsored-ad filtering follows the site's own ad marking.

### From the same maker

- **[Mercado Livre Product & Reviews Scraper](https://apify.com/gangary/mercado-livre-product-reviews-scraper)** — full product page data plus customer reviews.
- **[Mercado Livre Best Sellers & Deals Scraper](https://apify.com/gangary/mercado-livre-best-sellers-scraper)** — top 20 per category and the offers of the day.

***

*Keywords: mercado livre scraper, raspar mercado livre, mercado livre price scraper, preços mercado livre, price monitoring brazil, competitor price tracking, e-commerce scraper brazil, mais vendidos mercado livre, avaliações mercado livre, market research brazil.*

# Actor input Schema

## `queries` (type: `array`):

Search terms exactly as a shopper would type them on Mercado Livre (e.g. "fone bluetooth"). Up to 20 queries per run.

## `maxItemsPerQuery` (type: `integer`):

Collect up to this many listings per query, following the site's pagination until the limit is reached or results end.

## `includeAds` (type: `boolean`):

Keep listings marked as paid ads (sponsored positions) in the results. Turn off to get organic results only.

## Actor input object example

```json
{
  "queries": [
    "fone bluetooth"
  ],
  "maxItemsPerQuery": 100,
  "includeAds": 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 = {
    "queries": [
        "fone bluetooth"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gangary/mercado-livre-search-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 = { "queries": ["fone bluetooth"] }

# Run the Actor and wait for it to finish
run = client.actor("gangary/mercado-livre-search-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 '{
  "queries": [
    "fone bluetooth"
  ]
}' |
apify call gangary/mercado-livre-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gangary/mercado-livre-search-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/DaVeawC4qaPsrqnk5/builds/Mh4eKFkYpyEzK5sVt/openapi.json
