# Mercado Livre / Mercado Libre Scraper (Fast & Cheap) (`goat_afiliados/mercado-livre-fast-scraper`) Actor

Fast HTTP scraper, no browser. Mercado Livre deals, prices, installments, free & Full shipping, ads, best sellers. $1/1,000 products. Ofertas do dia, parcelamento, frete Full.

- **URL**: https://apify.com/goat_afiliados/mercado-livre-fast-scraper.md
- **Developed by:** [goat](https://apify.com/goat_afiliados) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 21 total users, 4 monthly users, 99.8% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 product 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 / Mercado Libre Scraper (Fast & Cheap)

**Fast HTTP scraper with no browser lag. Extract daily deals, prices, installments,
free & Full shipping and sponsored ads from Mercado Livre Brasil — for $1 per 1,000
products.**

Keyword search, categories, daily & lightning deals ("ofertas do dia") and best sellers
("mais vendidos"). No Chrome, no Puppeteer, no Playwright: lightweight HTTP requests read
the same JSON state the official Android app uses.

> 🇧🇷 **Português:** extraia produtos, preços De/Por, parcelamento sem juros, frete grátis,
> frete Full, ofertas do dia e mais vendidos do Mercado Livre sem navegador.
> 🇪🇸 **Español:** scraper de Mercado Libre Brasil sin navegador: precios, cuotas sin
> interés, envío gratis y Full, ofertas del día y más vendidos.

### 🆓 Try it free

New to Apify? The **Apify Free plan includes $5 of platform credit every month**. At $1 per
1,000 products that covers about **5,000 products a month at no cost**, no credit card
needed. Hit **Start** with the default input ("notebook gamer", 100 products) and see the
full table in under a minute.

**Why this scraper**

- ⚡ **Ultra fast, no Chrome.** One HTTP request per page of 50 products. 1,000 products
  take about 20 requests, roughly a minute with the default polite delay.
- 💸 **Lower compute cost.** Runs with 256 MB of memory by default instead of the 1–4 GB a
  headless-browser scraper needs, so you pay less per 1,000 results on Apify.
- 🧾 **Rich pricing data.** Current price, "De/Por" original price, declared discount,
  installments (quantity, amount, interest-free), lightning-deal end time.
- 🚚 **Shipping intelligence.** Free shipping, **Mercado Livre Full** (fulfillment) and
  "free on first purchase only" are told apart (`is_free_for_first_purchase` in `detailed`;
  that case is not counted as free shipping).
- 📣 **Sponsored detection.** Every product carries `isSponsored` (`is_ad`), and you can
  drop ads with one checkbox.
- 🏬 **Seller signals.** Seller name, official store flag, rating, units sold, position
  in the listing.
- 🛡️ **Resilient.** Automatic retries with backoff, block detection (captcha/verification
  walls), deduplication across pages, and one failing keyword never stops the others.

### What you can scrape

| Mode | What it returns | Max per keyword/category |
| --- | --- | --- |
| `SEARCH` | Products for each keyword, with sort, condition, price range and free-shipping filters | 2,000 (40 pages × 50) |
| `CATEGORY` | Products of a category, by ID (`MLB1648`) or by listing URL | 2,000 |
| `DEALS` | "Ofertas do dia" and lightning deals, general or by category | ~500 |
| `BEST_SELLERS` | "Mais vendidos" ranking, general or by category | 20 |

### Fields you get

| Field | Example | What it is |
| --- | --- | --- |
| `title` | Fritadeira Elétrica 12 L Mondial | Product title |
| `price` | 465.78 | Current price (R$) |
| `originalPrice` / `discountPercent` | 899 / 48 | "De/Por" price and declared discount |
| `installments` | 9× R$ 51.75, interest-free | Parcelamento sem juros |
| `freeShipping` | true | Free shipping for everyone (first-purchase-only offers are not counted) |
| `isFull` | true | Shipped by **Mercado Livre Full** |
| `isSponsored` | false | Sponsored listing (ad) |
| `seller` / `isOfficialStore` | Mercado Livre / true | Seller and official store flag |
| `rating` / `soldQuantity` | 4.9 / 100000 | Rating and units sold |
| `dealEndsAt` | 2026-11-17T23:59:00Z | When a lightning deal ends |
| `url` / `imageUrl` | produto.mercadolivre.com.br/MLB-… | Clean product link (no tracking) and WebP photo |
| `position` | 1 | Position in the listing |

### Use cases

| Who | What they do with it |
| --- | --- |
| **Price monitors** | Schedule the Actor hourly and alert when a product drops below a target price or the "De/Por" discount crosses a threshold. |
| **Affiliate bots** | Feed WhatsApp/Telegram deal groups with today's deals, filtered by price, free shipping and without sponsored listings. |
| **Market intelligence** | Track best sellers per category, share of official stores, Full adoption, and pricing of competitors over time. |
| **E-commerce sellers** | Benchmark your listings against the top 50 results for your keywords, including ads. |
| **Data teams** | Build datasets of Brazilian retail prices with clean, typed fields ready for BigQuery, Sheets or a database. |

### Input

| Field | Type | Description |
| --- | --- | --- |
| `mode` | `SEARCH` | `CATEGORY` | `DEALS` | `BEST_SELLERS` | What to scrape. Default `SEARCH`. |
| `searchQueries` | string\[] | Keywords, one per line (required for `SEARCH`). |
| `categoryUrlsOrIds` | string\[] | Category IDs (`MLB1648`) or Mercado Livre links. Required for `CATEGORY`; optional for `DEALS`/`BEST_SELLERS` (empty = general). |
| `maxItems` | integer | Max products **per keyword/category**. Default 100, up to 2,000. |
| `sort` | `relevance` | `price_asc` | `price_desc` | Sort order for `SEARCH`/`CATEGORY`. |
| `condition` | `all` | `new` | `used` | Item condition. |
| `priceMin`, `priceMax` | integer (R$) | Price range in Brazilian reais. |
| `onlyFreeShipping` | boolean | Free-shipping products only. In `SEARCH`/`CATEGORY` Mercado Livre applies the filter itself; in `DEALS`/`BEST_SELLERS` cards are filtered locally. |
| `excludeSponsored` | boolean | Drop sponsored listings (`is_ad === true`). |
| `outputFormat` | `simplified` | `detailed` | Clean fields, or every field from the product card. |
| `requestDelayMs` | integer | Average delay between pages (50–150% jitter). Default 1000 ms. |
| `proxyConfiguration` | object | Apify Proxy. Use **Residential, country BR** if you see `BLOCKED`. |

#### Example input

```json
{
  "mode": "SEARCH",
  "searchQueries": ["notebook gamer", "air fryer"],
  "maxItems": 200,
  "sort": "price_asc",
  "condition": "new",
  "priceMin": 300,
  "priceMax": 3000,
  "onlyFreeShipping": true,
  "excludeSponsored": true,
  "outputFormat": "simplified",
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "BR" }
}
```

Today's deals in a category:

```json
{ "mode": "DEALS", "categoryUrlsOrIds": ["MLB1648"], "maxItems": 300 }
```

### Output

#### `simplified` (default)

One dataset item per product. The `url` is the canonical product link, without tracking
parameters. Prices are in reais.

```json
{
  "itemId": "MLB3941733035",
  "productId": "MLB45070708",
  "title": "Fritadeira Elétrica AFON-12L-BG Forno Oven 12 Litros Preto Mondial",
  "url": "https://produto.mercadolivre.com.br/MLB-3941733035",
  "imageUrl": "https://http2.mlstatic.com/D_NQ_NP_900387-MLA109507200694_042026-O.webp",
  "price": 465.78,
  "originalPrice": 899,
  "discountPercent": 48,
  "currency": "BRL",
  "installments": { "quantity": 9, "amount": 51.75, "interestFree": true },
  "condition": null,
  "seller": "Mercado Livre",
  "isOfficialStore": true,
  "freeShipping": false,
  "isFull": true,
  "isSponsored": false,
  "soldQuantity": 100000,
  "rating": 4.9,
  "dealEndsAt": null,
  "position": 1,
  "source": { "mode": "SEARCH", "input": "air fryer", "page": 1, "scrapedAt": "2026-11-17T02:13:41.047Z" }
}
```

`condition` is `null` when the card has no condition label (Mercado Livre only labels
used and refurbished items).

#### `detailed`

Everything the product card exposes, in the original structure:

```json
{
  "id": "MLB3941733035",
  "product_id": "MLB45070708",
  "user_product_id": "MLBU2861861185",
  "title": "Fritadeira Elétrica AFON-12L-BG Forno Oven 12 Litros Preto Mondial",
  "link": "https://www.mercadolivre.com.br/fritadeira-eletrica-afon-12l-bg-forno-oven-12-litros-preto-mondial/p/MLB45070708",
  "condition": null,
  "price": {
    "current": {
      "amount": 465.78,
      "currency": "BRL"
    },
    "previous": {
      "amount": 899,
      "currency": "BRL"
    },
    "discount_percent": 48,
    "prefix": null,
    "installments": {
      "quantity": 9,
      "amount": {
        "amount": 51.75,
        "currency": "BRL"
      },
      "is_interest_free": true,
      "text": "9x 51.75 BRL sem juros"
    },
    "discount_note": null,
    "notes": null
  },
  "seller": {
    "name": "Mercado Livre",
    "is_official_store": true
  },
  "rating": 4.9,
  "sold_quantity": 100000,
  "shipping": {
    "text": [
      "{shipping_truck_quiet_icon} Amanhã | Grátis por ser sua primeira compra"
    ],
    "is_free": false,
    "is_free_for_first_purchase": true,
    "is_fulfillment": true
  },
  "highlight": null,
  "is_ad": false,
  "deal_ends_at": null,
  "promotions": null,
  "variations": null,
  "attributes": null,
  "location": null,
  "headline": null,
  "label": null,
  "availability": null,
  "is_international": false,
  "international_origin": null,
  "has_trade_in": null,
  "is_featured": null,
  "image": "https://http2.mlstatic.com/D_NQ_NP_900387-MLA109507200694_042026-O.webp",
  "position": 1,
  "source": {
    "mode": "SEARCH",
    "input": "air fryer",
    "page": 1,
    "scrapedAt": "2026-11-17T02:15:04.418Z"
  }
}
```

#### Run summary

The key-value store record `RUN_SUMMARY` reports, per keyword/category, the status
(`OK`, `PARTIAL`, `FAILED`), pages read, items saved and the error code, if any.

| Error code | Meaning | What to do |
| --- | --- | --- |
| `BLOCKED` | Captcha / verification wall | Use Apify Residential proxy, country BR; increase `requestDelayMs` |
| `NOT_FOUND` | Page or category does not exist | Check the ID or link |
| `BAD_REQUEST` | Invalid category link, price range, etc. | Fix the input |
| `UPSTREAM` | Site did not answer after retries | Try again later |
| `INVALID_RESPONSE` | Unexpected page format | Report it in the Issues tab |

### Use it from your code (API)

Every run is also available through the Apify API. Replace `<TOKEN>` with your token
from **Settings → API & Integrations**. The Actor ID is
`isaac_portela~mercado-livre-fast-scraper`.

| What | Endpoint |
| --- | --- |
| Run and get the products in one call (up to 5 min) | `POST https://api.apify.com/v2/acts/isaac_portela~mercado-livre-fast-scraper/run-sync-get-dataset-items?token=<TOKEN>` |
| Start a run (async) | `POST https://api.apify.com/v2/acts/isaac_portela~mercado-livre-fast-scraper/runs?token=<TOKEN>` |
| Check a run | `GET https://api.apify.com/v2/actor-runs/<RUN_ID>?token=<TOKEN>` |
| Download products (JSON, CSV, Excel…) | `GET https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=json&token=<TOKEN>` |
| Run summary | `GET https://api.apify.com/v2/key-value-stores/<STORE_ID>/records/RUN_SUMMARY?token=<TOKEN>` |

The request body of a run is the input JSON.

```bash
curl -X POST "https://api.apify.com/v2/acts/isaac_portela~mercado-livre-fast-scraper/run-sync-get-dataset-items?token=<TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"mode":"DEALS","maxItems":50,"onlyFreeShipping":true}'
```

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('isaac_portela/mercado-livre-fast-scraper').call({
  mode: 'SEARCH',
  searchQueries: ['notebook gamer'],
  maxItems: 200,
  priceMax: 4000
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, items[0]);
```

```python
from apify_client import ApifyClient

client = ApifyClient("<TOKEN>")
run = client.actor("isaac_portela/mercado-livre-fast-scraper").call(
    run_input={"mode": "BEST_SELLERS", "categoryUrlsOrIds": ["MLB1055"]}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["title"], item["price"])
```

You can also schedule runs (**Schedules**), get a webhook when a run finishes
(**Integrations**), or send results straight to Google Sheets, Make, Zapier or n8n.

### Pricing

Pay only for what you get: **$1.00 per 1,000 products** saved to the dataset. No
monthly fee. Set `maxItems` to cap the cost of each run.

### Notes

- Listing prices are what Mercado Livre shows on the listing at scrape time. Always
  confirm price and stock on the product page before acting on them.
- The "De/Por" discount is the one declared by the seller; it is not a price-history check.
- Only public pages are read. The scraper never logs in, stores cookies or sends any
  credentials.
- Brazil only (`MLB` site, BRL prices).

# Actor input Schema

## `mode` (type: `string`):

SEARCH: busca por palavras-chave. CATEGORY: produtos de categorias. DEALS: ofertas do dia e relâmpago. BEST_SELLERS: mais vendidos (geral ou por categoria).

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

Uma busca por linha. Usado no modo SEARCH.

## `categoryUrlsOrIds` (type: `array`):

IDs como MLB1648 ou links do Mercado Livre. Obrigatório no modo CATEGORY; opcional em DEALS e BEST_SELLERS (vazio = geral). Em DEALS e BEST_SELLERS use o ID, um link /mais-vendidos/MLB… ou /ofertas?category=MLB….

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

Limite por palavra-chave ou categoria. Busca e categoria chegam a 2.000 (40 páginas × 50); ofertas a ~500; mais vendidos a 20.

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

Vale para SEARCH e CATEGORY.

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

Novo, usado ou todos. Produtos sem rótulo de condição contam como novos.

## `priceMin` (type: `integer`):

Em reais. Vazio = sem mínimo.

## `priceMax` (type: `integer`):

Em reais. Vazio = sem máximo.

## `onlyFreeShipping` (type: `boolean`):

Descarta produtos sem frete grátis. Frete grátis só na primeira compra não conta.

## `excludeSponsored` (type: `boolean`):

Descarta cartões marcados como anúncio (is_ad).

## `outputFormat` (type: `string`):

simplified: campos limpos, link canônico sem rastreio e preços em reais. detailed: todos os campos ricos do cartão (promoções, atributos, variações, textos de frete, localização…).

## `requestDelayMs` (type: `integer`):

Atraso médio entre requisições, com variação aleatória de 50% a 150%.

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

O Mercado Livre costuma bloquear IPs de datacenter. Se aparecerem bloqueios (BLOCKED), use proxy residencial do Brasil.

## Actor input object example

```json
{
  "mode": "SEARCH",
  "searchQueries": [
    "notebook gamer",
    "air fryer"
  ],
  "maxItems": 100,
  "sort": "relevance",
  "condition": "all",
  "onlyFreeShipping": false,
  "excludeSponsored": false,
  "outputFormat": "simplified",
  "requestDelayMs": 1000,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "BR"
  }
}
```

# Actor output Schema

## `products` (type: `string`):

One item per product (simplified or detailed format).

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

Status, pages and items per keyword or category, with error codes.

# 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 gamer",
        "air fryer"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "BR"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("goat_afiliados/mercado-livre-fast-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 gamer",
        "air fryer",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "BR",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("goat_afiliados/mercado-livre-fast-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 gamer",
    "air fryer"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "BR"
  }
}' |
apify call goat_afiliados/mercado-livre-fast-scraper --silent --output-dataset

```

## MCP server setup

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