Skip to content
ajar.Get started

Place predict

airbnb.place.predict

View connector

Predict Airbnb destinations from a partial place name

POST /v1/operations/airbnb.place.predict

Headers

Authorization: Bearer YOUR_CONNECTOR_TOKEN
Content-Type: application/json

Inputs

ParameterExample typeExample value
querystring"Lon"

Example input

{
  "query": "Lon"
}

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": [
    {
      "place_id": "example-london",
      "query": "London",
      "display_name": "London, United Kingdom",
      "suggestion_type": "CITY",
      "location": {
        "latitude": 51.5072,
        "longitude": -0.1276
      }
    }
  ]
}
Open JSON schema

Input schema

{
  "$id": "https://useajar.com/schemas/airbnb/place-predict.input.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "currency": {
      "description": "Airbnb display currency for prices and price filters; GBP by default. No local currency conversion.",
      "enum": [
        "AED",
        "AUD",
        "BRL",
        "BGN",
        "CAD",
        "CHF",
        "CLP",
        "CNY",
        "COP",
        "CRC",
        "CZK",
        "DKK",
        "EGP",
        "EUR",
        "GBP",
        "GHS",
        "HKD",
        "HUF",
        "IDR",
        "ILS",
        "INR",
        "JPY",
        "KES",
        "KRW",
        "KZT",
        "MAD",
        "MXN",
        "MYR",
        "NOK",
        "NZD",
        "PEN",
        "PLN",
        "PHP",
        "QAR",
        "RON",
        "SAR",
        "SEK",
        "SGD",
        "THB",
        "TRY",
        "TWD",
        "UAH",
        "UGX",
        "USD",
        "UYU",
        "VND",
        "ZAR"
      ],
      "type": "string"
    },
    "limit": {
      "maximum": 20,
      "minimum": 1,
      "type": "integer"
    },
    "query": {
      "maxLength": 120,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "type": "object"
}