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 Vacation Rental Locations

Last updated: 2026-03-03

How to Search for Vacation Rental Locations

Before searching for vacation rental properties, you need to find a destination using the autocomplete endpoint. This returns location data (coordinates, place ID) and a correlation ID that is required for the property search step.

Autocomplete Endpoint

The vacation rentals API uses the same autocomplete endpoint as hotels and resorts.

Request

GET /hotels/api/v2/autocomplete?key=miami
ParameterTypeRequiredDescription
keystringYesSearch keyword — a city name, region, state, or landmark

Optional Headers

HeaderRequiredDescription
Accept-LanguageNoLanguage code for localized results (e.g., "ar" for Arabic, "es" for Spanish)

Response

JSON
{
  "data": [
    {
      "id": "place_abc123",
      "country": "US",
      "full_name": "Miami, Florida, United States",
      "location": {
        "lat": 25.7617,
        "long": -80.1918
      },
      "name": "Miami",
      "state": "Florida",
      "type": "city"
    },
    {
      "id": "place_def456",
      "country": "US",
      "full_name": "Miami Beach, Florida, United States",
      "location": {
        "lat": 25.7907,
        "long": -80.13
      },
      "name": "Miami Beach",
      "state": "Florida",
      "type": "city"
    }
  ]
}

Response Fields

FieldTypeDescription
dataarrayList of matching locations
data[].idstringUnique place identifier (used as placeid in search)
data[].countrystringTwo-letter country code
data[].fullnamestringFull display name of the location
data[].location.latnumberLatitude coordinate
data[].location.longnumberLongitude coordinate
data[].namestringShort name of the location
data[].statestringState or province name
data[].typestringLocation type: "city", "state", or "multicity"

Location Types

TypeDescriptionExample
cityA specific cityMiami, Paris, Tokyo
stateA state, province, or regionFlorida, Bavaria, Tuscany
multicityA broader area spanning multiple citiesGreater Miami Area

Capturing the Correlation ID

The x-correlation-id is returned as a response header (not in the response body). You must capture this value and include it in the subsequent vacation rental search request.

Example (JavaScript)

JAVASCRIPT
const response = await fetch(
  'https://uat.travelapi.ai/hotels/api/v2/autocomplete?key=lake+tahoe',
  { headers: { 'Authorization': 'Bearer YOUR_TOKEN' } }
);

const correlationId = response.headers.get('x-correlation-id');
const data = await response.json();

// Use correlationId and data for the next search step
console.log('Correlation ID:', correlationId);
console.log('First result:', data.data[0]);

Example (Python)

PYTHON
import requests

response = requests.get(
'https://uat.travelapi.ai/hotels/api/v2/autocomplete',
params={'key': 'lake tahoe'},
headers={'Authorization': 'Bearer YOUR_TOKEN'}
)

correlation_id = response.headers.get('x-correlation-id')
data = response.json()

print(f"Correlation ID: {correlation_id}")
print(f"First result: {data['data'][0]}")

Multi-Language Support

To receive location names in a specific language, pass the Accept-Language header with a supported language code:

GET /hotels/api/v2/autocomplete?key=paris
Accept-Language: ar

This returns location names localized to the requested language where translations are available.

Values Needed for Search

From the autocomplete response, extract the following values for use in the vacation rental search:

ValueSourceUsed As
Correlation IDx-correlation-id response headerx-correlation-id request header in search
Latitudedata[].location.latlat in search body
Longitudedata[].location.longlong in search body
Place IDdata[].idplace_id in search body

Next Steps

With a location selected and a correlation ID captured, you are ready to search for available vacation rental properties.

Was this article helpful?