---
type: api
title: Get cluster info
description: Get basic build, version, and cluster information.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/operation/operation-info
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/operation/operation-info
products:
  - Elasticsearch
---

# Get cluster info

Availability:

## Paths

- `GET` `/`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/authentication#basicauth)
- [Bearer auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/authentication#bearerauth)

## Description

Get basic build, version, and cluster information.
::: In Serverless, `version.number` always reports the next target Elasticsearch release version at the time of the request. Serverless does not track to a traditional release versioning model; it is continuously updated. The version number is provided to maintain compatibility with existing clients, but it is not meaningful for assessing feature availability. Clients should detect a Serverless environment by checking for `build_flavor: serverless`.

## Required authorization

* Cluster privileges: `monitor`

[Learn about Serverless differences](https://www.elastic.co/docs/deploy-manage/deploy/elastic-cloud/differences-from-other-elasticsearch-offerings)

## Response

`application/json`

- `cluster_name` (string Name)
  The responding cluster's name.
- `cluster_uuid` (string)
- `name` (string Name)
  The responding node's name.
- `tagline` (string)
- `version` ({} ElasticsearchVersionInfo)
  Version information for the Elasticsearch cluster. In Serverless, `version.number` always reports the next target Elasticsearch release version at the time of the request, not an actual deployed version. The version number is provided to maintain client compatibility but is not meaningful for assessing feature availability. Use `build_flavor: serverless` to detect a Serverless environment.
  - `build_date` (DateTime)
    The Elasticsearch Git commit's date.
  - `build_flavor` (string)
    The build flavor. For example, `default`.
  - `build_hash` (string)
    The Elasticsearch Git commit's SHA hash.
  - `build_snapshot` (boolean)
    Indicates whether the Elasticsearch build was a snapshot.
  - `build_type` (string)
    The build type that corresponds to how Elasticsearch was installed.
For example, `docker`, `rpm`, or `tar`.
  - `lucene_version` (string)
    The version number of Elasticsearch's underlying Lucene software.
  - `minimum_index_compatibility_version` (string)
    The minimum index version with which the responding node can read from disk.
  - `minimum_wire_compatibility_version` (string)
    The minimum node version with which the responding node can communicate.
Also the minimum version from which you can perform a rolling upgrade.
  - `number` (string)
    The Elasticsearch version number.

::: IMPORTANT: For Serverless deployments, this static value is always `8.11.0` and is used solely for backward compatibility with legacy clients.
 Serverless environments are versionless and automatically upgraded, so this value can be safely ignored.
## Code Examples

#### Console

```console
GET /
```

#### JavaScript

```javascript
const response = await client.info();
```

#### Python

```python
resp = client.info()
```

#### curl

```curl
curl -X GET "$ELASTICSEARCH_URL/" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.info();
```

#### C#

```c#
var response = await client.InfoAsync();
```

#### PHP

```php
$resp = $client->info();
```

#### Ruby

```ruby
response = client.info
```

## Response Examples

#### Stack response

A successful response from `GET /`.

```json
{
  "name": "instance-0000000000",
  "cluster_name": "my_test_cluster",
  "cluster_uuid": "zk-HjQtYQGyL3NFSSu7InA",
  "version": {
    "number": "9.1.0",
    "build_flavor": "default",
    "build_type": "docker",
    "build_hash": 0,
    "build_date": "2025-07-09T22:10:13.578Z",
    "build_snapshot": false,
    "lucene_version": "10.2.2",
    "minimum_wire_compatibility_version": "8.19.0",
    "minimum_index_compatibility_version": "8.0.0"
  },
  "tagline": "You Know, for Search"
}
```

#### Serverless response

A successful response from `GET /` on Serverless. The `version.number` shown here is illustrative; Serverless always reports the next target Elasticsearch release version at the time of the request, so the actual value will differ from this example.

```json
{
  "name": "serverless",
  "cluster_name": "my_test_serverless_cluster",
  "cluster_uuid": "8xx0pi24Squnf4PFDOAtwg",
  "version": {
    "number": "9.4.0",
    "build_flavor": "serverless",
    "build_type": "docker",
    "build_hash": "6b73650b7c4192d4a7ef1d75a368dad7d28f1ae0",
    "build_date": "2026-03-31T12:25:05.021Z",
    "build_snapshot": false,
    "lucene_version": "10.4.0",
    "minimum_wire_compatibility_version": "9.4.0",
    "minimum_index_compatibility_version": "9.4.0"
  },
  "tagline": "You Know, for Search"
}
```

