# Holidu Destination Autocomplete API Documentation

<p><strong>Holidu Destination Autocomplete API Documentation</strong> Find regions, cities, airports and single properties by a search text. Each result has a label, the main name, a site path, a region id and an offer id when the text names one property.</p>

- **Documentation:** [https://scrappa.co/docs/holidu-api/holidu_autocomplete](https://scrappa.co/docs/holidu-api/holidu_autocomplete)
- **API group:** Holidu API
- **Endpoint:** `GET https://scrappa.co/api/holidu/autocomplete`

## 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 text, 2 to 100 characters. Example: Paris. |
| `market` | string | No | Country site: com (USD), de (EUR), uk (GBP) or fr (EUR). Defaults to com. An unknown value is rejected. |

## Example response

```json
{
    "data": {
        "query": "Paris",
        "market": "com",
        "results": [
            {
                "value": "Paris, Ile de France, France",
                "offer_id": null,
                "pathname": "/s/Paris--Ile-de-France--France",
                "main_part": "Paris",
                "region_id": 22458
            }
        ],
        "properties": [],
        "has_google_results": true
    },
    "meta": {
        "billable": true,
        "endpoint_family": "destination_autocomplete"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required query parameter is missing or invalid. This response is not billable. |
| 503 | Service Unavailable | Holidu could not be reached, answered with an unexpected shape or returned a result that does not match the request. This response is not billable. Retry later. |

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