# Mercado Libre Related Products API Documentation

Returns the "buyers also bought" recommendations for one item or catalogue product. Send item_id or product_id, not both. Mercado Libre needs at least 5 results, so limit runs from 5 to 25. Each product has the same fields as the category products endpoint. 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_related_products](https://scrappa.co/docs/mercadolibre-api/mercadolibre_related_products)
- **API group:** Mercado Libre API
- **Endpoint:** `GET https://scrappa.co/api/mercadolibre/related-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). |
| `item_id` | string | No | Item id, for example MLA3965765480. Use this or product_id. |
| `product_id` | string | No | Catalogue product id, for example MLA79197996. Use this or item_id. |
| `limit` | integer | No | Number of recommendations, 5 to 25. Defaults to 10. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/mercadolibre/related-products?site=MLA&item_id=MLA3965765480&limit=5"
```

## Example response

```json
{
    "success": true,
    "data": {
        "site": "MLA",
        "anchor": {
            "item_id": "MLA3965765480"
        },
        "title": "Quienes compraron este producto tambi\u00e9n compraron",
        "category_id": "MLA414155",
        "products": [
            {
                "position": 1,
                "item_id": "MLA3278829374",
                "title": "Kit Catalina X5 Pie De Cama + Fundas | Ganga Home Verde Musgo Catalina",
                "price": 27990,
                "previous_price": 32129,
                "currency": "ARS",
                "discount_label": "12% OFF",
                "sales_label": "+1000 vendidos"
            }
        ],
        "total": 5
    },
    "meta": {
        "endpoint_family": "related_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)
