---
title: "Return key-value pairs from a stream keyval zone"
method: GET
path: "/stream/keyvals/{streamKeyvalZoneName}"
tags: ["Stream Keyvals", "Method GET"]
---

# Return key-value pairs from a stream keyval zone

`GET /stream/keyvals/{streamKeyvalZoneName}`

Returns key-value pairs stored in a particular stream keyval shared memory [zone](https://nginx.org/en/docs/stream/ngx_stream_keyval_module.html#keyval_zone).

## Query parameters

- `key` string

## Response `200`

Success

- NginxStreamKeyvalZone — Contents of a stream keyval shared memory zone when using the GET method.

## Other responses

- `404` — Keyval not found (*KeyvalNotFound*), keyval key not found (*KeyvalKeyNotFound*), unknown version (*UnknownVersion*)

---

[API](https://skmtc.dev/nginx/apis/nginx-plus-rest-api.md) · [All operations](https://skmtc.dev/nginx/apis/nginx-plus-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nginx/nginx-plus-rest-api/revisions/533ae7834228/schema)
