GET

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

GET https://api.stayapi.com/v1/google_hotels/health

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

200 OK

Service Healthy

The Google Hotels service is operational and properly configured.

503 Service Unavailable

Service Degraded

The service is experiencing issues or is not properly configured.

Usage Tips

1

Monitoring Integration

Use this endpoint with monitoring services like UptimeRobot, Pingdom, or custom health check scripts to track service availability.

2

Pre-flight Checks

Call this endpoint before making search requests to verify service availability and avoid unnecessary API calls during outages.

3

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

Request
curl -X GET "https://api.stayapi.com/v1/google_hotels/health"
Response
{
  "status": "healthy",
  "provider": "google_hotels"
}