# Metros Cubicos Listing Details API Documentation

Scrappa's `GET /api/metroscubicos/listing` returns the full record of one Metros Cubicos listing.

## Input

Pass `id` (for example `MLM-2968004285`) or the listing `url` from search. Only the id is used: a url that does not hold a Mercado Libre Mexico listing id is refused with `422`, and no address you send is ever requested.

## What you get

`id`, canonical `url`, `title`, `subtitle`, `operation` (`sale` or `rent`), `type`, `is_development`, `condition`, `listing_type`, `status`, `price` (amount, currency, `from` for developments), `fees.maintenance` (the text as shown plus the parsed amount, or `null` when the listing states no fee), `details` (bedrooms, bathrooms, parking, rooms, built and total area, age, furnished), `address` with `geo` (`lat`, `lng`), all spec groups in `specs`, `description`, `images`, `points_of_interest`, `models` (developments), `agency` and `breadcrumb` (label and slug of type, operation, state and city).

## Photos

A development lists all its photos. An individual listing shows its first photos on the page only: `images` holds those and `images_total` the full count. All photo URLs are full size.

## Agency

`agency.seller_id` feeds the agency endpoint. `agency.name`, `logo` and `verified` come from the listing page. `store_url` is set for official stores.

## Not included

Phone numbers are not shown on the page and are not returned.

- **Documentation:** [https://scrappa.co/docs/metroscubicos-api/metroscubicos_listing](https://scrappa.co/docs/metroscubicos-api/metroscubicos_listing)
- **API group:** Metros Cubicos API
- **Endpoint:** `GET https://scrappa.co/api/metroscubicos/listing`

## 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 |
| --- | --- | --- | --- |
| `id` | string | No | Listing id from search, for example MLM-2968004285. Use id or url. |
| `url` | string | No | Listing url from search. Use id or url. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/metroscubicos/listing?id=MLM-2968004285"
```

## Example response

```json
{
    "success": true,
    "listing": {
        "id": "MLM-6109013226",
        "url": "https://casa.mercadolibre.com.mx/MLM-6109013226-hermosa-casa-con-roof-garden-zapopan-_JM",
        "title": "Hermosa Casa Con Roof Garden Dentro De Coto En Capital Norte Zapopan",
        "subtitle": "Casa en Renta | Publicado hace 59 d\u00edas",
        "operation": "rent",
        "type": "house",
        "is_development": false,
        "condition": "new",
        "listing_type": "gold_premium",
        "status": "active",
        "price": {
            "amount": 19600,
            "currency": "MXN",
            "from": false
        },
        "fees": {
            "maintenance": {
                "label": "Mantenimiento aproximado MXN 4,000",
                "amount": 4000,
                "currency": "MXN"
            }
        },
        "details": {
            "bedrooms": 3,
            "bathrooms": 2,
            "parking": 2,
            "rooms": 7,
            "built_area_m2": 180,
            "total_area_m2": 115,
            "age_years": 0,
            "furnished": false
        },
        "address": {
            "text": "Capital Norte, Zapopan, Jalisco",
            "neighborhood": "Capital Norte",
            "city": "Zapopan",
            "state": "Jalisco"
        },
        "geo": {
            "lat": 20.7871722,
            "lng": -103.4123134
        },
        "specs": [
            {
                "group": "Principales",
                "items": [
                    {
                        "label": "Superficie total",
                        "value": "115 m\u00b2"
                    },
                    {
                        "label": "Rec\u00e1maras",
                        "value": "3"
                    }
                ]
            }
        ],
        "description": "Excelente oportunidad de renta dentro de Coto en Capital Norte, Zapopan.",
        "images": [
            "https://http2.mlstatic.com/D_NQ_NP_867246-MLM116824755715_082026-F-hermosa-casa.webp"
        ],
        "images_total": 25,
        "models": [],
        "points_of_interest": [
            {
                "category": "Educaci\u00f3n",
                "summary": "1 jard\u00edn, 2 colegios",
                "groups": [
                    {
                        "name": "Escuelas",
                        "items": [
                            {
                                "name": "Mariano Azuela",
                                "distance": "20 mins - 1,578 metros"
                            }
                        ]
                    }
                ]
            }
        ],
        "agency": {
            "seller_id": 2721306408,
            "name": "Stanza Soluciones Inm",
            "type": "real_estate_agency",
            "verified": true,
            "logo": "https://http2.mlstatic.com/storage/vis-accounts/2721306408_vip-example.png",
            "store_url": null,
            "property_code": "EB-WU5479"
        },
        "category": {
            "id": "MLM1467",
            "path": [
                "MLM1459",
                "MLM1466",
                "MLM1467"
            ],
            "domain": "MLM-HOUSES_FOR_RENT"
        },
        "breadcrumb": [
            {
                "label": "Casas",
                "slug": "casas"
            },
            {
                "label": "Renta",
                "slug": "renta"
            },
            {
                "label": "Jalisco",
                "slug": "jalisco"
            },
            {
                "label": "Zapopan",
                "slug": "zapopan"
            }
        ]
    },
    "meta": {
        "endpoint_family": "listing",
        "billable": true,
        "attempts": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | Nothing exists with that identifier on Metros Cubicos, for example a removed listing (`not_found`). Non-billable. |
| 422 | Validation Error | A query parameter is missing, unknown or unusable. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | Metros Cubicos could not be reached after retries, answered with an error, or returned an unexpected answer (`upstream_unavailable`, `upstream_blocked`, `upstream_changed`). Retryable and never billed. Clients are never rate limited. |

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