Overview

Mercado Libre provides a comprehensive e-commerce platform and a set of APIs enabling programmatic interaction with its various services. Founded in 1999, Mercado Libre operates as a marketplace across numerous Latin American countries, facilitating online commerce for millions of users. Its ecosystem extends beyond a simple marketplace to include integrated payment solutions (Mercado Pago), logistics and shipping services (Mercado Envíos), and advertising tools (Mercado Ads), all accessible via developer APIs.

The platform is primarily designed for businesses and individual sellers looking to reach consumers in Latin America. Developers can integrate with Mercado Libre to automate product listings, manage inventory, process orders, handle payments, and coordinate shipping. This allows for the creation of custom applications, synchronization with existing ERP systems, or building specialized tools that leverage Mercado Libre's extensive user base and infrastructure. The API documentation, available on the Mercado Libre developer portal, provides resources for developers to understand and implement these integrations.

Mercado Libre's APIs are particularly beneficial for companies aiming to streamline their cross-border e-commerce operations within Latin America. By offering localized payment methods through Mercado Pago and integrated shipping solutions, it addresses common challenges associated with international trade in the region. The platform’s robust infrastructure supports a high volume of transactions and user interactions, making it suitable for both small businesses and large enterprises. The developer experience is supported by SDKs for popular languages like Python, PHP, and Node.js, alongside a sandbox environment for testing integrations before deployment.

While similar to global e-commerce platforms such as eBay in its marketplace model, Mercado Libre's core strength lies in its deep penetration and specialization in the Latin American market. This regional focus includes adapting to local consumer preferences, regulatory environments, and logistical complexities, offering a tailored solution for businesses targeting this specific geographical area. The availability of diverse APIs allows for granular control over various aspects of the selling process, from product catalog management to post-sale customer service, making it a central component for digital commerce strategies in the region.

Key features

  • Marketplace API: Facilitates listing products, managing inventory, processing orders, and interacting with buyers on the Mercado Libre platform.
  • Mercado Pago API: Enables integration with Mercado Libre's payment gateway to accept various local and international payment methods, manage refunds, and handle payment disputes.
  • Mercado Envíos API: Provides tools for managing shipping labels, tracking packages, and configuring logistics options for products sold through the marketplace.
  • Mercado Ads API: Allows programmatic creation and management of advertising campaigns within the Mercado Libre marketplace to promote products and increase visibility.
  • User and Authentication API: Manages user accounts, authentication flows (OAuth 2.0), and permissions for applications integrating with Mercado Libre services.
  • Notifications API: Provides real-time updates on events such as new orders, payment status changes, or product questions, enabling reactive application behavior.
  • Developer Sandbox: Offers a testing environment to simulate API calls and test integrations without affecting live production data.

Pricing

Mercado Libre's pricing model is primarily based on commissions charged per sale, which vary depending on the product category, seller reputation, and the type of listing (e.g., classic vs. premium). There is no upfront fee for listing products, but a percentage of the final sale price is typically applied. Additional costs may be associated with advertising services (Mercado Ads) or specialized logistics options (Mercado Envíos) beyond standard offerings.

Service Type Pricing Model Approximate Commission Range (as of 2026-05-28) Notes
Product Listings & Sales Commission per sale 10% - 16% of sale price Varies by product category and listing type. See Mercado Libre's pricing page for details.
Mercado Pago (Payment Processing) Transaction fees Varies by payment method and country Often integrated into the marketplace commission structure or separate for direct payment integrations.
Mercado Envíos (Logistics) Per-shipment fee or subsidized rates Varies by package size, destination, and service level Costs may be partially covered by the seller or passed to the buyer, depending on seller agreements.
Mercado Ads (Advertising) Pay-per-click (PPC) or impression-based Configurable budget Optional service for promoting products within the marketplace.

Common integrations

  • E-commerce Platforms: Connects with platforms like Shopify or Magento via custom integrations to synchronize product catalogs and orders.
  • ERP Systems: Integrates with Enterprise Resource Planning software for automated inventory management, order fulfillment, and financial reporting.
  • CRM Systems: Links with Customer Relationship Management tools to manage buyer communications and post-sale support.
  • Payment Gateways: Utilizes Mercado Pago as a primary payment solution, but can be integrated with other payment providers for specific use cases.
  • Logistics and Shipping Providers: Leverages Mercado Envíos or integrates with third-party carriers for expanded shipping options.
  • Business Intelligence Tools: Exports sales and performance data for analysis in BI platforms.

Alternatives

  • Amazon: A global e-commerce and cloud computing giant with a vast marketplace and fulfillment network.
  • eBay: An international online marketplace known for auctions and consumer-to-consumer sales.
  • Shopify: A leading e-commerce platform that allows businesses to create their own online stores.

Getting started

To begin integrating with Mercado Libre, developers typically start by obtaining an application ID and secret from the Mercado Libre developer site. The following Python example demonstrates how to perform a basic API call to retrieve user information using an authenticated token. This requires an OAuth 2.0 flow to obtain the access token, which is then used in subsequent API requests. The Mercado Libre Python SDK simplifies this process.

import mercadolibre

# Replace with your actual client_id and client_secret
CLIENT_ID = "YOUR_CLIENT_ID"
CLIENT_SECRET = "YOUR_CLIENT_SECRET"
REDIRECT_URI = "YOUR_REDIRECT_URI"

# Initialize the SDK client
meli = mercadolibre.Api(client_id=CLIENT_ID, client_secret=CLIENT_SECRET, redirect_uri=REDIRECT_URI)

# --- OAuth 2.0 Flow (simplified for example) ---
# In a real application, you would redirect the user to meli.get_auth_url()
# and then handle the callback to get the authorization code.
# For this example, let's assume you already have an access token and refresh token.

ACCESS_TOKEN = "YOUR_OBTAINED_ACCESS_TOKEN"
REFRESH_TOKEN = "YOUR_OBTAINED_REFRESH_TOKEN"

meli.set_access_token(ACCESS_TOKEN)
meli.set_refresh_token(REFRESH_TOKEN)

# Example: Fetch information about the authenticated user
try:
    user_info = meli.get('/users/me')
    print("Authenticated User Info:")
    print(f"ID: {user_info['id']}")
    print(f"Nickname: {user_info['nickname']}")
    print(f"First Name: {user_info['first_name']}")
    print(f"Last Name: {user_info['last_name']}")
except Exception as e:
    print(f"Error fetching user info: {e}")

# Example: List categories (no authentication required for public endpoints)
try:
    categories = meli.get('/sites/MLA/categories') # MLA is the site ID for Argentina
    print("\nFirst 5 Categories for Argentina:")
    for i, category in enumerate(categories[:5]):
        print(f"- {category['name']} (ID: {category['id']})")
except Exception as e:
    print(f"Error fetching categories: {e}")