---
title: "Booking.com flight autocomplete"
method: GET
path: "/booking-flights/autocomplete"
tags: ["Booking"]
---

# Booking.com flight autocomplete

`GET /booking-flights/autocomplete`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/booking-flights/autocomplete`
- Auth: API key in header `x-api-key`

Returns Booking.com flight-search location suggestions (airports and cities) for `query`, which is required. `type` is `to` (default) or `from`; `origin` and `origin_type` bias results by proximity. Each result has `name`, `code`, `type`, `country`, `country_name` and `region_name`. Combine `code` and `type` as `{code}.{TYPE}` for `booking-flights-search`.

## Query parameters

- `query` string, required
- `type` 'to' | 'from'
- `origin` string
- `origin_type` string

## Headers

- `x-api-key` string, required

## Response `200`

OK

- BookingBookingFlightAutocompleteResponseDoc
  - `code` integer
  - `data` BookingFlightAutocompleteResponse
    - `query` string
    - `results` BookingFlightAutocompleteResult[]
      - `code` string
      - `country` string
      - `country_name` string
      - `name` string
      - `photo_url` string
      - `region_name` string
      - `type` string
  - `msg` string

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `429`: Too Many Requests
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/afac9b012a27?raw)
