---
title: "Stream search results"
method: POST
path: "/api/{org_id}/_search_stream"
tags: ["Search"]
---

# Stream search results

`POST /api/{org_id}/_search_stream`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/_search_stream`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/_search_stream/post.ts> (a function with typed inputs; its response is checked against the schema)

Executes a search query and streams the results back in real-time using HTTP/2 server-sent events. This is ideal for large result sets or long-running queries where you want to receive data as it becomes available rather than waiting for the complete response. Results are streamed as JSON objects separated by newlines.

## Path parameters

- `org_id` string, required

## Query parameters

- `is_ui_histogram` boolean, required
- `is_multi_stream_search` boolean, required

## Request body

- string

## Response `200`

Success

## Other responses

- `400`: Failure

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
