# List indexers

URL: https://docs.hanzo.ai/docs/openapi/explorer/get-explorer-indexers

> Reports the deployment's chain indexer(s) and how far each has indexed.

`GET /v1/explorer/indexers`

> [Explorer →](https://docs.hanzo.ai/docs/openapi/explorer) · [All API references →](https://docs.hanzo.ai/docs/openapi) · [Get started →](https://docs.hanzo.ai/docs/guides)

|               |                                             |
| ------------- | ------------------------------------------- |
| **Address**   | `https://api.hanzo.ai/v1/explorer/indexers` |
| **Method**    | `GET`                                       |
| **Operation** | `get_explorer_indexers`                     |
| **Auth**      | `Authorization: Bearer $HANZO_API_KEY`      |

Reports the deployment's chain indexer(s) and how far each has
indexed. Identity and health come from the indexer's /health; the latest indexed
block (height + time) from its /v1/explorer/blocks. The row EXISTS if EITHER call
reaches the indexer; when the indexer is entirely unreachable the answer degrades
to an honest-EMPTY list at 200, not a 502. No chain HEAD is exposed by the indexer
REST, so `lag` is honestly omitted rather than fabricated.

## Request

`GET /v1/explorer/indexers` takes no parameters and no body — the credential is the whole request.

## Response

| Status    | Body                 | Meaning |
| --------- | -------------------- | ------- |
| `200`     | explorer.indexersOut | ok      |
| `default` | problem-details      | refused |

`200` body — 8 fields.

| Field                  | In   | Type                    | Always | Description                                                                                                                 |
| ---------------------- | ---- | ----------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------- |
| `indexers`             | body | explorer.indexerView\[] | —      | Indexers is one row per reachable chain indexer, or an empty list when the indexer is unreachable — never a fabricated row. |
| `indexers[].chain`     | body | string                  | —      | Chain is the chain this indexer indexes, as the indexer names it.                                                           |
| `indexers[].height`    | body | string                  | —      | Height is the latest INDEXED block height, as a decimal string.                                                             |
| `indexers[].id`        | body | string                  | —      | ID identifies the indexer: its chain name, else its chain id, else the brand.                                               |
| `indexers[].lag`       | body | string                  | —      | Lag is how far behind the chain HEAD this indexer is.                                                                       |
| `indexers[].network`   | body | string                  | —      | Network is the deployment's network tier: mainnet, testnet or devnet.                                                       |
| `indexers[].status`    | body | string                  | —      | Status is "degraded" when /health explicitly reports unhealthy, else "active".                                              |
| `indexers[].updatedAt` | body | string                  | —      | UpdatedAt is the latest indexed block's timestamp, RFC 3339 UTC.                                                            |

Failure carries the platform error shape — see [Errors](https://docs.hanzo.ai/docs/errors).

## Examples

**CLI**

```bash
hanzo explorer indexers
```

**SDK**

**.ts**

```ts
import { Configuration, ExplorerApi } from 'hanzoai';

const api = new ExplorerApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getExplorerIndexers();
```

**.py**

```python
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import ExplorerApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = ExplorerApi(client).get_explorer_indexers()
```

**.go**

```go
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.ExplorerAPI.GetExplorerIndexers(context.Background()).Execute()
if err != nil {
	return err
}
```

**.rs**

```rust
use hanzo_client::apis::{configuration::Configuration, explorer_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = explorer_api::get_explorer_indexers(&cfg, Default::default()).await?;
```

**.java**

```java
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.ExplorerApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new ExplorerApi(client).getExplorerIndexers();
```

**HTTP**

```bash
curl https://api.hanzo.ai/v1/explorer/indexers \
  -H "Authorization: Bearer $HANZO_API_KEY"
```

**MCP**

MCP reaches **explorer** through the `explorer` tool, which names its 2 operations with its own verbs — this one among them, under a name only MCP declares. `describe` explains any of them:

```bash
curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "describe",
         "arguments": {
           "op": "list_explorer_indexers"
         }
       }
     }'
```

---

[Explorer API](https://docs.hanzo.ai/docs/openapi/explorer) · [All Hanzo APIs](https://docs.hanzo.ai/docs/openapi) · [Interactive reference](https://docs.hanzo.ai/docs/openapi/reference)
