# Jameda Service Autocomplete

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

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

## 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 | Service or specialty search query (max 100 characters, 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 | Service 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-service?q=Zahnarzt"
```

## Example response

```json
{
    "success": true,
    "data": {
        "suggests": [
            {
                "header": "Fachbereiche & Symptome",
                "list": []
            }
        ]
    },
    "meta": {
        "query": "Zahnarzt",
        "duration_ms": 123.45,
        "source": "jameda_elements"
    }
}
```

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