HotelPlanet
Actions8
Overview
The node integrates with a hotel booking and management system, enabling users to search for hotels by name, description, or location. This operation is useful for travel agencies, booking platforms, or any workflow that requires finding hotels based on flexible search queries. For example, a user can input a city name or keywords related to hotel features to retrieve matching hotels quickly.
Properties
| Name | Meaning |
|---|---|
| Search Query | Search query string used to find hotels by name, description, or location |
Output
The output is a JSON object containing the API response data from the hotel search endpoint. It typically includes details about hotels matching the search query such as hotel names, descriptions, locations, ratings, prices, and amenities. The structure depends on the external API but generally provides comprehensive hotel information suitable for further processing or display.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating requests to the hotel booking system's API.
- The base URL of the API is obtained from the credentials; if not set, it defaults to
http://localhost:3000. - Uses the Axios HTTP client library to perform REST API calls.
Troubleshooting
- Common issues:
- Invalid or missing API credentials will cause authentication failures.
- Network connectivity problems may prevent reaching the API endpoint.
- Providing an empty or invalid search query might return no results or errors.
- Error messages:
- If the API returns an error, the node throws an error with the message from the API response.
- If the operation specified is unsupported, an error indicating "Operation [name] not supported" is thrown.
- Resolutions:
- Ensure valid API credentials are configured in n8n.
- Verify network access to the API server.
- Provide meaningful search queries to get relevant results.
- Use the "Continue On Fail" option to handle errors gracefully within workflows.
Links and References
- No direct links provided in the source code. Users should refer to their hotel booking system API documentation for detailed API response formats and additional capabilities.