# Expedia Destination Autocomplete API Documentation

Resolve a destination name to Expedia region ids: for each match the region id, type (city, airport, neighborhood, metro code or point of interest), full and short name, country code and coordinates. Use the region_id with the hotel search endpoint. A query without matches is a successful response with an empty list.

- **Documentation:** [https://scrappa.co/docs/expedia-api/expedia_destinations](https://scrappa.co/docs/expedia-api/expedia_destinations)
- **API group:** Expedia API
- **Endpoint:** `GET https://scrappa.co/api/expedia/destinations`

## 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 | Destination name, 2 to 100 characters. Example: paris. |
| `limit` | integer | No | Number of matches, 1 to 10. Defaults to 5. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/expedia/destinations?query=paris"
```

## Example response

```json
{
    "success": true,
    "data": {
        "query": "paris",
        "destinations": [
            {
                "region_id": "2734",
                "type": "CITY",
                "name": "Paris, France",
                "short_name": "Paris",
                "country_code": "FR",
                "latitude": 48.853564,
                "longitude": 2.348095
            },
            {
                "region_id": "502251",
                "type": "POI",
                "name": "Eiffel Tower, Paris, France",
                "short_name": "Eiffel Tower",
                "country_code": "FR",
                "latitude": 48.858262,
                "longitude": 2.294496
            }
        ]
    },
    "meta": {
        "endpoint_family": "destination_autocomplete",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required query parameter is missing or invalid. This response is not billable. |
| 503 | Upstream Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |
| 503 | Invalid Source Response | Expedia answered with a shape that no longer matches the documented contract. This response is not billable. |
| 503 | Service Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

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