{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vistalink-com/json-schema/vistalink-com-hotel-detail-schema.json",
  "title": "HotelDetail",
  "description": "GET /v1/hotels/{hotel_id} response body.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vistalink-com-openapi.json#/components/schemas/HotelDetail",
  "properties": {
    "hotel_id": {
      "type": "string",
      "title": "Hotel Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "city": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "City"
    },
    "country": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Country"
    },
    "address": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Address"
    },
    "star_rating": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Star Rating"
    },
    "review_score": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Review Score"
    },
    "review_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Review Count"
    },
    "latitude": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Latitude"
    },
    "longitude": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Longitude"
    },
    "website_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Website Url"
    },
    "parley_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parley Url",
      "description": "Public hotel page on Parley (meetparley.ai) with the stay's dates; send users here to view or book the hotel."
    },
    "amenities": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Amenities"
    },
    "hero_image_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Hero Image Url",
      "description": "The hotel's primary image, for a card or page header. Null only when the hotel has no images."
    },
    "images": {
      "items": {
        "$ref": "#/$defs/HotelImage"
      },
      "type": "array",
      "title": "Images"
    },
    "rooms": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Rooms"
    },
    "price": {
      "anyOf": [
        {
          "$ref": "#/$defs/StayPrice"
        },
        {
          "type": "null"
        }
      ]
    },
    "reviews": {
      "items": {
        "$ref": "#/$defs/ReviewHighlight"
      },
      "type": "array",
      "title": "Reviews"
    },
    "guest_insights": {
      "anyOf": [
        {
          "$ref": "#/$defs/GuestInsights"
        },
        {
          "type": "null"
        }
      ]
    },
    "phone_number": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Phone Number"
    },
    "hotel_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Hotel Type"
    },
    "pricing_note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pricing Note",
      "description": "Why `price` is null (dates required, or no all-inclusive price for them)."
    }
  },
  "type": "object",
  "required": [
    "hotel_id",
    "name"
  ],
  "$defs": {
    "GuestInsightAspect": {
      "properties": {
        "type": {
          "type": "string",
          "title": "Type"
        },
        "summary": {
          "type": "string",
          "title": "Summary"
        },
        "sentiment": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sentiment"
        },
        "quote": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Quote"
        }
      },
      "type": "object",
      "required": [
        "type",
        "summary"
      ],
      "title": "GuestInsightAspect",
      "description": "Single guest insight aspect (e.g. food, staff)."
    },
    "GuestInsights": {
      "properties": {
        "highlights": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Highlights"
        },
        "aspects": {
          "items": {
            "$ref": "#/$defs/GuestInsightAspect"
          },
          "type": "array",
          "title": "Aspects"
        }
      },
      "type": "object",
      "title": "GuestInsights",
      "description": "Aggregated guest insights for a hotel."
    },
    "HotelImage": {
      "properties": {
        "url": {
          "type": "string",
          "title": "Url"
        },
        "label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Label"
        },
        "category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Category"
        }
      },
      "type": "object",
      "required": [
        "url"
      ],
      "title": "HotelImage",
      "description": "Image in hotel detail response."
    },
    "ReviewHighlight": {
      "properties": {
        "body": {
          "type": "string",
          "title": "Body"
        },
        "rating": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rating"
        }
      },
      "type": "object",
      "required": [
        "body"
      ],
      "title": "ReviewHighlight",
      "description": "Short guest review snippet for social proof."
    },
    "StayPrice": {
      "properties": {
        "total": {
          "type": "number",
          "title": "Total",
          "description": "All-inclusive total for the whole stay, in `currency`."
        },
        "currency": {
          "type": "string",
          "title": "Currency",
          "description": "ISO 4217 currency of `total` (the requested currency)."
        },
        "includes_taxes_and_fees": {
          "type": "boolean",
          "title": "Includes Taxes And Fees",
          "description": "Always true: totals with an unknown tax basis are never returned.",
          "default": true
        },
        "check_in": {
          "type": "string",
          "format": "date",
          "title": "Check In"
        },
        "check_out": {
          "type": "string",
          "format": "date",
          "title": "Check Out"
        },
        "nights": {
          "type": "integer",
          "title": "Nights"
        },
        "adults": {
          "type": "integer",
          "title": "Adults",
          "default": 2
        },
        "rooms": {
          "type": "integer",
          "title": "Rooms",
          "default": 1
        },
        "source_total": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source Total",
          "description": "The same total in the currency it was observed in."
        },
        "source_currency": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source Currency"
        },
        "observed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Observed At",
          "description": "When this price was observed."
        }
      },
      "type": "object",
      "required": [
        "total",
        "currency",
        "check_in",
        "check_out",
        "nights"
      ],
      "title": "StayPrice",
      "description": "The price of one specific stay.\n\nOnly present when the request carried both ``check_in`` and\n``check_out``. Always the all-inclusive total (taxes and fees included)\nfor the whole stay, in ``currency``, for one room and ``adults`` guests,\nfrom a scrape no older than 72 hours."
    }
  }
}