---
type: api
title: Get searchable snapshot statistics
description: **All methods and paths for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/operation/operation-searchable-snapshots-stats
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/operation/operation-searchable-snapshots-stats
products:
  - Elasticsearch
---

# Get searchable snapshot statistics


Availability: 7.10+

## Paths

- `GET` `/{index}/_searchable_snapshots/stats`
- `GET` `/_searchable_snapshots/stats`

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

#### Path Parameters

- `index` (union IndexName | [] IndexName) — optional, leave it out to use `/_searchable_snapshots/stats`
  A comma-separated list of data streams and indices to retrieve statistics for.

## Description

## Required authorization

* Index privileges: `manage`
* Cluster privileges: `manage`

## Query String Parameters

- `level` (enum StatsLevel · default: indices)
  Return stats aggregated at cluster, index or shard level
  Values: `cluster`, `indices`, `shards`

## Response

`application/json`

- `stats` (object)
- `total` (object)
## Code Examples

#### Console

```console
GET /my-index/_searchable_snapshots/stats
```

#### JavaScript

```javascript
const response = await client.searchableSnapshots.stats({
  index: "my-index",
});
```

#### Python

```python
resp = client.searchable_snapshots.stats(
    index="my-index",
)
```

#### curl

```curl
curl -X GET "$ELASTICSEARCH_URL/my-index/_searchable_snapshots/stats" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.searchableSnapshots().stats(s -> s
    .index("my-index")
);
```

#### C#

```c#
var response = await client.SearchableSnapshots
    .StatsAsync(d1 => d1
        .Indices(new[] { "my-index" })
    );
```

#### PHP

```php
$resp = $client->searchableSnapshots()->stats([
    "index" => "my-index",
]);
```

#### Ruby

```ruby
response = client.searchable_snapshots.stats(
  index: "my-index"
)
```

