Getting Started with the Xeni Activities APIHow to Book an ActivityHow to Browse Activity Tags and CategoriesHow to Cancel an Activity BookingHow to Check Activity AvailabilityHow to Get Activity DetailsHow to Retrieve Activity Booking DetailsHow to Search for Activities with FiltersHow to Search for Activity DestinationsCar Rental API - Getting StartedCar Rental API - Understanding Response FieldsHow to Book a Car RentalHow to Get Rental Car Details and Equipment Add-OnsHow to Retrieve or Cancel a Car Rental BookingHow to Search for Available Rental CarsHow to Search for Pickup LocationsHow to Use Car Rental Search FiltersDeals API Best Practices for IntegrationDeals API Frequently Asked QuestionsGetting Started with the Xeni Deals APIDeals API Request Parameters and Headers ReferenceDeals API Supported Currencies and LocalizationHow to Display Deals in Your ApplicationHow to Fetch Hotel Deals by LocationFlights API Error Codes and TroubleshootingGetting Started with the Xeni Flights APIHow to Book a FlightHow to Check Flight Availability and PricingHow to Confirm or Cancel a Flight BookingHow to Retrieve Fare Rules for a FlightHow to Retrieve Flight Booking DetailsHow to Search for Airports Using AutocompleteHow to Search for FlightsHow to Use Flight Search Filters, Sorting, and PaginationHow to Check Room Availability and PricingHow to Filter Vacation Rental ResultsHow to Get Resort Property Details, Amenities, and AccessibilityHow to Hold and Confirm a Resort BookingHow to Release a Resort HoldHow to Retrieve Resort Booking DetailsHow to Search for Available ResortsHow to Search for Resort DestinationsHow to Search for Vacation Rental LocationsHow to Search for Vacation RentalsHow to Use Resort Search Filters and SortingGetting Started with the Xeni Resorts APIResorts API: Understanding Booking Statuses and PoliciesGetting Started with the Vacation Rentals APIVacation Rentals Frequently Asked QuestionsVacation Rentals Supported Property TypesUnderstanding Async Search for Vacation RentalsAuthentication & API SignaturesBooking Hotels — Direct API & SSO CheckoutError Handling, Rate Limits & Best PracticesGetting Started with the Xeni Hotels APIManaging Bookings: Status, Retrieval & CancellationPricing Confirmation & Token LifecycleRetrieving Hotel Details & Room AvailabilitySearching for Hotels: Locations, Filters & PaginationSearching for HotelsSession Management & Correlation IDsAPI authentication and getting your API keys

How to Search for Resort Destinations

Last updated: 2026-03-03

How to Search for Resort Destinations

Before searching for available resort properties, you need a region code that identifies the destination. The autocomplete endpoint lets you search for destinations by keyword and returns matching cities, states, countries, and individual resorts along with their region codes.

Endpoint

GET {{apihost}}/resorts/api/v2/search?key={searchterm}

Required Headers

HeaderValueRequired
x-api-keyYour API keyYes
x-correlation-idUnique correlation identifierYes

Query Parameters

ParameterTypeRequiredDescription
keystringYesThe search keyword (e.g., "hawaii", "cancun", "maldives")

Example Request

GET {{api_host}}/resorts/api/v2/search?key=hawaii

Example Response

JSON
{
  "status": 200,
  "data": [
    {
      "name": "Hawaii",
      "full_name": "Hawaii, United States",
      "city": "",
      "state": "Hawaii",
      "country": "United States",
      "region": "aGF3YWlp",
      "type": "state",
      "popularity": 95,
      "location": {
        "lat": 19.8968,
        "lon": -155.5828
      }
    },
    {
      "name": "Maui",
      "full_name": "Maui, Hawaii, United States",
      "city": "Maui",
      "state": "Hawaii",
      "country": "United States",
      "region": "bWF1aQ==",
      "type": "city",
      "popularity": 88,
      "location": {
        "lat": 20.7984,
        "lon": -156.3319
      }
    }
  ]
}

Response Fields

FieldTypeDescription
namestringShort display name of the destination
full_namestringFull display name including parent geography
citystringCity name, if applicable
statestringState or province name, if applicable
countrystringCountry name
regionstringBase64-encoded region code. Required for the property search endpoint.
typestringOne of "resort", "city", "state", or "country"
popularitynumberRelative popularity score for ranking results
location.latnumberLatitude of the destination
location.lonnumberLongitude of the destination

Understanding the Region Code

The region field contains a Base64-encoded identifier that the Resorts API uses internally to scope property searches. You do not need to decode this value — pass it directly as the {xeniregioncode} path parameter when calling the property search endpoint.

Understanding Result Types

The type field tells you the geographic scope of each result:

  • resort — A specific resort property. Searching with this region code returns that single property.
  • city — A city-level destination. Returns all resorts in that city.
  • state — A state or province. Returns all resorts across the state.
  • country — A country-level destination. Returns all resorts in the country.

Choose the appropriate scope based on your use case. For a broad search, use a state or country result. For a targeted search, use a city or specific resort.

Error Responses

400 — Missing Search Key

Returned when the key query parameter is missing or empty.

JSON
{
  "message": "Missing required parameter: key",
  "status": 400
}

404 — No Results Found

Returned when no destinations match the search term.

JSON
{
  "message": "No results found",
  "status": 404
}

Best Practices

  • Implement typeahead — Call this endpoint as the user types to provide real-time destination suggestions. A debounce of 300ms is recommended.
  • Display the full_name — Show users the full name (e.g., "Maui, Hawaii, United States") for clarity, especially when multiple results share the same short name.
  • Store the region and location — You will need both the region code (for the search path parameter) and the latitude/longitude coordinates (for the search request body) in the next step.
  • Use popularity for sorting — Order autocomplete suggestions by the popularity field to surface the most relevant destinations first.

Was this article helpful?