APIs / MagicBricks / Autocomplete
MagicBricks: Autocomplete
Autocomplete from MagicBricks as JSON. 1 credit per successful call.
GET /v1/magicbricks/autocomplete
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
query | string | Required | Up to 80 characters |
city | string | Optional | Up to 60 characters |
type | string | Optional | all, locality, project |
Example request
MagicBricks
GET/v1/magicbricks/autocomplete?query=andheri&city=Mumbai
{
"success": true,
"data": {
"query": "andheri",
"type": "all",
"items": [
{
"name": "Andheria Mor Village, New Delhi",
"type": "locality",
"locality_id": 97973,
"city": "New Delhi",
"city_id": 2624
},
{
"name": "Andheri, Mumbai",
"type": "locality",
"locality_id": 106853,
"city": "Mumbai",
"city_id": 4320
},
{
"name": "Andheri Kurla Road, Mumbai",
"type": "locality",
"locality_id": 88867,
"city": "Mumbai",
"city_id": 4320
}
]
},
"meta": {
"endpoint_family": "autocomplete"
}
}200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in data.items has these 5 fields, read from a recorded call that returned 40 items. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
name | string |
type | string |
locality_id | integer |
city | string |
city_id | integer |