# Jameda Location Autocomplete

Get autocomplete suggestions for locations. Both "q" and "query" parameters are accepted for backward compatibility, but "q" is preferred.

- **Documentation:** [https://scrappa.co/docs/jameda-api/jameda_autocomplete_location](https://scrappa.co/docs/jameda-api/jameda_autocomplete_location)
- **API group:** Jameda API
- **Endpoint:** `GET https://scrappa.co/api/jameda/autocomplete-location`

## 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 |
| --- | --- | --- | --- |
| `q` | string | Yes | Location search query (preferred parameter). When building URLs manually, encode special characters (ä=%C3%A4, ö=%C3%B6, ü=%C3%BC). Libraries like URLSearchParams and http_build_query handle this automatically. |
| `query` | string | No | Location text to autocomplete (1-100 characters). Required unless q is supplied. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/jameda/autocomplete-location?q=M%C3%BCnchen"
```

## Example response

```json
{
    "suggests": []
}
```

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