# Location Autocomplete

Search for locations and get IDs that can be passed back into /immowelt/search as the `location` parameter. Returns coordinate-based suggestions via geocoding, plus optional placeId enrichment.

- **Documentation:** [https://scrappa.co/docs/immowelt-api/immowelt_locations](https://scrappa.co/docs/immowelt-api/immowelt_locations)
- **API group:** Immowelt API
- **Endpoint:** `GET https://scrappa.co/api/immowelt/locations`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Search term (city, district, or postal code) |
| `limit` | integer | No | Maximum results to return (default: 10) |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/immowelt/locations?query=Berlin"
```

## Example response

```json
{
    "success": true,
    "locations": []
}
```

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
