# Mercado Libre API

> Mercado Libre returns product listings, prices, and seller details as a workflow and API.

Mercado Libre returns listings for a search query in one country, with optional condition, price, and sort filters. Search products returns listing titles, prices, currencies, links, and available seller, rating, sales, and shipping details.

- Page: https://fous.com/tools/mercado-libre
- Handle: `@mercado-libre`
- Category: [Commerce](https://fous.com/tools/category/commerce)
- Source website: https://mercadolibre.com
- Last verified: Sep 29, 2026

## Methods

### Search products

Operation `search_products`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Search Mercado Libre listings in one country with condition, price and sort filters. Returns listings in site order; unavailable seller, rating, sales, or condition details are null.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `sort` | string | no | `"price_low_to_high"` | Result order, for example price_low_to_high. |
| `query` | string | yes | `"audifonos bluetooth"` | Words to search for, for example iphone 15. |
| `country` | string | no | `"Mexico"` | Country name or two-letter code, for example Brazil or BR. |
| `condition` | string | no | `"used"` | Listing condition, for example used. |
| `max_price` | number | no | `2000` | Maximum listing price in the local currency, for example 2000. |
| `min_price` | number | no | `500` | Minimum listing price in the local currency, for example 500. |
| `max_results` | integer | no | `5` | Most listings to return, for example 20. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "sort": {
      "enum": [
        "relevance",
        "price_low_to_high",
        "price_high_to_low"
      ],
      "type": "string",
      "default": "relevance",
      "description": "Result order, for example price_low_to_high.",
      "examples": [
        "price_low_to_high",
        "price_high_to_low"
      ]
    },
    "query": {
      "type": "string",
      "description": "Words to search for, for example iphone 15.",
      "examples": [
        "audifonos bluetooth",
        "iphone 15",
        "fone bluetooth"
      ]
    },
    "country": {
      "type": "string",
      "default": "Mexico",
      "description": "Country name or two-letter code, for example Brazil or BR.",
      "examples": [
        "Mexico",
        "Brazil"
      ]
    },
    "condition": {
      "enum": [
        "any",
        "new",
        "used"
      ],
      "type": "string",
      "default": "any",
      "description": "Listing condition, for example used.",
      "examples": [
        "used"
      ]
    },
    "max_price": {
      "type": "number",
      "minimum": 0,
      "description": "Maximum listing price in the local currency, for example 2000.",
      "examples": [
        2000
      ]
    },
    "min_price": {
      "type": "number",
      "minimum": 0,
      "description": "Minimum listing price in the local currency, for example 500.",
      "examples": [
        500
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 50,
      "minimum": 1,
      "description": "Most listings to return, for example 20.",
      "x-fous-developer": true,
      "examples": [
        5,
        3,
        50
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "sort": "price_low_to_high",
      "query": "audifonos bluetooth",
      "country": "Mexico",
      "condition": "used",
      "max_price": 2000,
      "min_price": 500,
      "max_results": 5
    },
    {
      "query": "iphone 15"
    },
    {
      "sort": "price_high_to_low",
      "query": "fone bluetooth",
      "country": "Brazil",
      "max_results": 3
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `listings` | array |  |  |
| `listings[].price` | number | `500` |  |
| `listings[].title` | string | `"Audífonos Inalambrios  Mi True Wireless Earbuds  Basic"` |  |
| `listings[].currency` | string | `"MXN"` |  |
| `listings[].condition` | string or null | `"used"` |  |
| `listings[].image_link` | string or null | `"https://http2.mlstatic.com/D_Q_NP_2X_881254-MLM42348841460_062020-E.webp"` |  |
| `listings[].listing_id` | string or null | `"MLM788883103"` |  |
| `listings[].units_sold` | integer or null |  |  |
| `listings[].seller_name` | string or null | `"Apple"` |  |
| `listings[].star_rating` | number or null | `4.9` |  |
| `listings[].installments` | string or null | `"4 meses sin intereses de $ 125"` |  |
| `listings[].listing_link` | string | `"https://www.mercadolibre.com.mx/audifonos-inalambrios--mi-true-wireless-earbuds--basic/up/MLMU997630020?pdp_filters=pri` |  |
| `listings[].free_shipping` | boolean | `true` |  |
| `listings[].original_price` | number or null | `19999` |  |

**Example input**

```json
{
  "sort": "price_low_to_high",
  "query": "audifonos bluetooth",
  "country": "Mexico",
  "condition": "used",
  "max_price": 2000,
  "min_price": 500,
  "max_results": 5
}
```

**Example output**

```json
{
  "listings": [
    {
      "price": 500,
      "title": "Audífonos Inalambrios  Mi True Wireless Earbuds  Basic",
      "currency": "MXN",
      "condition": "used",
      "image_link": "https://http2.mlstatic.com/D_Q_NP_2X_881254-MLM42348841460_062020-E.webp",
      "listing_id": "MLM788883103",
      "units_sold": null,
      "seller_name": null,
      "star_rating": null,
      "installments": "4 meses sin intereses de $ 125",
      "listing_link": "https://www.mercadolibre.com.mx/audifonos-inalambrios--mi-true-wireless-earbuds--basic/up/MLMU997630020?pdp_filters=price%3A500-2000",
      "free_shipping": true,
      "original_price": null
    },
    {
      "price": 500,
      "title": "Refacciones Sony Sve141d11u Sve141l11u Sve14111el Sve14111ew",
      "currency": "MXN",
      "condition": "used",
      "image_link": "https://http2.mlstatic.com/D_Q_NP_2X_771143-MLM44115284258_112020-E.webp",
      "listing_id": "MLM841090802",
      "units_sold": null,
      "seller_name": null,
      "star_rating": null,
      "installments": "3 meses sin intereses de $ 166 . 67",
      "listing_link": "https://www.mercadolibre.com.mx/refacciones-sony-sve141d11u-sve141l11u-sve14111el-sve14111ew/up/MLMU723303359?pdp_filters=price%3A500-2000",
      "free_shipping": true,
      "original_price": null
    },
    {
      "price": 500,
      "title": "Audífonos Inalámbricos Buen Sonido Marca Sony",
      "currency": "MXN",
      "condition": "used",
      "image_link": "https://http2.mlstatic.com/D_Q_NP_2X_796429-MLM117884066195_092026-E.webp",
      "listing_id": "MLM849538987",
      "units_sold": null,
      "seller_name": null,
      "star_rating": null,
      "installments": "3 meses sin intereses de $ 166 . 67",
      "listing_link": "https://www.mercadolibre.com.mx/audifonos-inalambricos-buen-sonido-marca-sony/up/MLMU541636308?pdp_filters=price%3A500-2000",
      "free_shipping": true,
      "original_price": null
    }
  ]
}
```

## Quick start

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@mercado-libre",
  "visibility": "public",
  "operation": "search_products",
  "version": 1,
  "input": {
    "sort": "price_low_to_high",
    "query": "audifonos bluetooth",
    "country": "Mexico",
    "condition": "used",
    "max_price": 2000,
    "min_price": 500,
    "max_results": 5
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

body = json.loads("{\n  \"api\": \"@mercado-libre\",\n  \"visibility\": \"public\",\n  \"operation\": \"search_products\",\n  \"version\": 1,\n  \"input\": {\n    \"sort\": \"price_low_to_high\",\n    \"query\": \"audifonos bluetooth\",\n    \"country\": \"Mexico\",\n    \"condition\": \"used\",\n    \"max_price\": 2000,\n    \"min_price\": 500,\n    \"max_results\": 5\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=180) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_000),
  body: JSON.stringify({
  "api": "@mercado-libre",
  "visibility": "public",
  "operation": "search_products",
  "version": 1,
  "input": {
    "sort": "price_low_to_high",
    "query": "audifonos bluetooth",
    "country": "Mexico",
    "condition": "used",
    "max_price": 2000,
    "min_price": 500,
    "max_results": 5
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/mercado-libre`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `search_products`: Search products. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-mercado-libre https://api.fous.com/mcp/tools/mercado-libre --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## Use cases

- Compare product prices across listings
- Find used products within a price range
- Review listing titles, sellers, and ratings
- Track available shipping and installment details

## FAQ

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this Mercado Libre tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

### Do I need a Mercado Libre account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from mercadolibre.com when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 29, 2026.

### What listings match a product search?

Search products returns listings matching the required query in a selected country.

### Can I filter listings by condition or price?

Yes. Search products accepts condition, minimum price, and maximum price filters.

### What details are returned for each listing?

Search products can return price, currency, title, condition, seller, rating, units sold, shipping, and listing links. Some details may be null.

## Related

- [Mercari API](https://fous.com/tools/mercari.md): Search secondhand and sold listings on Mercari US.
- [eBay API](https://fous.com/tools/ebay.md): eBay provides listings, listing details, seller reputation and newest feedback; shipping varies by destination, and some details or counts may be missing or approximate.
- [Amazon API](https://fous.com/tools/amazon.md): Amazon returns publicly shown product listings, prices, details, ratings, reviews, current best sellers, and Today's Deals; availability and content vary by store, location, and access.
- [Vinted API](https://fous.com/tools/vinted.md): Search public second-hand listings on Vinted country sites.
- [OfferUp API](https://fous.com/tools/offerup.md): Local marketplace for buying and selling items.
- [AliExpress API](https://fous.com/tools/aliexpress.md): AliExpress returns product listings and selected product details, including prices, variants, reviews, and destination-specific shipping options shown for the displayed variant.
- [Walmart API](https://fous.com/tools/walmart.md): Walmart helps shoppers find products from Walmart and marketplace sellers, view details, prices, ratings and reviews; availability uses Walmart’s default location, not ZIP codes.
- [Etsy API](https://fous.com/tools/etsy.md): Etsy provides current listings and prices, shop ratings and shipping, plus public item and shop details; some review counts or listings may be unavailable.
- [All Commerce tools](https://fous.com/tools/category/commerce)
