Skip to content
ajar.Get started

Place predict

skyscanner.place.predict

View connector

Predict Skyscanner flight places from a city or airport query

POST /v1/operations/skyscanner.place.predict

Restricted access · live-read. Examples are illustrative and do not execute requests.

Inputs

ParameterExample typeExample value
querystring"Lon"
contextobject{"role":"destination","origin_place_ref":"27544008","outbound_date":"2026-10-03","inbound_date":"2026-10-10"}

Example input

{
  "query": "Lon",
  "context": {
    "role": "destination",
    "origin_place_ref": "27544008",
    "outbound_date": "2026-10-03",
    "inbound_date": "2026-10-10"
  }
}

Input schema

{
  "$id": "https://priv-platform.local/connectors/skyscanner/place-predict.input.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "additionalProperties": false,
      "properties": {
        "destination_place_ref": {
          "pattern": "^[0-9]{1,20}$",
          "type": "string"
        },
        "inbound_date": {
          "format": "date",
          "type": "string"
        },
        "origin_place_ref": {
          "pattern": "^[0-9]{1,20}$",
          "type": "string"
        },
        "outbound_date": {
          "format": "date",
          "type": "string"
        },
        "role": {
          "enum": [
            "origin",
            "destination"
          ]
        }
      },
      "type": "object"
    },
    "query": {
      "maxLength": 100,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "title": "Skyscanner flight place prediction input",
  "type": "object"
}