# Mercado Libre — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and retrieve product listings, details, customer reviews, categories, and current deals from MercadoLibre across multiple countries to find the best products and prices. Get comprehensive product information including specifications and user feedback to make informed purchasing decisions.

**Category:** Marketplaces | **Website:** [mercadolibre.com/](https://mercadolibre.com/) | **Docs:** [parse.bot/marketplace/d86a68fb-f0c5-45b9-8fde-599ae8e726ea/mercadolibre-com-api](https://parse.bot/marketplace/d86a68fb-f0c5-45b9-8fde-599ae8e726ea/mercadolibre-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-mercadolibre-com-api-d86a68fb/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_category_list

Retrieve the list of top-level categories and their subcategories from the MercadoLibre categories page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `site` | string | No | Site code: MLB (Brazil), MLA (Argentina), MLM (Mexico), MLC (Chile), MCO (Colombia), MLU (Uruguay), MPE (Peru) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mercadolibre-com-api-d86a68fb/get_category_list \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"site":"<string>"}'
```

### get_offers_deals

Browse current deals and promotions from the Ofertas section. Returns up to ~54 promoted product cards with pricing, discount, and rating information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `site` | string | No | Site code: MLB (Brazil), MLA (Argentina), MLM (Mexico), MLC (Chile), MCO (Colombia), MLU (Uruguay), MPE (Peru) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mercadolibre-com-api-d86a68fb/get_offers_deals \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"site":"<string>"}'
```

### get_product_details

Retrieve full product details including description, images, attributes, seller info, and stock information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full product page URL |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mercadolibre-com-api-d86a68fb/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### get_product_reviews

Extract product reviews and ratings from MercadoLibre catalog pages. Fetches the full reviews modal page for maximum review count (up to 15 reviews per request). Products with very few reviews may return metadata (average_rating, total_reviews) but an empty reviews array.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Product page URL containing a catalog product ID (e.g. https://www.mercadolivre.com.br/apple-iphone-15-128-gb-azul-distribuidor-autorizado/p/MLB1027172667 or https://www.mercadolivre.com.br/p/MLB23444025) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mercadolibre-com-api-d86a68fb/get_product_reviews \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### search_products

Search for products by keyword with support for pagination and site selection. Returns product cards with title, price, image, seller, and rating.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results to return per page |
| `offset` | integer | No | Pagination offset (0-based) |
| `query` | string | Yes | Search keyword |
| `site` | string | No | Site code: MLB (Brazil), MLA (Argentina), MLM (Mexico), MLC (Chile), MCO (Colombia), MLU (Uruguay), MPE (Peru) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mercadolibre-com-api-d86a68fb/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","offset":"<integer>","query":"<string>","site":"<string>"}'
```
