Mercado Libre Scraper: Products & Prices (LATAM)

Live-tested Mercado Libre scraper results - the login wall on every page but the homepage, what still works anonymously, and the API route that does.

MMotherlode Lab10 min read
Magpie title card: Mercado Libre Scraper: Products & Prices (LATAM)

Mercado Libre runs Latin America’s largest e-commerce operation: 18 country sites, one platform, and a scraping story that most tutorials describe wrong. I ran a Mercado Libre scraper against it on 2026-10-29 from a home connection and hit a wall those tutorials never mention. The homepage loads fine. Every other page I tried, in four countries, redirected to a sign-in screen.

This guide maps what actually happens: the robots.txt posture, the login wall, the two routes that can still get you product and price data, and where Magpie fits. Sites change, so re-test before you build on any of it.

All commands use Magpie, a local CLI scraper (free, AGPL/commercial dual license). The honest fit line comes first: no polite scraper, Magpie included, can pull Mercado Libre product pages anonymously from outside Latin America right now. What a scraper can still do, and the fixes that work, are below.

First, the geography

Mercado Libre operates one storefront per country, and the domain spelling shifts with the language: mercadolibre.com.mx (Mexico), mercadolibre.com.ar (Argentina), mercadolibre.cl (Chile), mercadolibre.com.co (Colombia), and mercadolivre.com.br for Brazil, where the brand takes its Portuguese spelling. Eighteen countries in total, from Mexico down to Uruguay, each with its own catalog and product IDs. The ID prefixes sit right in the URLs: MLM for Mexico, MLB for Brazil, MLA for Argentina.

Pick your market’s domain before you write any code. The catalogs don’t overlap, a Mexican item ID means nothing on the Brazilian site, and each domain runs its own robots.txt and its own wall.

robots.txt bans the AI crawlers, not you

The robots.txt of www.mercadolibre.com.mx is 100 lines and 13 user-agent groups. The first group sets the tone for the whole file:

User-agent: Amazonbot
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: ClaudeBot
User-agent: Claude-User
User-agent: GPTBot
User-agent: ChatGPT-User
Disallow: /

GPTBot, ClaudeBot, PerplexityBot, and Amazonbot are banned by name. That tells you Mercado Libre reads its robots.txt as policy, not decoration, and that AI training crawlers are the adversary it cares about. Social preview bots (Twitterbot, LinkedInBot, FacebookExternalHit) get an explicit Allow, and Bingbot gets its own group with a 5-second Crawl-delay.

The User-agent: * group looks almost friendly. It disallows around 40 paths: the cart and checkout flow (/gz/cart/, /gz/checkout/), user profiles (/perfil/vendedor/, /perfil/comprador/), recommendations, and anything matching /*itemid. Product pages and search pages are not on the list. No Crawl-delay applies. On paper, a general-purpose crawler may fetch the whole storefront.

Paper is where that permission lives. There is no Sitemap line in robots.txt, and /sitemap.xml returns 404 on both the Mexican and Brazilian domains, so there’s no URL-discovery door either. What actually enforces Mercado Libre’s rules is not the disallow list. It’s the next section.

The wall: every page but the homepage asks you to sign in

I tested eight page types across three countries on 2026-10-29. The pattern never varied.

Page Result
www.mercadolibre.com.mx/ 200, loads (513 KB)
listado.mercadolibre.com.mx/iphone-15 (search) redirect → sign-in wall
www.mercadolibre.com.mx/jm/search?as_word=iphone redirect → search → sign-in wall
www.mercadolibre.com.mx/c/electrodomesticos (category) redirect → sign-in wall
www.mercadolibre.com.mx/ofertas (deals) redirect → sign-in wall
articulo.mercadolibre.com.mx/MLM-1503222944-... (item) redirect → sign-in wall
produto.mercadolivre.com.br/MLB-... (item, Brazil) redirect → sign-in wall
articulo.mercadolibre.com.ar/MLA-... (item, Argentina) redirect → sign-in wall

The redirect lands on a URL like www.mercadolibre.com.mx/gz/account-verification?go=<your original URL>&tid=<trace id>. The page is a 26 KB app shell with one message: “¡Hola! Para continuar, ingresa a tu cuenta” (“Hi! To continue, sign in to your account”), and two buttons, one to register and one to log in. No CAPTCHA. No fingerprint quiz, no retry-until-you-pass minigame. Just a door that needs an account.

I tried to walk past it five ways, and none changed the outcome:

  • curl with a full browser header set
  • Magpie’s plain static fetch
  • Magpie with --header-profile chrome, which impersonates Chrome’s TLS fingerprint
  • Visiting the homepage first and reusing its cookies
  • Magpie with --render browser, a real headless Chromium

This is not rate limiting. The wall fired on the first touch of each URL, with minutes between requests, and it behaved identically in Mexico, Brazil, and Argentina. It is account-gating of anonymous traffic, and it makes Mercadolibre the most aggressive login wall I’ve hit in this series. Lazada still serves product JSON-LD to a static fetch and only gates the prices; Mercado Libre gates the pages.

Can a Latin American IP see more? Probably, but I can’t verify that from this box, which sits on a European residential connection. Nothing on the wall page says “wrong country”. What I can verify is the tutorials: at least one still in Google’s results claims “MercadoLibre does not block a request from a scraper.” Tested. False, as of 2026-10-29, from here.

Magpie’s behavior on these pages is worth a line. Each walled fetch returns a typed error, quality blocked (empty) with exit code 8, instead of serving the 26 KB login shell as if it were data. In an agent pipeline, that difference matters: the tool refuses the page, and your code moves to the API route instead of parsing a door.

What an anonymous Mercado Libre scraper still gets: the homepage

The homepage is the one page that opens. One static GET returns 513 KB of HTML, which Magpie cleans to 407 words of banner text and category navigation, plus a structured-data sidecar with two JSON-LD blocks. The Brazilian homepage behaves the same way (494 words cleaned).

The first block is the site identity, and it includes something useful, the site’s own search endpoint:

{
  "@type": "WebSite",
  "potentialAction": {
    "target": "https://www.mercadolibre.com.mx/jm/search?as_word={search_term_string}",
    "@type": "SearchAction",
    "query-input": "required name=search_term_string"
  }
}

The second is an OnlineStore block: name, alternate name, logo, and sameAs links to the official X, Facebook, Instagram, and YouTube accounts. The HTML also carries 46 category links (/c/electrodomesticos, and so on), the full first-level taxonomy in one fetch. What it does not carry is a single product link. The deals carousel renders in JavaScript, and the raw HTML holds only its images.

magpie scrape "https://www.mercadolibre.com.mx/" --page-format markdown

The JSON envelope comes back with url, final_url, title, markdown, and structured_data (the two blocks above). For market research on category structure or brand identity, that’s a real payload. For products and prices, it’s nothing, and this article’s title promised prices, so let’s get them properly.

Route 1: the official API, which is the actual answer

Mercado Libre has run a public developer platform for years: register an application at developers.mercadolibre.com (each country has its own portal), authenticate with OAuth 2.0, and call api.mercadolibre.com with a Bearer token in the header. The token format from their own docs looks like APP_USR-12345678-031820-X-12345678, and the two endpoints you’d use for price monitoring are /sites/{siteId}/search for listing results and /items/{itemId} for one product.

I verified what happens without a token, because that’s the question most scraper-first readers will ask first:

GET https://api.mercadolibre.com/items/MLM1503222944
→ 403
{"blocked_by":"PolicyAgent","code":"PA_UNAUTHORIZED_RESULT_FROM_POLICIES",
 "message":"At least one policy returned UNAUTHORIZED.","status":403}

GET https://api.mercadolibre.com/sites/MLM/search?q=iphone
→ 403
{"message":"forbidden","error":"forbidden","status":403}

The keyless API is dead. That’s a change from the endpoint’s early years, when single-item GETs answered without credentials, and it’s the same story as the storefront: anonymous access to Mercado Libre data ended, formally and informally. Reddit threads from Mercado Libre developers report the same 403s.

Once you have a token, though, the API returns clean JSON, and Magpie is a fine fetch layer for it. Raw request headers pass straight through:

magpie scrape "https://api.mercadolibre.com/sites/MLM/search?q=iphone" \
  --header "Authorization: Bearer APP_USR-your-token-here" \
  --page-format raw

--page-format raw returns the response body untouched, so the JSON you parse is byte-exact from the API. Full disclosure: I could not test that call end to end, because I don’t hold a Mercado Libre credential on this box. The header mechanism is verified on other endpoints; the token you’d have to bring yourself, through your country’s developer portal. Registration requirements and any costs for app keys: I could not verify those either, since the developer docs sit behind the same regional gating. The Reddit threads in the developer communities suggest the policy engine got stricter for everyone, which matches the 403 bodies above.

Route 2: a LATAM residential proxy

If the API doesn’t fit your project, the storefront wall keys on anonymous traffic, and the classic fix for a geo-gate is an exit IP inside the region: a LATAM residential or mobile proxy. I don’t have one on this box, so this route is the known fix, not the verified one. Treat it as a hypothesis with a test plan, not a result.

The test plan is one request. Rent a single LATAM residential IP, fetch one item URL with curl, and check whether you get the product page or the sign-in wall. If the product page opens, Magpie’s plumbing is ready for it: --proxy-file feeds a proxy pool with failover and cooldown, and --browser chrome pins the TLS fingerprint to a real browser’s. Then check what the page actually carries before writing selectors:

magpie scrape "https://articulo.mercadolibre.com.mx/MLM-<id>..." \
  --proxy-file latam-proxies.txt --page-format raw | grep -c 'ld+json'

If JSON-LD is in the HTML, your data problem shrinks to parsing one script tag. If it isn’t, you’re into DOM selectors, and you should budget for them breaking on redesigns. The third-party route sells exactly this access as a service: Oxylabs, ScrapingBee, and several Apify actors offer managed Mercado Libre endpoints, one of which advertises 1,000 free credits, no card required. You’re paying per request for someone else’s proxy network and parser maintenance, which is rational exactly as long as your time costs more.

A note on logged-in scraping

The wall makes the platform’s position explicit: seeing product data now requires an account, and scraping through an account violates Mercado Libre’s terms. That’s a contract risk, not a legal one in the copyright sense, but it means any business built on logged-in scraping runs at the platform’s mercy. The legality of web scraping is its own subject; my operational line is simpler. Use the API. It exists, it’s the access Mercado Libre chose to grant, and it doesn’t put an account you care about in the blast radius.

FAQ

Is scraping Mercado Libre legal? Public data fetched without an account sits in the same place as most scraping law: no US court has banned it, and the CFAA claims over public-page scraping failed in the hiQ v. LinkedIn litigation. But Mercado Libre’s terms govern logged-in access, and the wall now sits in front of every product page an outside visitor wants. This is information, not legal advice.

Why does Mercado Libre block my scraper? Since at least 2026-10-29, anonymous requests from outside Latin America hit a redirect to an account-verification page on every page except the homepage. It’s account gating, not rate limiting: it fires on the first request and survives TLS impersonation, cookies, and a real browser.

Does the Mercado Libre API cost money? Registration happens per country at developers.mercadolibre.com, and the docs don’t state pricing openly; I couldn’t verify costs from here. What I verified is the keyless path returns 403 PolicyAgent errors, so a registered app with an OAuth token is now the only way in.

Can I use proxies to scrape Mercado Libre? A LATAM residential proxy is the known fix for the geo wall, but I couldn’t test it from this box. If you try, start with one item URL, keep volumes low, and respect the robots.txt rules you’re implicitly working around. Vendor scraper APIs bundle the same access for a per-request price.

What is the best Mercado Libre scraper? There is no anonymous Mercado Libre scraper that works from outside the region right now, whatever the tutorials claim. The realistic ranking: official API with a token first, one rented LATAM proxy plus a polite static scraper second, a managed vendor API third if you’d rather pay than maintain either.

Where to start

Register the app at your country’s developers portal and pull /sites/MLM/search with a token before you write a line of scraping code. If the API’s data shape doesn’t fit, rent one LATAM residential IP and test a single item page before committing to a pool. And if Magpie’s on your machine, give it the two jobs it does today: the homepage fetch for taxonomy and JSON-LD identity, and the API call with --header for everything the wall hides. The full marketplace fight is documented on the US side in how to scrape Amazon product data; Lazada’s split verdict is the closest cousin, and the scrapers for popular websites hub indexes the whole series. For the robots.txt reasoning behind walls like this one, see robots.txt and web scraping.

Stop renting credits.

One flat price, your machine, your keys.

Download free for Windows, macOS and Linux

Windows · macOS · Linux $49/mo flat, cancel anytime