# Mercado Livre Scraper (`serj_henrique/mercado-livre-scraper`) Actor

Automate product research on Mercado Livre — Brazil's largest e-commerce marketplace. Scrape product names, prices, discounts, seller info, ratings, free shipping status, and more from search results in structured, analysis-ready JSON.

- **URL**: https://apify.com/serj\_henrique/mercado-livre-scraper.md
- **Developed by:** [Sergio Henrique](https://apify.com/serj_henrique) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

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

## Mercado Livre Product Scraper

Automate product research on Mercado Livre — Brazil's largest e-commerce marketplace. Scrape product names, prices, discounts, seller info, ratings, free shipping status, and more from search results in structured, analysis-ready JSON.

***

### What It Does

The **Apify Mercado Livre Scraper** lets you extract product listings from Mercado Livre search results at scale. Instead of manually browsing thousands of products, you provide a list of keywords and let the Actor run through every search result page, pulling structured data for each item — including price, brand, seller, installment options, free shipping flags, MeliChoice status, best seller badges, and more.

The Actor is designed to handle Mercado Livre's anti-bot protections, automatically rotating residential proxies and re-trying on blocked requests so you can focus on the data instead of infrastructure.

***

### Use Cases

- **Price monitoring & competitor analysis** — Track how products in a specific category are priced across sellers and spot opportunities or price drops over time.
- **Market research for importers and retailers** — Feed a list of keywords (e.g., product names or categories) and receive a clean dataset with prices, brands, and seller names to feed into pricing engines or dashboards.
- **Product catalog building** — Scrape an entire category of products (e.g., "smartphones" or "game console cards") and export the results to a spreadsheet or database for inventory planning.
- **Brand presence tracking** — Find every listing for a given brand or product ID on the platform and see where it ranks, how many units have been sold, and whether it carries a MeliChoice or official store badge.
- **E-commerce data pipelines** — Connect the Actor's JSON output to tools like Google Sheets, Airbyte, Fivetran, or custom ETL pipelines for ongoing market intelligence.

***

### Input

| Parameter | Description |
|-----------|-------------|
| **Keywords** | A list of search terms to look up on Mercado Livre. You can provide product names, categories, or specific queries (e.g. `["smartphones", "notebooks"]`). |
| **Max Pages** | The maximum number of result pages to scrape per keyword (default: `1`). Each page contains 48 products. |

**Example input:**

```json
{
  "keywords": ["smartphones", "notebooks"],
  "maxPages": 2
}
```

***

### Output

Each run produces a dataset where every row is a single product listing. Fields include:

- **Product info:** name, brand, category ID, item URL, image URL
- **Pricing:** price (BRL), original/base price, discount percentage, installment info
- **Seller info:** seller name, whether it's an official store, international shipping
- **Shipping & logistics:** free shipping flag, logistic type (e.g. `fulfillment`)
- **Quality & availability:** rating value & count, sold quantity, MeliChoice badge, best seller, lightning deal, last units, unmissable offer
- **Search metadata:** the keyword used to find the product, its position on the page, result type

**Sample record:**

```json
{
  "itemId": "MLB4625689287",
  "seller": "Azbuy",
  "installment": "4x 29.98 sem juros BRL",
  "isInternational": false,
  "categoryId": "MLB5095",
  "domainId": "MLB-CELLPHONE_CASES_AND_COVERS",
  "isOfficialStore": true,
  "productName": "Capa Anti Impacto Transparente Ringke Original Fusion Para Samsung Galaxy S26 Ultra Reforçada Trasparente Lisa",
  "image": "https://http2.mlstatic.com/D_NQ_NP_740217-MLA109560296839_032026-F.jpg",
  "ratingCount": 1345,
  "ratingValue": 4.8,
  "url": "https://www.mercadolivre.com.br/capa-anti-impacto-transparente-ringke-original-fusion-para-samsung-galaxy-s26-ultra-reforcada/p/MLB67276752",
  "brandName": "Ringke",
  "hasFreeShipping": true,
  "position": 13,
  "restultType": "ORGANIC",
  "productId": "MLB67276752",
  "discountPct": 14,
  "priceCurrency": "BRL",
  "price": 119.9,
  "priceBase": 139.9,
  "soldQuantity": 500,
  "shippingLogisticType": "fulfillment",
  "isBestSeller": false,
  "isLightningDeal": false,
  "isLastUnits": false,
  "isMeliChoice": false,
  "isUnmissableOffer": false,
  "keyword": "capa-de-celular"
}
```

***

### Notes

- **Region:** The Actor is configured for Mercado Livre Brazil (`mercadolivre.com.br`) by default. Adjust the proxy country code if you need listings from other Mercado Livre marketplaces.
- **Login not required:** The Actor does not need Mercado Livre account credentials — all product data is publicly available.
- **Pagination:** Set `maxPages` to scrape more results for a keyword.

# Actor input Schema

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

A list of search keywords to scrape products for.

## `maxPages` (type: `integer`):

The maximum number of pages to scrape for each keyword.

## Actor input object example

```json
{
  "keywords": [
    "iphone"
  ],
  "maxPages": 1
}
```

# Actor output Schema

## `default` (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 = {
    "keywords": [
        "iphone"
    ]
};

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

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

```

## MCP server setup

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