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 Activity Destinations

Last updated: 2026-03-03

How to Search for Activity Destinations

Before searching for activities, you need a destinationId. The autocomplete endpoint lets you search for destinations by name and returns matching results with the IDs required for all downstream API calls.

Endpoint

POST {{api_host}}/api/ext/activity/destinations

Headers

HeaderRequiredDescription
x-api-keyYesYour Xeni API key
Content-TypeYesapplication/json

Request Body

ParameterTypeRequiredDescription
textstringYesThe search query. Minimum 2 characters.

Example Request

JSON
{
  "text": "las vegas"
}

Response

FieldTypeDescription
statusbooleanWhether the request was successful.
dataarrayList of matching destinations.
data[].destinationIdstringUnique identifier for the destination. Use this in search and tag queries.
data[].destinationNamestringShort name of the destination (e.g., "Las Vegas").
data[].destinationTypestringThe type of destination (e.g., "CITY", "REGION").
data[].destinationCountrystringCountry where the destination is located.
data[].fullNamestringFull display name including region and country.
isActivityNamebooleanIndicates whether the search matched an activity name rather than a destination.

Example Response

JSON
{
  "status": true,
  "data": [
    {
      "destinationId": "737",
      "destinationName": "Las Vegas",
      "destinationType": "CITY",
      "destinationCountry": "United States",
      "fullName": "Las Vegas, Nevada, United States"
    }
  ],
  "isActivityName": false
}

Usage Notes

  • The text parameter must be at least 2 characters long. Shorter queries will not return results.
  • The isActivityName flag in the response indicates whether the match is based on a destination name or an activity name. This can help you adjust your UI accordingly.
  • Store the destinationId from the response — you will need it for retrieving tags and searching activities.

Next Steps

Once you have a destinationId, you can retrieve available filter tags for that destination. See How to Browse Activity Tags and Categories.

Was this article helpful?