---
title: "Search for locations (cities, ZIP codes, neighborhoods)"
method: GET
path: "/redfin/locations"
tags: ["Redfin"]
---

# Search for locations (cities, ZIP codes, neighborhoods)

`GET /redfin/locations`

## Request

- Base URL: `https://scrappa.co/api`
- URL: `https://scrappa.co/api/redfin/locations`
- Auth: API key in header `X-API-KEY`

Returns region IDs that can be used with the search endpoint.
This is the starting point for using the Redfin API.

## Query parameters

- `query` string, required

## Response `200`

- object
  - `data` object, required
    - `locations` unknown[], required
      - unknown
    - `query` string, required

## Other responses

- `400`: The request contains null bytes or unsupported control characters.
- `401`: Unauthorized - API key is missing or invalid
- `422`: One or more Redfin request parameters failed validation.
- `500`: 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/1e1aa78ff103?raw)
