---
title: "Get Dataset Variable Preview"
method: GET
path: "/datasets/{dataset_id}/variable_preview"
tags: ["datasets"]
---

# Get Dataset Variable Preview

`GET /datasets/{dataset_id}/variable_preview`

Return a variable preview derived from the sampled dataset input rows.

## Path parameters

- `dataset_id` string, uuid4, required

## Response `200`

Successful Response

- DatasetInputJsonField[]
  - `key` string, required
  - `values` JsonValue[], required
    - union
      - union
        - string
        - integer
        - number
        - boolean
      - JsonValue[]
      - object

## Other responses

- `422` — Validation Error

## Changes

> 14 revisions in range; 3 could not be searched.

- **2026-07-26** `05003e7835a2` — 1 info
  - the endpoint scheme security `ClassicAPIKeyHeader` was added to the API

[Change history](https://skmtc.dev/galileo/apis/galileo-api-server/changes/datasets/:dataset_id/variable_preview/get.md)

---

[API](https://skmtc.dev/galileo/apis/galileo-api-server.md) · [All operations](https://skmtc.dev/galileo/apis/galileo-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/galileo/galileo-api-server/revisions/8b1d1a4a933e/schema)
