Mercado Libre APImercadolibre.com.mx ↗
Access Mercado Libre Mexico product listings, pricing, categories, deals, and seller profiles via 6 structured API endpoints.
What is the Mercado Libre API?
This API exposes 6 endpoints covering Mercado Libre Mexico's product catalog, category hierarchy, daily deals, and seller profiles. Use get_product_detail to retrieve a product's title, pricing, images, and availability by item ID, or get_offers to pull paginated daily promotions with discount percentages and brand data. All responses are structured JSON ready for price tracking, catalog research, or competitive analysis.
curl -X GET 'https://api.parse.bot/scraper/806a3b41-a814-49f2-9e7e-754a9a017499/search_products?query=laptop' \ -H 'X-API-Key: $PARSE_API_KEY'
Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace mercadolibre-com-mx-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
"""Walkthrough: Mercado Libre Mexico SDK — browse categories, deals, and listings."""
from parse_apis.Mercado_Libre_Mexico_API import MercadoLibre, NotFoundError
client = MercadoLibre()
# List all product categories organized by department
for category in client.categories.list(limit=5):
print(category.name, category.department, category.id)
# Browse current daily deals with pricing and discounts
for offer in client.offers.list(limit=3):
print(offer.title, offer.price, offer.discount)
# Pick one category and list products in it
cat = client.categories.list(limit=1).first()
if cat:
try:
for listing in client.listings.list_by_category(category_url=cat.url, limit=5):
print(listing.title, listing.price, listing.brand)
except NotFoundError as exc:
print(f"Category unavailable: {exc}")
print("exercised: categories.list / offers.list / listings.list_by_category")
Search for products on Mercado Libre Mexico. Note: Direct search may be blocked by account verification challenges; consider using category listings or offers as an alternative.
| Param | Type | Description |
|---|---|---|
| queryrequired | string | Search keyword |
{
"type": "object",
"fields": {
"url": "string",
"items": "array",
"query": "string"
},
"sample": {
"items": [
{
"id": "MLM12345",
"url": "https://...",
"price": 1500,
"title": "Product Title",
"currency": "MXN",
"thumbnail": "https://..."
}
],
"query": "laptop"
}
}About the Mercado Libre API
Product Search and Detail
search_products accepts a query string and returns matching item URLs, a results array, and the echoed query. Note that direct keyword searches may encounter account verification challenges on the source site; get_category_listings or get_offers are more reliable alternatives. get_product_detail accepts a product item_id (with or without the MLM prefix) and returns the item's id, title, and a components array that carries structured pricing, description, images, seller context, and availability data.
Categories and Listings
get_categories requires no parameters and returns a full categories array organized by department. Each object includes id, name, url, department, and an optional children array for subcategory depth. get_category_listings takes a category_url — ideally in the https://www.mercadolibre.com.mx/c/ format returned by get_categories — and returns a title string plus an items array. Each item carries title, url, id, price, original_price, discount, brand, image, and rating.
Deals and Seller Data
get_offers retrieves the current daily deals and promotions page with the same rich item fields as category listings. It supports a page integer parameter for pagination, and its paging response object includes page, items_on_page, and has_next so callers can walk through all available promotions programmatically. get_seller_info accepts a seller nickname or ID (obtainable from product detail responses) and returns the seller's name, seller_id, and reputation score.
The Mercado Libre API is a managed, monitored endpoint for mercadolibre.com.mx — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when mercadolibre.com.mx changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official mercadolibre.com.mx API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Track price drops and discount percentages across daily deals using
get_offerspagination - Build a category browser app using the hierarchical department and subcategory data from
get_categories - Monitor competitor product pricing by polling
get_product_detailwith known item IDs - Aggregate seller reputation scores from
get_seller_infoto vet third-party vendors before purchase decisions - Collect brand and rating fields from
get_category_listingsto analyze market share within a product segment - Identify trending products by comparing
original_pricevspricediscounts across category listing pages
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does Mercado Libre have an official developer API?+
What does `get_product_detail` actually return beyond title and price?+
id, title, and a components array. The components array contains structured blocks that include pricing, product description, images, seller context, and availability — the same data visible on a standard product page. The exact structure of each component object depends on the product type.Can `search_products` reliably return results for any keyword?+
get_category_listings with a URL from get_categories or get_offers for deal pages are more consistent alternatives.Does the API return customer reviews or question-and-answer threads?+
How does pagination work for `get_offers`?+
page parameter starting at 1. Each response includes a paging object with page (current page number), items_on_page (count of items in the current response), and has_next (boolean indicating whether another page exists). Increment page and check has_next to walk the full offers list.