# Mercado Libre Mexico — 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 for products on Mercado Libre Mexico, view detailed product information with pricing and offers, browse categories, and research seller details all in one place. Access live marketplace data including product listings, category hierarchies, and current offers to help you find and compare items across Mexico's largest e-commerce platform.

**Category:** Marketplaces | **Website:** [mercadolibre.com.mx/](https://mercadolibre.com.mx/) | **Docs:** [parse.bot/marketplace/0f1cdac4-7024-40df-b728-128a478189f2/mercadolibre-com-mx-api](https://parse.bot/marketplace/0f1cdac4-7024-40df-b728-128a478189f2/mercadolibre-com-mx-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-mx-api-0f1cdac4/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

Retrieve all product categories from Mercado Libre Mexico organized by department. Returns hierarchical category data including top-level categories with their child subcategories. Each category includes an ID, name, URL, and department grouping.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mercadolibre-com-mx-api-0f1cdac4/get_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_category_listings

Get product listings for a specific category page on Mercado Libre Mexico. Accepts a category URL (use top-level URLs from get_categories with the www.mercadolibre.com.mx/c/ format for best results). Returns the category title and product listings with pricing and details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_url` | string | Yes | Full URL of the category page (e.g. https://www.mercadolibre.com.mx/c/computacion). Use top-level category URLs from get_categories for reliable results. |

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

### get_offers

Retrieve current daily deals and promotions from Mercado Libre Mexico. Returns paginated product listings with pricing, discounts, brands, images, and ratings. Pagination is available via the page parameter.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (starts at 1). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-mercadolibre-com-mx-api-0f1cdac4/get_offers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### get_product_detail

Get full details for a product by its item ID. Extracts title, description, pricing, images, seller, and availability data from the product page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `item_id` | string | Yes | Product ID (with or without MLM prefix) |

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

### get_seller_info

Get seller profile and reputation info.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `seller_id` | string | Yes | Seller nickname or ID from product detail |

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

### search_products

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.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword |

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