Skip to content
Scrappa Get API key
Holidu API 1 credit/request

Holidu Destination Autocomplete API Documentation

GET https://scrappa.co/api/holidu/autocomplete

Holidu Destination Autocomplete API Documentation 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.

Holidu Destination Autocomplete API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/holidu/autocomplete
Auth header
x-api-key
Cost
1 credit/request
query = coffee shops
Response preview
200 OK
{
    "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": [],
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

1 optional filter available.

query string Required

Search text, 2 to 100 characters. Example: Paris.

Example value coffee shops
market string Optional

Country site: com (USD), de (EUR), uk (GBP) or fr (EUR). Defaults to com. An unknown value is rejected.

Example value US

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "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

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A required query parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "market": [
            "The market is one of com, de, uk, fr."
        ]
    },
    "message": "The request validation failed"
}
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.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "destination_autocomplete"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "The Holidu API is temporarily unavailable. Please retry."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.