# MagicBricks Project Search API Documentation

Search new projects in one city by property type and page. Each item carries the project id, title, developer, price range, possession, coordinates, total units and a cover image, plus the public project url. A valid query with zero projects is a successful response.

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

## 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 |
| --- | --- | --- | --- |
| `city` | string | Yes | City ref-no such as 4320 for Mumbai, or a city name resolved against /cities. Example: Mumbai. |
| `property_type` | string | Yes | Required. Property type name such as flat, house, villa, plot, builder floor or studio, or the upstream numeric code, for example 10002. Upstream rejects a project search without it. |
| `page` | integer | No | One-based page number. Defaults to 1. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/magicbricks/v1/projects?city=Mumbai&property_type=flat"
```

## Example response

```json
{
    "success": true,
    "data": {
        "items": [
            {
                "id": 5112263,
                "project_title": "Aarambh Avyaan",
                "developer": "Satellite Developers Pvt. Ltd",
                "url": "https://www.magicbricks.com/project-pdpid-4d4235313132323633",
                "price_range": "Rs.55.4 Lac Onwards",
                "currency": "INR",
                "possession_by": "Possession in 2027",
                "latitude": 19.1923625,
                "longitude": 72.8674480999999,
                "total_units": 456,
                "city": "Mumbai",
                "image": "https://img.staticmb.com/mbimages/project/Photo_h300_w450/2026/06/24/Project-Photo-30-Aarambh-Avyaan-Mumbai-5112263_475_900_300_450.jpg"
            }
        ],
        "page": 1,
        "total": 1941,
        "has_more": true
    },
    "meta": {
        "endpoint_family": "projects",
        "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)
