# 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/workflows/mercado-libre
- Handle: `@mercado-libre`
- Category: [Commerce](https://fous.com/workflows/category/commerce)
- Source website: https://mercadolibre.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with Mercado Libre.

## Methods

### Search products

Operation `search_products`, version 1. 1 credit per call.

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 | `"Optisom"` |  |
| `listings[].star_rating` | number or null |  |  |
| `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 | `21121` |  |

**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

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_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.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

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=120) 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.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_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);
```

Or describe the data in plain language: send `{"api":"@mercado-libre","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## 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

### Is Fous affiliated with Mercado Libre?

No. Fous is not affiliated with Mercado Libre. This workflow reads the public mercadolibre.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. 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; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check 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/workflows/mercari.md): Search secondhand and sold listings on Mercari US.
- [eBay API](https://fous.com/workflows/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/workflows/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/workflows/vinted.md): Search public second-hand listings on Vinted country sites.
- [OfferUp API](https://fous.com/workflows/offerup.md): Local marketplace for buying and selling items.
- [AliExpress API](https://fous.com/workflows/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/workflows/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/workflows/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 workflows](https://fous.com/workflows/category/commerce)
