# Charging station filters autocomplete suggestions

`GET https://bemap.benomad.com/bgis/service/chargingstation/filter/autocomplete/1.0`

Part of [Charging stations](https://benomad.com/dev/doc/bemap-api/electric-mobility/charging-stations.md).

> **Suggest charging station filters.** The station details a search can filter on, such as the brand, the availability or the charging power, suggested as the user types.

Returns the list of charging station filters matching the input.

Requires the Charging station search or EV smart routing option (Allow to get the charging station information); without it BeMap answers `400 Access Denied`.

## Query parameters

- `filterVersion` (base64 string, in query)
- `levelLimit` (base64 string, in query)
- `filter` (string, required, in query)

## Response

`200`, schema `TextAutocompleteResponse`.

- `suggestions` (string[]): Autocomplete suggestions.

## Errors

- `400`: Bad Request
- `302`: no credentials were sent. Do not follow the redirect.
- `401`: the account or the API key is wrong.

How to read each one: [Errors](https://benomad.com/dev/doc/bemap-api/getting-started/errors.md).

## Example

```bash
curl -X GET 'https://bemap.benomad.com/bgis/service/chargingstation/filter/autocomplete/1.0?filter=pool.br' \
  -u 'YOUR_ACCOUNT:YOUR_API_KEY' \
  --fail-with-body
```

Response captured from production, long arrays and strings shortened:

```json
{
  "suggestions": [
    "pool.brand",
    "pool.providerName"
  ]
}
```

## Reference pages

- [Charging station filter v2](https://benomad.com/dev/doc/bemap-api/guides/reference/chargingstation-filter-v2.md)
- [Charging station filter v1](https://benomad.com/dev/doc/bemap-api/guides/reference/chargingstation-filter-v1.md)
