---
title: "How to Collect Mexico Marketplace Data: Methods and Pitfalls"
description: "Collect Mexico marketplace data from official APIs first, otherwise with a Mexican IP and a fixed postal code. Peso vs dollar, installments, duplicate listings."
url: https://proxynet.io/blog/mexico-marketplace-data
date: 2026-12-03
author: "Acar Diveroli"
category: "Use Cases"
lang: en
---

# How to Collect Mexico Marketplace Data: Methods and Pitfalls

Mexico marketplace data is the price, stock and seller information on sites such as Mercado Libre México and Amazon.com.mx. On these sites a peso price is written with a bare `$` sign. Delivery time and shipping cost are calculated from the five-digit postal code. The trap is the currency: the same site also carries listings priced in dollars, and a parser that only looks at the sign mixes the two. This article covers the official APIs, the peso format, installment display, the postal code and common data errors.

> **Note: Short answer**
>
> Check the official Mercado Libre and Amazon APIs first. If you read pages, read them with a Mexican IP, the `es-MX` language and a fixed postal code. Store the price with its currency code (MXN, USD), not its sign, and keep the installment amount apart from the price.

## Official APIs

Mercado Libre and Amazon both offer developer APIs. They are the first stop for data collection. In the Mercado Libre API the Mexican site's ID is `MLM`. Listing numbers start with the same prefix (`MLM` plus digits). Requests carry an access token, obtained by registering an application, in the `Authorization: Bearer` header.

Endpoints that work without a token are getting fewer. In our test (2026-12-03) the site definition `/sites/MLM` opened without a token. The search endpoint `/sites/MLM/search` returned `403 forbidden` to a request without one.

```bash
curl -s https://api.mercadolibre.com/sites/MLM
```

The relevant part of the response shows that the site accepts two currencies:

```json
"default_currency_id": "MXN",
"currencies": [{"id": "MXN", "symbol": "$"}, {"id": "USD", "symbol": "US$"}]
```

Amazon's Selling Partner API (SP-API) requires a seller account and a registered developer. The Mexican store's ID is `A1AM78C64UM0Y8`. It goes into requests as the `marketplaceId` parameter. Products are identified by their ASIN.

| Source | Who uses it | What it gives |
|---|---|---|
| Mercado Libre API | Registered application | Listing, price, currency, seller ID |
| Amazon SP-API | Seller and registered developer | Offers and prices per ASIN |
| Product page | Anyone | Price and delivery as shown on screen |

With retailers such as Liverpool, Coppel or Walmart México, first ask whether a seller portal or product feed exists. Move to reading pages only if neither does. Then follow the site's terms and its robots.txt file.

## Mexican Spanish search terms

The word typed into the search box decides which listings come back. In Mexico, everyday product names differ from Spain's Spanish. A search with the Spanish-from-Spain word may return fewer or different listings.

| Product | Mexico | Spain |
|---|---|---|
| Cell phone | celular | móvil |
| Computer | computadora | ordenador |
| Headphones | `audífonos` | `auriculares` |
| T-shirt | playera | camiseta |
| Glasses | lentes | gafas |
| Jacket | chamarra | chaqueta |

Build the word list from the site itself, not from a dictionary. The category names in the `/sites/MLM` response (`Celulares y Telefonía`, `Computación`) are the terms used in Mexico. Send the `Accept-Language: es-MX` header with each request. On sites that pick a language, the interface text follows this header.

## Peso format and dollar mix-ups

The Mexican peso (MXN) is also written with the `$` sign. The thousands separator is a comma and the decimal separator a period: `$1,299.50`. Listings priced in dollars carry a `US$` or `USD` prefix. When the page opens in English, the peso may also show as `MX$`.

In our test, Node 24's `Intl.NumberFormat` wrote the same amount like this, by language and currency:

| Language and currency | Output |
|---|---|
| `es-MX`, MXN | `$1,299.50` |
| `es-MX`, USD | `USD 1,299.50` |
| `en-US`, MXN | `MX$1,299.50` |
| `es-AR`, ARS | `$ 1.299,50` |

The last row is the trap for a shared parser. The Argentine peso also uses the `$` sign, but swaps the separators. If you read several Latin American countries with one codebase, choose the format per site.

The rule is simple: store the price by code, not by sign. The API gives the `currency_id` field, and the page's JSON-LD gives `priceCurrency`. If neither exists, the function below reads the visible text. It does not guess at a format it does not recognize; it returns `None`.

```python
import re
from decimal import Decimal

PRICE = re.compile(
    r"(?P<prefix>US\$|MX\$|USD|MXN|\$)\s?"
    r"(?P<amount>\d{1,3}(?:,\d{3})+(?:\.\d{1,2})?|\d+(?:\.\d{1,2})?)"
    r"(?![\d,.])\s?(?P<suffix>MXN|USD)?"
)
INSTALLMENT = re.compile(r"\b(meses|mensualidades|quincenas)\b", re.I)

def parse_price(text, default="MXN"):
    """Return the price text as (amount, currency, is_installment)."""
    m = PRICE.search(text)
    if not m:
        return None  # format not recognized, do not guess
    sign = m["suffix"] or m["prefix"]
    if sign in ("US$", "USD"):
        currency = "USD"
    elif sign in ("MX$", "MXN"):
        currency = "MXN"
    else:
        currency = default  # bare "$": the site's currency
    amount = Decimal(m["amount"].replace(",", ""))
    return amount, currency, bool(INSTALLMENT.search(text))
```

The function's output on seven samples:

```text
'$1,299.00'                          -> (Decimal('1299.00'), 'MXN', False)
'US$ 45.99'                          -> (Decimal('45.99'), 'USD', False)
'$899 MXN'                           -> (Decimal('899'), 'MXN', False)
'12 meses sin intereses de $108.25'  -> (Decimal('108.25'), 'MXN', True)
'MX$1,299.50'                        -> (Decimal('1299.50'), 'MXN', False)
'USD 1,299.50'                       -> (Decimal('1299.50'), 'USD', False)
'$ 1.299,50'                         -> None
```

For a bare `$`, the `default` value is the site's currency. Do not guess it; take it from the API or the site definition.

## `Meses sin intereses` display

`Meses sin intereses` (MSI) means interest-free monthly installments. In Mexico, product cards add a line such as `12 meses sin intereses de $108.25` under the price. This line also carries an amount with a `$` sign. A script that takes the first or the smallest amount stores the installment as the price.

A card often shows three amounts side by side: the struck-through old price, the current price and the installment amount. The Mercado Libre API returns them in separate fields. `price` is the current price, `original_price` the price before the discount. In search results, each listing carries its installment details in a separate `installments` object.

If you read pages, build the same split yourself:

| Field | Sample text | Storage |
|---|---|---|
| Current price | `$1,299` | `price`, `MXN` |
| Old price | struck-through `$1,599` | `old_price` |
| Installment | `12 meses sin intereses de $108.25` | `installment_count`, `installment_amount` |
| Card promotion | price for a specific bank card | separate field, never mixed with price |

The function above flags the installment line with its third value. Do not write a line whose third value is `True` into the price column.

## Mexican IP and postal code

A site reads the visitor's country from the IP address and the delivery area from the postal code. A request from abroad may see a different delivery message, different stock or a country picker. The `mercadolibre.com` address asks you to choose a country. For Mexican data, open `mercadolibre.com.mx` directly.

To send the request from a home connection in Mexico, use [Residential Proxy](https://proxynet.io/residential-proxy). The target site sees the request as coming from a residential line in Mexico.

Country and city are chosen in the proxy address; the only thing that changes in the code is the address. We explained how the gateway handles this choice in [How Country and City Targeting Works](/blog/geo-targeting-proxy-explained).

```python
import requests

PROXY = "http://user:pass@pr.proxynet.io:8000"  # Mexico location selected

session = requests.Session()
session.proxies = {"http": PROXY, "https": PROXY}
session.headers["Accept-Language"] = "es-MX,es;q=0.9"
```

In Mexico the postal code (`código postal`) has five digits. Mercado Libre and Amazon.com.mx ask for it on the product page. Once it is entered, the estimated delivery date, the shipping cost and sometimes the stock change. Without it, these fields stay empty or show generic text.

The site usually keeps the postal code in a cookie. The same cookie, the same postal code and the same IP must stay together for the whole measurement. Read one product's pages with a fixed-IP session. [Sticky Proxy](https://proxynet.io/sticky-proxy) keeps the session on the same exit IP for 1-60 minutes.

Pick one postal code for every city you track and do not change it. Store the code and the exit IP's city with every row. If shipping cost varies from city to city, only those two columns explain the difference. The cities available in Mexico are on the [Mexico proxy](/locations/mexico) page.

## Duplicate listings and seller names

On Mercado Libre the same product appears as listings from several sellers. The site may group these listings under one catalog product. On the product page, the other sellers' offers appear in a separate list. A table that merges by title counts the same product several times.

On the seller side, the trap is the nickname. The API identifies a seller by both a numeric `seller_id` and a nickname. The nickname can change; the numeric ID does not. On Amazon, too, the seller ID is stable, not the seller's name.

| Problem | Symptom | Fix |
|---|---|---|
| Mixed currencies | A few prices stray far from the average | Keep the code (`MXN`, `USD`) in its own column |
| Duplicate listings | The same product on several rows | Merge by listing number and catalog ID |
| Seller name change | Seller count rises for no reason | Key by `seller_id` |
| Title change | The price history series breaks | Key by the `MLM` number or ASIN, not the title |

Use the same key for stock. We covered reading stock per variant in [How to Monitor Product Stock](/blog/marketplace-stock-monitoring).

## Troubleshooting

If the data looks odd, the cause is usually one of these five:

- **The price column holds small, round amounts.** The installment line was read as the price. Separate the lines that contain "meses".
- **A few prices stray far from the average.** A dollar listing was counted as pesos. Check the `currency_id` or `priceCurrency` field.
- **The delivery date is empty.** No postal code was entered, or the session was renewed midway. Keep the cookie and the IP in the same session.
- **The page shows a country picker or English text.** The request does not leave from a Mexican IP, or the language header is missing. Check the exit IP and the `Accept-Language` value.
- **The API returns `403`.** The request carries no access token. Add the `Authorization: Bearer` header.

## How we tested

We ran the tests on 2026-12-03 on Windows 11. We ran the `parse_price` function with Python 3.13.17 on the seven samples above. We tried the session code, written with `requests` 2.34.2, through a local test proxy that logs the incoming `Proxy-Authorization` and `Accept-Language` headers. The proxy credentials and the `es-MX` header reached the target.

The format table is the `Intl.NumberFormat` output of Node 24.22.2 (ICU 78.3). We sent the Mercado Libre requests with curl 8.23.0. `/sites/MLM` answered without a token; `/sites/MLM/search` returned `403` to a request without one. We did not read a product page from a real Mexican IP.

## The bottom line

For Mexican data, try the official API first. If you read pages, keep the Mexican IP, `es-MX` and a fixed postal code in one session. Key listings by their number and sellers by `seller_id`. Above all, store the price with its currency code: a bare `$` sign can be pesos or dollars.

## Sources

- [Items & Searches, Mercado Libre Developers: developers.mercadolibre.com.mx](https://developers.mercadolibre.com.mx/en_us/items-and-searches)
- [Authentication and Authorization, Mercado Libre Developers: developers.mercadolibre.com.mx](https://developers.mercadolibre.com.mx/en_us/authentication-and-authorization)
- [Store Identifiers, Selling Partner API: developer-docs.amazon](https://developer-docs.amazon/sp-api/docs/store-identifiers)
- [Intl.NumberFormat() constructor, currencyDisplay: developer.mozilla.org](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat)

## Frequently asked questions

### Can Mercado Libre México data be collected through an API?

Yes. Mercado Libre's developer API serves the Mexican site under the `MLM` ID. Listings, prices, currency and seller IDs come from this API. You need to register an application and obtain an access token. In our test the search endpoint returned `403` to a request without a token. Send the token with every request in the `Authorization: Bearer` header.

### Does the $ sign on Mexican sites mean dollars?

No, it usually means Mexican pesos. MXN is also written with the `$` sign. Dollar prices usually carry a `US$` or `USD` prefix. Still, both currencies can appear on the same site. Mercado Libre's Mexican site definition lists both MXN and USD. So store the price with the currency code from the API or JSON-LD, not with the sign.

### What does `meses sin intereses` mean?

It means interest-free monthly installments. The product card shows a line such as `12 meses sin intereses de $108.25` under the total price. The amount there is one monthly installment, not the product's price. The Mercado Libre API returns installments in a separate `installments` object. When collecting data, write the number of installments and the installment amount into separate fields. Put only the current price in the price column.

### Can you get accurate data without entering a postal code?

The price usually shows; delivery details do not. The estimated delivery date and shipping cost are calculated from the five-digit postal code. Without the code, these fields stay empty or show generic text. Pick a fixed postal code for each city, use it within the same session and store the code with every record.

### Why do you need a Mexican IP for Mexican data?

Because the site reads the country from the IP address first. A request from abroad may see a different delivery message, different stock or a country picker. To record the page a Mexican shopper sees, the request must leave from a connection in Mexico. In the official API, the site ID (`MLM`) sets the country instead.

### How do you merge several listings of the same product?

By ID number, not by title. On Mercado Libre every listing has a number starting with `MLM`. Listings of the same product can also be grouped under one catalog product. On Amazon the ASIN identifies the product. Store sellers by their numeric ID, not their nickname. That way your seller count does not inflate when a nickname changes.
