Google Hotels Health Check
Monitor the health and availability of the Google Hotels search service.
Overview
No Authentication Required
This health check endpoint does not require an API key and can be used for monitoring and uptime checks.
The Google Hotels health check endpoint provides real-time status information about the service's availability. Use this endpoint to monitor service health, configure uptime monitors, or verify API connectivity.
Endpoint URL
Response Format
The health check returns a simple JSON response indicating the service status.
Field | Type | Description |
---|---|---|
status
|
string | Service status. Returns "healthy" when operational. |
provider
|
string | Provider identifier. Always "google_hotels". |
Status Codes
Service Healthy
The Google Hotels service is operational and properly configured.
Service Degraded
The service is experiencing issues or is not properly configured.
Usage Tips
Monitoring Integration
Use this endpoint with monitoring services like UptimeRobot, Pingdom, or custom health check scripts to track service availability.
Pre-flight Checks
Call this endpoint before making search requests to verify service availability and avoid unnecessary API calls during outages.
Circuit Breaker Pattern
Implement circuit breaker patterns in your application using this health check to gracefully handle service disruptions.
Best Practices
Recommended Check Interval
For monitoring purposes, we recommend checking health status every 60 seconds to balance between timely detection and avoiding excessive requests.
- Implement exponential backoff when the service reports unhealthy status
- Cache health check results for at least 30 seconds to reduce redundant checks
- Set up alerts for extended periods of service unavailability
- Include health check calls in your application's startup sequence
Related Endpoints
curl -X GET "https://api.stayapi.com/v1/google_hotels/health"
const response = await fetch( "https://api.stayapi.com/v1/google_hotels/health" ); const data = await response.json(); if (data.status === "healthy") { console.log("Google Hotels service is healthy"); } else { console.error("Service is experiencing issues"); }
import requests response = requests.get( "https://api.stayapi.com/v1/google_hotels/health" ) data = response.json() if data["status"] == "healthy": print("Google Hotels service is healthy") else: print("Service is experiencing issues")
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://api.stayapi.com/v1/google_hotels/health"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $data = json_decode($response, true); if ($data["status"] === "healthy") { echo "Google Hotels service is healthy"; } else { echo "Service is experiencing issues"; }
require "net/http" require "json" uri = URI("https://api.stayapi.com/v1/google_hotels/health") response = Net::HTTP.get_response(uri) data = JSON.parse(response.body) if data["status"] == "healthy" puts "Google Hotels service is healthy" else puts "Service is experiencing issues" end
{ "status": "healthy", "provider": "google_hotels" }