logo

Mercado Libre Scraper - Mercado Libre Product Data Scraping

RealdataAPI / mercado-libre-scraper

Businesses operating across Latin American marketplaces need reliable product intelligence to monitor prices, sellers, availability, ratings, and customer demand. mercado libre scraper solutions help collect structured marketplace data at scale, turning changing product listings into actionable datasets for competitive analysis. With E-Commerce Data Scraping , businesses can monitor thousands of products across categories, identify price movements, track stock availability, compare seller offers, and analyze marketplace trends without relying on manual data collection. Recurring extraction also helps teams maintain historical datasets for benchmarking and reporting. Mercado Libre Product Data Scraping enables businesses to organize product titles, SKUs, prices, discounts, categories, seller information, ratings, reviews, product URLs, and other publicly available attributes into analytics-ready formats. For retailers, brands, marketplaces, and research teams, structured Mercado Libre data can support competitor monitoring, pricing intelligence, assortment analysis, seller research, and market trend discovery. Real Data API provides scalable data collection workflows designed to transform marketplace information into usable business intelligence. Turn marketplace data into measurable insights with a structured, repeatable data strategy!

What is Mercado Libre Data Scraper, and How Does It Work?

A mercado libre scraper is a data extraction solution designed to collect publicly available information from Mercado Libre product and seller listings in a structured format. It can capture product names, SKUs, categories, prices, discounts, ratings, reviews, seller details, availability, and product URLs, depending on the available page data. Instead of manually copying thousands of listings, businesses can automate collection and organize the information into databases, spreadsheets, APIs, or analytics-ready datasets. E-Commerce Data Scraping makes it possible to schedule recurring extraction so teams can monitor marketplace changes over time. For example, retailers can track competitor prices, brands can analyze assortment changes, and researchers can study category-level trends. A structured workflow generally includes identifying target listings, collecting relevant fields, validating the extracted information, normalizing the dataset, and delivering the results in a usable format. This approach helps businesses convert marketplace information into consistent data for competitive intelligence and e-commerce analysis.

Why Extract Data from Mercado Libre?

Mercado Libre contains extensive marketplace information that can help businesses understand products, sellers, pricing, and customer activity. Mercado Libre Product Data Scraping enables organizations to collect product titles, categories, prices, discounts, ratings, reviews, availability, specifications, and other publicly displayed attributes at scale. This information can support competitor benchmarking, assortment analysis, pricing research, and category intelligence. Businesses can also use Mercado Libre seller data web scraping to examine seller names, ratings, review volumes, fulfillment information, and listing activity where these details are publicly available. For marketplace teams, recurring collection can highlight changes in competitor assortment, product availability, and pricing strategies. Brands can use historical datasets to compare their marketplace positioning with competing sellers and products. Researchers can analyze product trends across categories and geographic markets. Instead of relying on isolated observations, structured extraction creates a repeatable dataset that can be refreshed periodically. The result is a more organized foundation for marketplace monitoring, business research, and data-driven decision-making.

Is It Legal to Extract Data from Mercado Libre?

The legality of extracting marketplace information depends on factors such as the type of data collected, how it is accessed, applicable laws, contractual terms, and the intended use. A Mercado Libre price data API or another authorized data-access method may provide a more appropriate route when official access is available for the required information. Businesses should distinguish between publicly displayed information and restricted, private, copyrighted, or personal data. E-Commerce Datasets should be collected responsibly, with appropriate attention to applicable privacy laws, intellectual-property rights, website terms, access restrictions, and technical controls. Automated collection should not be treated as permission to bypass authentication, access private accounts, circumvent security mechanisms, or collect sensitive personal information. Organizations planning a commercial data project should conduct a legal and compliance review for their specific jurisdiction and use case. Where possible, businesses can prioritize official APIs, licensed datasets, or other authorized sources. Responsible data practices help reduce compliance risks while creating reliable datasets for pricing research, competitor monitoring, product intelligence, and marketplace analytics.

How Can I Extract Data from Mercado Libre?

Businesses can extract Mercado Libre information through an authorized API, licensed data provider, or an automated collection workflow designed for publicly accessible marketplace information. An Ecommerce Scraping API can simplify this process by allowing applications to request structured product, pricing, availability, seller, or review information without building the entire extraction infrastructure internally. Organizations can define the fields they need, such as product title, SKU, category, price, discount, seller, rating, review count, and URL. A mercado libre scraper can then be incorporated into a recurring workflow where data is collected, validated, normalized, and delivered to a database or analytics platform. The workflow should also include monitoring for changes in page structures and data quality. For large projects, businesses may establish collection schedules based on how frequently the underlying marketplace information changes. Historical storage is particularly useful because it enables teams to compare price movements, assortment changes, seller activity, and availability over time. Compliance requirements should be reviewed before deploying any automated collection process.

Do You Want More Mercado Libre Scraping Alternatives?

Businesses looking beyond a single extraction method can consider several approaches depending on their data requirements, technical resources, and compliance needs. A mercado libre scraper is one option for collecting publicly accessible marketplace information, while an authorized API or licensed provider may be preferable for specific use cases. E-Commerce Data Scraping can also be combined with other data sources to create broader competitive-intelligence datasets. For example, businesses can compare marketplace prices with brand websites, retailer catalogs, product feeds, or other authorized sources. This allows analysts to study price gaps, assortment differences, seller activity, availability, and promotional patterns across multiple channels. API-based workflows can support structured delivery into databases, dashboards, or business-intelligence platforms, while scheduled data collection can maintain historical records. When evaluating alternatives, businesses should consider coverage, update frequency, supported fields, scalability, data quality, delivery format, and compliance requirements. The right approach depends on whether the objective is product research, price monitoring, seller intelligence, competitive benchmarking, or broader marketplace analytics.

Input Options

Businesses can define flexible input options based on the type and scale of marketplace data they need. Mercado Libre Product Data Scraping can be configured using product URLs, category pages, search-result URLs, product IDs, keywords, or other relevant listing identifiers. This allows businesses to focus extraction on specific products, categories, brands, or competitive segments instead of collecting unnecessary information. For seller intelligence, Mercado Libre seller data web scraping can use seller profile URLs, seller identifiers, or marketplace listing references where publicly available. Input parameters can also include geographic market, product category, pagination limits, and specific attributes required for analysis. Clearly defined inputs improve collection efficiency and make it easier to maintain consistent datasets across recurring extraction jobs. Depending on the workflow, inputs can be submitted individually or in bulk through files, databases, or API requests. This flexibility helps retailers, brands, researchers, and e-commerce teams build targeted datasets for pricing intelligence, product monitoring, seller analysis, assortment benchmarking, and competitive marketplace research.

Sample Result of Mercado Libre Data Scraper
import csv
import json
import time
import requests
from bs4 import BeautifulSoup
from urllib.parse import urljoin

# ---------------------------------------------------------
# 1. CONFIGURATION
# ---------------------------------------------------------

PRODUCT_URLS = [
    "https://example.com/product-page-1",
    "https://example.com/product-page-2",
]

OUTPUT_CSV = "mercado_libre_products.csv"
OUTPUT_JSON = "mercado_libre_products.json"

HEADERS = {
    "User-Agent": "Mozilla/5.0 (compatible; DataResearchBot/1.0)"
}

# ---------------------------------------------------------
# 2. HELPER FUNCTION
# ---------------------------------------------------------

def clean_text(value):
    """
    Remove unnecessary whitespace and return clean text.
    """
    if not value:
        return None
    return " ".join(value.split()).strip()


def get_text(soup, selector):
    """
    Extract text from the first element matching a CSS selector.
    """
    element = soup.select_one(selector)
    if element:
        return clean_text(element.get_text(" ", strip=True))
    return None

# ---------------------------------------------------------
# 3. PRODUCT PAGE FETCHER
# ---------------------------------------------------------

def fetch_page(url):
    """
    Fetch a publicly accessible product page.
    The function intentionally does not attempt to bypass CAPTCHA,
    authentication, robots restrictions, or technical access controls.
    """
    try:
        response = requests.get(
            url,
            headers=HEADERS,
            timeout=20
        )
        response.raise_for_status()
        return response.text
    except requests.RequestException as error:
        print(f"Request failed: {url}")
        print(f"Reason: {error}")
        return None

# ---------------------------------------------------------
# 4. PRODUCT DATA PARSER
# ---------------------------------------------------------

def parse_product(html, product_url):
    """
    Parse product information from HTML.
    CSS selectors are examples and should be adjusted to the
    authorized source/API response being used.
    """
    soup = BeautifulSoup(html, "html.parser")

    product = {
        "product_url": product_url,
        "product_name": get_text(soup, "h1"),
        "price": get_text(soup, ".price"),
        "currency": get_text(soup, ".currency"),
        "discount": get_text(soup, ".discount"),
        "rating": get_text(soup, ".rating"),
        "review_count": get_text(soup, ".review-count"),
        "seller_name": get_text(soup, ".seller-name"),
        "availability": get_text(soup, ".availability"),
        "category": get_text(soup, ".category")
    }

    return product

# ---------------------------------------------------------
# 5. COLLECT PRODUCTS
# ---------------------------------------------------------

def collect_products(urls):
    """
    Process multiple product URLs.
    """
    results = []

    for index, url in enumerate(urls, start=1):
        print(f"Processing {index}/{len(urls)}")
        print(url)

        html = fetch_page(url)

        if html is None:
            continue

        product = parse_product(html, url)
        results.append(product)

        # Respectful request pacing
        time.sleep(2)

    return results

# ---------------------------------------------------------
# 6. SAVE AS CSV
# ---------------------------------------------------------

def save_csv(products, filename):
    """
    Save extracted product data into CSV.
    """
    if not products:
        print("No products available.")
        return

    fieldnames = products[0].keys()

    with open(filename, "w", newline="", encoding="utf-8") as file:
        writer = csv.DictWriter(file, fieldnames=fieldnames)
        writer.writeheader()
        writer.writerows(products)

    print(f"CSV saved: {filename}")

# ---------------------------------------------------------
# 7. SAVE AS JSON
# ---------------------------------------------------------

def save_json(products, filename):
    """
    Save extracted product data into JSON.
    """
    with open(filename, "w", encoding="utf-8") as file:
        json.dump(products, file, indent=4, ensure_ascii=False)

    print(f"JSON saved: {filename}")

# ---------------------------------------------------------
# 8. MAIN WORKFLOW
# ---------------------------------------------------------

def main():
    products = collect_products(PRODUCT_URLS)

    if not products:
        print("No product data collected.")
        return

    save_csv(products, OUTPUT_CSV)
    save_json(products, OUTPUT_JSON)

    print("\nSample extracted records:")

    for product in products:
        print(json.dumps(product, indent=4, ensure_ascii=False))


if __name__ == "__main__":
    main()
Integrations with Mercado Libre Scraper – Mercado Libre Data Extraction

Integrating marketplace extraction workflows with business systems helps teams move collected product information directly into analytics and reporting environments. A Mercado Libre price data API can support automated data flows for product prices, discounts, availability, seller information, and other permitted marketplace attributes. These integrations can connect extracted records with databases, data warehouses, business intelligence platforms, CRM systems, or internal analytics applications. Structured E-Commerce Datasets can then be standardized and enriched before being used for competitive pricing analysis, assortment monitoring, seller research, and market intelligence. API-based delivery also makes it easier to schedule recurring collection, maintain historical records, and monitor changes across products and categories. Depending on business requirements, data can be delivered through JSON, CSV, database tables, cloud storage, or API endpoints. This integration-focused approach reduces manual data handling and creates a repeatable pipeline for turning marketplace information into analytics-ready business data.

Executing Mercado Libre Data Scraping with Real Data API

Executing marketplace data collection through a structured API workflow enables businesses to gather product information consistently without relying on manual research. A mercado libre scraper can be configured to process authorized product URLs, search inputs, categories, or listing identifiers and return structured information for analysis. With E-Commerce Data Scraping, businesses can organize fields such as product names, prices, discounts, seller details, availability, ratings, reviews, categories, and product URLs into standardized datasets. Real Data API can support automated workflows where inputs are submitted through an API request and results are returned in formats suitable for downstream processing. The extracted records can then be connected with databases, spreadsheets, dashboards, or business intelligence systems. Recurring execution also helps maintain historical snapshots for monitoring price changes, assortment updates, seller activity, and product availability. This approach creates a scalable data pipeline for retailers, brands, researchers, and e-commerce teams seeking structured marketplace intelligence.

You should have a Real Data API account to execute the program examples. Replace in the program using the token of your actor. Read about the live APIs with Real Data API docs for more explanation.

import { RealdataAPIClient } from 'RealDataAPI-client';

// Initialize the RealdataAPIClient with API token
const client = new RealdataAPIClient({
    token: '',
});

// Prepare actor input
const input = {
    "productUrls": [
        {
            "url": "https://www.mercadolibre.com/product-example"
        }
    ],
    "maxItems": 100,
    "proxyConfiguration": {
        "useRealDataAPIProxy": true
    }
};

(async () => {
    // Run the actor and wait for it to finish
    const run = await client.actor("realdataapi/mercado-libre-scraper").call(input);

    // Fetch and print actor results from the run's dataset (if any)
    console.log('Results from dataset');
    const { items } = await client.dataset(run.defaultDatasetId).listItems();
    items.forEach((item) => {
        console.dir(item);
    });
})();
from realdataapi_client import RealdataAPIClient

# Initialize the RealdataAPIClient with your API token
client = RealdataAPIClient("")

# Prepare the actor input
run_input = {
    "productUrls": [{ "url": "https://www.mercadolibre.com/product-example" }],
    "maxItems": 100,
    "proxyConfiguration": { "useRealDataAPIProxy": True },
}

# Run the actor and wait for it to finish
run = client.actor("realdataapi/mercado-libre-scraper").call(run_input=run_input)

# Fetch and print actor results from the run's dataset (if there are any)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
# Set API token
API_TOKEN=<YOUR_API_TOKEN>

# Prepare actor input
cat > input.json <<'EOF'
{
  "productUrls": [
    {
      "url": "https://www.mercadolibre.com/product-example"
    }
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useRealDataAPIProxy": true
  }
}
EOF

# Run the actor
curl "https://api.realdataapi.com/v2/acts/realdataapi~mercado-libre-scraper/runs?token=$API_TOKEN" \
  -X POST \
  -d @input.json \
  -H 'Content-Type: application/json'

Place the Mercado Libre product URLs

productUrls Required Array

Put one or more URLs of products from Mercado Libre you wish to extract.

Max items

maxItems Optional Integer

Put the maximum count of products to scrape. If you want to scrape all products, keep them blank.

Link selector

linkSelector Optional String

A CSS selector saying which links on the page (< a> elements with href attribute) shall be followed and added to the request queue. To filter the links added to the queue, use the Pseudo-URLs and/or Glob patterns setting. If Link selector is empty, the page links are ignored. For details, see Link selector in README.

Mention personal data

includeGdprSensitive Optional Array

Personal information like name, ID, or profile pic that GDPR of European countries and other worldwide regulations protect. You must not extract personal information without legal reason.

Detailed information

detailedInformation Optional Boolean

Choose whether to extract detailed product information including descriptions, variants, and additional attributes.

Options:

true,false

Proxy configuration

proxyConfiguration Required Object

You can fix proxy groups from certain countries. Mercado Libre displays products to deliver to your location based on your proxy. No need to worry if you find globally shipped products sufficient.

Extended output function

extendedOutputFunction Optional String

Enter the function that receives the JQuery handle as the argument and reflects the customized scraped data. You'll get this merged data as a default result.

{
  "productUrls": [
    {
      "url": "https://www.mercadolibre.com/product-example"
    }
  ],
  "maxItems": 100,
  "detailedInformation": false,
  "useCaptchaSolver": false,
  "proxyConfiguration": {
    "useRealDataAPIProxy": true
  }
}
INQUIRE NOW