# Single index

> One NGX index by code or slug.

```http
GET https://koboterminal.com/api/ngxdata/indices/{code}
```

**Plan:** Free and above (free key, no card).

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `code` | path | string | yes | Index code or slug, e.g. ASI, NGX30, ngx-bnk (e.g. `NGX30`) |

## Request

```bash
curl "https://koboterminal.com/api/ngxdata/indices/NGX30" \
  -H "X-API-Key: $KOBO_API_KEY"
```

```python
import os, requests

r = requests.get(
    "https://koboterminal.com/api/ngxdata/indices/NGX30",
    headers={"X-API-Key": os.environ["KOBO_API_KEY"]},
    timeout=30,
)
r.raise_for_status()
data = r.json()
```

```javascript
const res = await fetch("https://koboterminal.com/api/ngxdata/indices/NGX30", {
  headers: { "X-API-Key": process.env.KOBO_API_KEY },
});
if (!res.ok) throw new Error(`Kobo API ${res.status}`);
const data = await res.json();
```

## Response

Real response from the live API on 18 November 2026, trimmed to the first item of each list:

```json
{
  "success": true,
  "input": "NGX30",
  "code": "NGX30",
  "slug": "ngx-30",
  "updated_at": "2026-11-18T23:18:08.326Z",
  "data": {
    "code": "NGX30",
    "slug": "ngx-30",
    "name": "NGX 30",
    "description": "Tracks the top 30 companies in terms of market capitalization and liquidity.",
    "currentPrice": 9140.44,
    "changePercentage": -0.41,
    "currentDateTime": "2026-11-18T23:17:53.968Z",
    "points": 4442,
    "weekChange": -1.74,
    "monthChange": 0.43,
    "yearChange": 72.11,
    "inceptionChange": 1146.12
  }
}
```

## Use it from an AI assistant

This endpoint is available as the `get_index` tool on the Kobo Terminal MCP server (`https://koboterminal.com/mcp`). See [MCP server](https://koboterminal.com/docs/mcp).

## Errors

Standard errors apply: see [Rate limits and errors](https://koboterminal.com/docs/errors).
