Health

The health check endpoint enables you to periodically test the health of your MeiliSearch instance.

Get health

GET

/health

Get health of MeiliSearch server.

Example

<>

cURL

JS

Python

PHP

Java

Ruby

Go

Rust

Swift

Dart

curl \
  -X GET 'http://localhost:7700/health'
client.health()
client.health()
$client->health();
client.health();
client.health
client.Health()
// health() return an Err() if the server is not healthy, so this example would panic due to the unwrap
client.health().await.unwrap();
client.health { (result: Result<Health, Swift.Error>) in
    switch result {
    case .success:
        print("Healthy!")
    case .failure(let error):
        print(error)
    }
}
await client.health();

Response: 200 OK

{ "status": "available" }