---
title: "MagicBricks API: Search | Perceptlayer"
description: "Search from MagicBricks as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/magicbricks/search
---

[APIs](https://perceptlayer.com/apis) / [MagicBricks](https://perceptlayer.com/apis/magicbricks) / Search

# MagicBricks: Search

Search from MagicBricks as JSON. 1 credit per successful call.

GET `/v1/magicbricks/search`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `city` | string | Required | Up to 60 characters |
| `category` | string | Optional | buy, rent |
| `property_type` | string | Required | Up to 60 characters |
| `locality` | integer | Optional | Any |
| `keyword` | string | Optional | Up to 100 characters |
| `page` | integer | Optional | Any |
| `limit` | integer | Optional | Any |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/magicbricks/search?city=Mumbai&category=buy&property_type=flat&limit=10" \
  -H "X-API-Key: $API_KEY"
```

[Run this endpoint in the playground](https://perceptlayer.com/apis/magicbricks?try=search#playground) with your own parameters. 1 credit per successful call; failed calls are free.
