---
title: "Suggest MagicBricks locations"
method: GET
path: "/magicbricks/v1/autocomplete"
tags: ["MagicBricks"]
---

# Suggest MagicBricks locations

`GET /magicbricks/v1/autocomplete`

## Request

- Base URL: `https://scrappa.co/api`
- URL: `https://scrappa.co/api/magicbricks/v1/autocomplete`
- Auth: API key in header `X-API-KEY`

## Query parameters

- `query` string, required
- `city` string, nullable
- `type` 'all' | 'locality' | 'project'

## Response `200`

- string

## Other responses

- `401`: Unauthorized - API key is missing or invalid
- `404`: The requested MagicBricks resource does not exist. The response is not billable.
- `422`: 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.
- `503`: The upstream service is temporarily unavailable. Please retry shortly.

---

[API](https://skmtc.dev/scrappa/apis/scrappa-api-documentation.md) · [All operations](https://skmtc.dev/scrappa/apis/scrappa-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/scrappa/apis/scrappa-api-documentation/revisions/2f4af6143d10?raw)
