---
title: "Location Autocomplete"
method: GET
path: "/ohne-makler/locations"
tags: ["OhneMakler"]
---

# Location Autocomplete

`GET /ohne-makler/locations`

## Request

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

Resolve German cities, postal codes, and states.

## Query parameters

- `term` string, nullable
- `type` 'states' | 'null', nullable
- `limit` integer, nullable

## Response `200`

- union
  - string
  - object
    - `success` boolean, required
    - `error` object, required
      - `code` string, required
      - `message` 'OhneMakler locations could not parse the upstream response. Please retry.' | 'OhneMakler locations is temporarily unavailable. Please retry.', required
    - `meta` object, required
      - `endpoint_family` 'locations', required
      - `billable` boolean, required
      - `retryable` boolean, required
      - `attempts` string, required
      - `last_status` string, required
  - object
    - `success` boolean, required
    - `count` integer, required
    - `locations` unknown[], required
      - unknown

## Other responses

- `401`: Unauthorized - API key is missing or invalid
- `422`: A query parameter failed validation (for example a missing `term` without `type=states`, or `limit` outside 1-25). Non-billable.
- `503`: The upstream location lookup failed or could not be parsed after retries. `error.code` is one of `upstream_unavailable`, `parser_drift`, `upstream_blocked`, or `transport_error`. Retryable and never billed.

---

[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)
