Skip to content
ajar.Book a demo

Hotel place predict

skyscanner.hotel.place.predict

View connector

Find hotel destinations by name

POST /v1/operations/skyscanner.hotel.place.predict

Headers

Authorization: Bearer YOUR_AJAR_API_KEY
x-skyscanner-token: YOUR_SKYSCANNER_TOKEN
Content-Type: application/json

Guest access needs no Skyscanner account sign-in. The x-skyscanner-token header carries the short-lived guest session from guest bootstrap; it is separate from your ajar Authorization bearer. Keep the same guest token when opening search or offer references.

Inputs

ParameterExample typeExample value
querystring"London"

Example input

{
  "query": "London"
}

Illustrative response for the example input. Availability, prices and result order vary. Replace example references and URLs with values returned by your own requests.

Example response

{
  "items": [
    {
      "entity_id": "27544008",
      "name": "London",
      "type": "City",
      "latitude": 51.5074,
      "longitude": -0.1278
    }
  ]
}
Open JSON schema

Input schema

{
  "$id": "https://useajar.com/schemas/skyscanner/hotel-place-predict.input.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "query": {
      "maxLength": 100,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "type": "object"
}