---
title: "WG-Gesucht API: Locations | Perceptlayer"
description: "Locations from WG-Gesucht as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/wg-gesucht/locations
---

[APIs](https://perceptlayer.com/apis) / [WG-Gesucht](https://perceptlayer.com/apis/wg-gesucht) / Locations

# WG-Gesucht: Locations

Locations from WG-Gesucht as JSON. 1 credit per successful call.

GET `/v1/wg-gesucht/locations`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Optional | Up to 100 characters |
| `city_id` | integer | Optional | Any |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/wg-gesucht/locations?query=Berlin" \
  -H "X-API-Key: $API_KEY"
```

[Run this endpoint in the playground](https://perceptlayer.com/apis/wg-gesucht?try=locations#playground) with your own parameters. 1 credit per successful call; failed calls are free.
