Skip to content
ajar.Get started

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_CONNECTOR_TOKEN
x-connection-ref: YOUR_CONNECTION_REF
Content-Type: application/json

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"
}