---
title: "List all fields with types and stats"
method: GET
path: "/fields"
tags: ["Schema"]
---

# List all fields with types and stats

`GET /fields`

Essential for autocomplete and the Fields sidebar in the Web UI.

## Query parameters

- `from` string
- `to` string
- `prefix` string
- `source` string

## Response `200`

Field list with stats

- FieldsResponse
  - `data` object, required
    - `fields` object[], required
      - `name` string, required
      - `type` 'string' | 'integer' | 'float' | 'boolean' | 'datetime', required
      - `count` integer, required
      - `coverage` number, required — Fraction of events containing this field (0.0–1.0)
      - `min` number
      - `max` number
      - `avg` number
      - `p50` number
      - `p99` number
      - `top_values` object[]
        - `value` unknown
        - `count` integer

---

[API](https://skmtc.net/lynxbase/apis/lynxdb-api.md) · [All operations](https://skmtc.net/lynxbase/apis/lynxdb-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lynxbase/lynxdb-api/revisions/4363a070c444/schema)
