---
type: api
title: Get Watcher index settings
description: Get settings for the Watcher internal index (`.watches`).
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/operation/operation-watcher-get-settings
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v9/operation/operation-watcher-get-settings
products:
  - Elasticsearch
---

# Get Watcher index settings

Availability:

## Paths

- `GET` `/_watcher/settings`

- [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 settings for the Watcher internal index (`.watches`).
Only a subset of settings are shown, for example `index.auto_expand_replicas` and `index.number_of_replicas`.

## Query String Parameters

- `master_timeout` (string Duration · default: 30s)
  The period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.

## Response

`application/json`

- `index` (IndexSettings)
## Code Examples

#### Console

```console
GET /_watcher/settings
```

#### JavaScript

```javascript
const response = await client.watcher.getSettings();
```

#### Python

```python
resp = client.watcher.get_settings()
```

#### curl

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

#### Java

```java
client.watcher().getSettings(g -> g);
```

#### PHP

```php
$resp = $client->watcher()->getSettings();
```

#### Ruby

```ruby
response = client.watcher.get_settings
```

## Response Examples

#### Watcher get settings response example1

A successful response with two index settings.

```json
{
  "index": {
    "auto_expand_replicas": "0-4",
    "number_of_replicas": 0
  }
}
```

