# MagicBricks Project Detail API Documentation

Read one project by its numeric project id or its 20-character hex id: title, description, price per square foot, price band, developer, property type, possession date, available units, locality, city, RERA link, popularity rank, the rating summary with aspect ratings, unit pricing per BHK, the amenity list and the image gallery. Review text stays out of this endpoint; the rating counts ride along. An unknown id is a non-billable 404.

- **Documentation:** [https://scrappa.co/docs/magicbricks-api/magicbricks_project](https://scrappa.co/docs/magicbricks-api/magicbricks_project)
- **API group:** MagicBricks API
- **Endpoint:** `GET https://scrappa.co/api/magicbricks/v1/project`

## 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 project id such as 5042000, or the 20-character hex form such as 4d4235303432303030. |
| `slug` | string | No | Cosmetic path segment, for example lodha-the-world-towers. The origin redirects to the canonical slug, so a placeholder resolves too. Defaults to project. |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "data": {
        "id": 5042000,
        "title": "Lodha The World Towers",
        "url": "https://www.magicbricks.com/lodha-the-world-towers-lower-parel-mumbai-pdpid-4d4235303432303030",
        "description": "View all Project Details of Lodha Lodha The World Towers on MagicBricks.com.",
        "sqft_price": 50955,
        "price_range": "6.61 Cr - 15.89 Cr",
        "price_min": 66190000,
        "price_max": 158990460,
        "currency": "INR",
        "developer": "Lodha Developers Limited",
        "property_type": "Multistorey Apartment",
        "possession_by": "Feb, 2020",
        "locality": "Lower Parel",
        "city": "Mumbai",
        "rating": {
            "average": 4.5,
            "total_ratings": 22,
            "total_reviews": 19,
            "aspects": {
                "psmAvgRt": 4.5,
                "prjInfraRt": 4.5,
                "prjAmenityRt": 4.6
            }
        },
        "amenities": [
            "Swimming Pool",
            "Gymnasium"
        ],
        "images": [
            "https://img.staticmb.com/mbimages/project/Photo_h310_w462/2019/06/06/Project-Photo-22-World-Towers-Mumbai-5042000_345_1366_310_462.jpg"
        ]
    },
    "meta": {
        "endpoint_family": "project",
        "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)
