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

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

# MagicBricks: Localities

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

GET `/v1/magicbricks/localities`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `city` | string | Required | Up to 60 characters |
| `type` | string | Optional | popular, suburbs |
| `limit` | integer | Optional | Any |

## Example request

MagicBricks

GET /v1/magicbricks/localities?city=Mumbai&limit=5 

```
{
  "success": true,
  "data": {
    "type": "popular",
    "items": [
      {
        "locality_id": 60018,
        "name": "Andheri West, Mumbai",
        "property_count": 4160,
        "city_id": 4320
      },
      {
        "locality_id": 78887,
        "name": "Mulund West, Mumbai",
        "property_count": 2467,
        "city_id": 4320
      },
      {
        "locality_id": 80084,
        "name": "Malad West, Mumbai",
        "property_count": 2427,
        "city_id": 4320
      }
    ]
  },
  "meta": {
    "endpoint_family": "localities"
  }
}
```

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=localities#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

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

| Field | Type |
| --- | --- |
| `locality_id` | integer |
| `name` | string |
| `property_count` | integer |
| `city_id` | integer |
