---
title: "Get a runtime field"
method: GET
path: "/api/data_views/data_view/{viewId}/runtime_field/{fieldName}"
tags: ["data views"]
---

# Get a runtime field

`GET /api/data_views/data_view/{viewId}/runtime_field/{fieldName}`

**Spaces method and path for this operation:**

<div><span class="operation-verb get">get</span>&nbsp;<span class="operation-path">/s/{space_id}/api/data_views/data_view/{viewId}/runtime_field/{fieldName}</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Retrieve a single runtime field by name from a data view.

## Path parameters

- `fieldName` string, required
- `viewId` string, required

## Response `200`

Indicates a successful call.

- object
  - `data_view` object
  - `fields` object[]

## Other responses

- `404` — Object is not found.

---

[API](https://skmtc.dev/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.dev/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/elastic/kibana-apis/revisions/6fcca8783738/schema)
