# MagicBricks Listing Detail API Documentation

Read one property listing by its numeric id or its 20-character hex id: title, price in rupees, carpet and covered area, bedrooms, bathrooms, floor, total floors, furnishing, possession, property type, transaction type, who posted it, locality, city, coordinates, description, posted date and the image gallery, plus the public web url. Contact and phone fields are never returned: the contact reveal is the platform paywall boundary. An unknown id is a non-billable 404.

- **Documentation:** [https://scrappa.co/docs/magicbricks-api/magicbricks_listing](https://scrappa.co/docs/magicbricks-api/magicbricks_listing)
- **API group:** MagicBricks API
- **Endpoint:** `GET https://scrappa.co/api/magicbricks/v1/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 | Yes | Numeric listing id such as 86933599, or the 20-character hex form such as 4d423836393333353939. |
| `slug` | string | No | Cosmetic path segment, for example IC-Colony-in-Mumbai. The slug is not validated upstream, so a placeholder resolves too. Defaults to property. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/magicbricks/v1/listing?id=86933599"
```

## Example response

```json
{
    "success": true,
    "data": {
        "id": 86933599,
        "title": "Buy 683 Sqft 3 BHK Flat for Sale in IC Colony Mumbai @ 2.25 Cr",
        "url": "https://www.magicbricks.com/propertyDetails/property&id=4d423836393333353939",
        "price": 22500000,
        "currency": "INR",
        "price_display": "2.25 Cr",
        "min_price": 20500000,
        "max_price": 22500000,
        "price_per_sqft": 32943,
        "carpet_area": 683,
        "covered_area": 750,
        "area_unit": "Sq-ft",
        "bedrooms": 3,
        "bathrooms": 2,
        "floor": "5",
        "total_floors": 12,
        "furnishing": "Unfurnished",
        "possession": "Ready to Move",
        "property_type": "Multistorey Apartment",
        "transaction_type": "Resale",
        "advertiser_type": "Owner",
        "locality": "IC Colony",
        "city": "Mumbai",
        "latitude": 19.249869503245,
        "longitude": 72.8491717870626,
        "images": [
            "https://img.staticmb.com/mbphoto/property/cropped_images/ver2/XIwvQlc61t8ZIpanz4mAnTVP9dY9dc-Ch0YIPkcxHcsx_FcxnoMp/Photo_h300_w450/86933599_5_edroom3_300_450.jpg"
        ]
    },
    "meta": {
        "endpoint_family": "listing",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A public parameter is missing or invalid, or a city, locality or property type cannot be resolved. No upstream call is made and the response is not billable. |
| 404 | Resource Not Found | The requested MagicBricks resource does not exist. The response is not billable. |
| 503 | Unexpected Upstream Response | MagicBricks answered with a body that is not the documented shape. The response is not billable. |
| 503 | Upstream Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

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