# Mercado Libre Category Products API Documentation

Returns the live product feed of one Mercado Libre category on a country site: the best sellers and the current offers, merged and without duplicates. Each product carries title, brand, seller, official-store flag, price, previous price, discount label, currency, shipping text and promise, item, product and category ids, product url and picture. The feed has no paging: it returns the products Mercado Libre shows for the category, usually 20 to 40. Use the categories endpoint to find category ids. This endpoint is a category catalogue, not a keyword search. Failed requests (404, 422, 503) are never billed. A valid answer with zero rows is a successful, billable 200.

- **Documentation:** [https://scrappa.co/docs/mercadolibre-api/mercadolibre_category_products](https://scrappa.co/docs/mercadolibre-api/mercadolibre_category_products)
- **API group:** Mercado Libre API
- **Endpoint:** `GET https://scrappa.co/api/mercadolibre/category-products`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `site` | string | Yes | Country site id: MLA (Argentina), MLB (Brazil), MLM (Mexico), MLC (Chile), MCO (Colombia), MPE (Peru), MLU (Uruguay), MEC (Ecuador) or MLV (Venezuela). |
| `category_id` | string | Yes | Category id of the same site, for example MLA1574 (Hogar, Muebles y Jardín). Root and sub categories work. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/mercadolibre/category-products?site=MLA&category_id=MLA1574"
```

## Example response

```json
{
    "success": true,
    "data": {
        "site": "MLA",
        "category_id": "MLA1574",
        "products": [
            {
                "position": 1,
                "tab": "affiliate-profile-best-sellers",
                "item_id": "MLA3965765480",
                "product_id": "MLA79197996",
                "user_product_id": "MLAU3894255142",
                "category_id": "MLA456108",
                "url": "https://www.mercadolibre.com.ar/kit-cubre-edredon-dubai-queen-2-plazas-260x240-2-fundas-de-almohadas-almendra-ganga-home/p/MLA79197996",
                "title": "Kit Cubre Edred\u00f3n Dubai Queen 2 Plazas 260x240 + 2 Fundas de Almohadas Almendra | Ganga Home",
                "brand": "GANGA HOME",
                "seller": "Por Ganga Home",
                "official_store": true,
                "highlight": "M\u00c1S VENDIDO",
                "price": 31990,
                "previous_price": 52999,
                "currency": "ARS",
                "discount_label": "39% OFF",
                "shipping_text": "Env\u00edo gratis",
                "shipping_promise_type": "none",
                "fulfilled_by_mercado_libre": true,
                "picture_id": "684855-MLA118959230543_102026",
                "image_url": "https://http2.mlstatic.com/D_NQ_NP_2X_684855-MLA118959230543_102026-V.jpg"
            }
        ],
        "total": 35,
        "source_tabs": [
            {
                "id": "affiliate-profile-best-sellers",
                "title": "M\u00e1s vendidos",
                "count": 17
            },
            {
                "id": "affiliate-profile-offers",
                "title": "Ofertas",
                "count": 18
            }
        ]
    },
    "meta": {
        "endpoint_family": "category_products",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The item, category or store does not exist on this site. This response is not billable. |
| 422 | Validation Error | A parameter is invalid: unknown site, an id that does not belong to the site, a limit out of range, rating other than 1 to 5, or a zip code of another country. This response is not billable. |
| 503 | Service Unavailable | The service could not obtain a complete result from Mercado Libre. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
