{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vistalink-com/json-schema/vistalink-com-search-request-schema.json",
  "title": "SearchRequest",
  "description": "POST /v1/search — structured hotel search (no LLM).\n\nNeeds a location: ``city``, ``latitude`` + ``longitude``, or\n``hotel_name`` (a city named in ``vibe`` is used when none is given).\nUnknown fields are a 422 naming them; a few common aliases (``location``,\n``query``, ``checkIn``, ``adults``, ...) map onto the documented names\n(``app/mcp_api/agent_inputs.py``).",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vistalink-com-openapi.json#/components/schemas/SearchRequest",
  "properties": {
    "city": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "City",
      "description": "City to search in, e.g. 'Lisbon'. A search needs city, latitude+longitude, or hotel_name."
    },
    "country": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2
        },
        {
          "type": "null"
        }
      ],
      "title": "Country",
      "description": "ISO 3166-1 alpha-2 country code of the city, e.g. 'PT'. Use it for city names that exist in several countries (Paris FR vs Paris US)."
    },
    "area": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Area",
      "description": "Neighbourhood or landmark within city to search around, e.g. 'Brera' or 'Colosseum' (with city='Milan' / 'Rome'). Results are limited to hotels near it."
    },
    "latitude": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 90.0,
          "minimum": -90.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Latitude",
      "description": "Search centre latitude in decimal degrees, used with longitude (0 = not set)."
    },
    "longitude": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 180.0,
          "minimum": -180.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Longitude",
      "description": "Search centre longitude in decimal degrees, used with latitude (0 = not set)."
    },
    "radius_meters": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Radius Meters",
      "description": "Radius around latitude/longitude in metres (0 = default)."
    },
    "check_in": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Check In",
      "description": "Check-in date, YYYY-MM-DD (today or later). Prices need check_in and check_out."
    },
    "check_out": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Check Out",
      "description": "Check-out date, YYYY-MM-DD, after check_in."
    },
    "guests": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Guests",
      "description": "Number of adult guests (0 = default of 2)."
    },
    "rooms": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rooms",
      "description": "Number of rooms (0 or omitted: one per two adults, rounded up and capped at four). Prices are only quoted for one room."
    },
    "budget_min": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Budget Min",
      "description": "Minimum price per night (request currency)"
    },
    "budget_max": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Budget Max",
      "description": "Maximum price per night (request currency)"
    },
    "daily_budget_min": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Daily Budget Min",
      "description": "Synonym of budget_min (per-night floor); wins if both sent"
    },
    "daily_budget_max": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Daily Budget Max",
      "description": "Synonym of budget_max (per-night cap); wins if both sent"
    },
    "currency": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 3
        },
        {
          "type": "null"
        }
      ],
      "title": "Currency",
      "description": "ISO 4217 currency code for prices, e.g. 'EUR', 'USD', 'GBP'."
    },
    "amenities": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Amenities",
      "description": "Amenities the hotel must have, e.g. ['wifi', 'pool']."
    },
    "vibe": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Vibe",
      "description": "What the traveller is looking for, as free-text phrases or tags, e.g. ['boutique design hotel'] or ['romantic', 'quiet']."
    },
    "hotel_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Hotel Name",
      "description": "Hotel name or part of it, e.g. 'Four Seasons'."
    },
    "limit": {
      "type": "integer",
      "maximum": 50.0,
      "minimum": 1.0,
      "title": "Limit",
      "description": "Maximum number of results, 1-20 without an API key (1-50 with one). Larger values are reduced to the maximum.",
      "default": 20
    },
    "include_rates": {
      "type": "boolean",
      "title": "Include Rates",
      "description": "Fetch live rates from booking scraper (adds ~30-45s). Requires an API key; ignored key-less",
      "default": false
    }
  },
  "type": "object"
}