---
type: api
title: Get information
description: The information provided by the API includes:
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/operation/operation-xpack-info
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/operation/operation-xpack-info
products:
  - Elasticsearch
---

# Get information

Availability:

## Paths

- `GET` `/_xpack`

- [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

The information provided by the API includes:

* Build information including the build number and timestamp.
* License information about the currently installed license.
* Feature information for the features that are currently enabled and available under the current license.

## Required authorization

* Cluster privileges: `monitor`

## Query String Parameters

- `categories` ([] enum XPackCategory)
  A comma-separated list of the information categories to include in the response.
For example, `build,license,features`.
  Values: `build`, `features`, `license`
- `accept_enterprise` (boolean) — deprecated
  If used, this otherwise ignored parameter must be set to true
- `human` (boolean · default: true)
  Defines whether additional human-readable information is included in the response.
In particular, it adds descriptions and a tag line.

## Response

`application/json`

- `build` ({} BuildInformation)
  - `date` (DateTime)
  - `hash` (string)
- `features` ({} Features)
  - `aggregate_metric` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `analytics` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `ccr` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `data_streams` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `data_tiers` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `enrich` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `enterprise_search` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `eql` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `esql` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `graph` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `gpu_vector_indexing` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `ilm` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `logstash` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `logsdb` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `ml` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `monitoring` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `rollup` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `runtime_fields` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `searchable_snapshots` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `security` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `slm` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `spatial` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `sql` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `transform` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `universal_profiling` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `voting_only` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `watcher` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
  - `archive` ({} Feature)
    - `available` (boolean)
    - `description` (string)
    - `enabled` (boolean)
    - `native_code_info` ({} NativeCodeInformation)
      - `build_hash` (string)
      - `version` (string)
- `license` ({} MinimalLicenseInformation)
  - `expiry_date_in_millis` (EpochTimeUnitMillis)
  - `mode` (enum LicenseType)
    Values: `missing`, `trial`, `basic`, `standard`, `dev`, `silver`, `gold`, `platinum`, `enterprise`
  - `status` (enum LicenseStatus)
    Values: `active`, `valid`, `invalid`, `expired`
  - `type` (enum LicenseType)
    Values: `missing`, `trial`, `basic`, `standard`, `dev`, `silver`, `gold`, `platinum`, `enterprise`
  - `uid` (string)
- `tagline` (string)
## Code Examples

#### Console

```console
GET /_xpack
```

#### JavaScript

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

#### Python

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

#### curl

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

#### Java

```java
client.xpack().info(i -> i);
```

#### C#

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

#### PHP

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

#### Ruby

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

## Response Examples

#### XPack info response example1

A successful response from `GET /_xpack`.

```json
{
  "build" : {
      "hash" : "2798b1a3ce779b3611bb53a0082d4d741e4d3168",
      "date" : "2015-04-07T13:34:42Z"
  },
  "license" : {
      "uid" : "893361dc-9749-4997-93cb-xxx",
      "type" : "trial",
      "mode" : "trial",
      "status" : "active",
      "expiry_date_in_millis" : 1542665112332
  },
  "features" : {
      "ccr" : {
        "available" : true,
        "enabled" : true
      },
    "aggregate_metric" : {
          "available" : true,
          "enabled" : true
      },
      "analytics" : {
          "available" : true,
          "enabled" : true
      },
      "archive" : {
          "available" : true,
          "enabled" : true
      },
      "enrich" : {
          "available" : true,
          "enabled" : true
      },
      "graph" : {
        "available" : true,
        "enabled" : true
      },
      "ilm" : {
        "available" : true,
        "enabled" : true
      },
      "logstash" : {
        "available" : true,
        "enabled" : true
      },
      "ml" : {
        "available" : true,
        "enabled" : true
      },
      "esql" : {
        "available" : true,
        "enabled" : true
      },
      "monitoring" : {
        "available" : true,
        "enabled" : true
      },
      "rollup": {
        "available": true,
        "enabled": true
      },
      "searchable_snapshots" : {
        "available" : true,
        "enabled" : true
      },
      "security" : {
        "available" : true,
        "enabled" : true
      },
      "slm" : {
        "available" : true,
        "enabled" : true
      },
      "spatial" : {
        "available" : true,
        "enabled" : true
      },
      "eql" : {
        "available" : true,
        "enabled" : true
      },
      "sql" : {
        "available" : true,
        "enabled" : true
      },
      "transform" : {
        "available" : true,
        "enabled" : true
      },
      "voting_only" : {
        "available" : true,
        "enabled" : true
      },
      "watcher" : {
        "available" : true,
        "enabled" : true
      },
      "data_streams" : {
        "available" : true,
        "enabled" : true
      },
      "data_tiers" : {
        "available" : true,
        "enabled" : true
      },
      "enterprise_search": {
        "available": true,
        "enabled": true
      },
      "universal_profiling": {
        "available": true,
        "enabled": true
      },
      "logsdb": {
        "available": true,
        "enabled": false
      }
  },
  "tagline" : "You know, for X"
}
```

