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

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

# MagicBricks: Filters

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

GET `/v1/magicbricks/filters`

## 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 | Optional | Up to 60 characters |

## Example request

MagicBricks

GET /v1/magicbricks/filters?city=Mumbai&category=buy 

```
{
  "success": true,
  "data": {
    "city": "Mumbai",
    "category": "buy",
    "categories": [
      {
        "key": "Locality",
        "title": "Top Localities"
      },
      {
        "key": "Budget",
        "title": "Budget"
      },
      {
        "key": "PropertyType",
        "title": "Property Type"
      }
    ],
    "property_types": [
      {
        "code": 10002,
        "label": "Multistorey Apartment"
      },
      {
        "code": 10001,
        "label": "Residential House"
      },
      {
        "code": 10000,
        "label": "Residential Plot"
      }
    ],
    "possession_options": [
      {
        "code": "10081",
        "label": "Ready To Move"
      },
      {
        "code": "2026",
        "label": "2026"
      },
      {
        "code": "2027",
        "label": "2027"
      }
    ]
  },
  "meta": {
    "endpoint_family": "filters"
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded 12 Nov 2026 and shortened.

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

## Response fields

`data` has these 5 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `city` | string |
| `category` | string |
| `categories` | object\[\] |
| `property_types` | object\[\] |
| `possession_options` | object\[\] |
