---
title: "Search partition data"
method: POST
path: "/api/{org_id}/_search_partition"
tags: ["Search"]
---

# Search partition data

`POST /api/{org_id}/_search_partition`

## 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_partition`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/_search_partition/post.ts> (a function with typed inputs; its response is checked against the schema)

Executes search queries on partitioned log data with specified parameters

## Path parameters

- `org_id` string, required

## Query parameters

- `type` string

## Request body

- object
  - `clusters` string[]
  - `encoding` 'base64' | 'Empty'
  - `end_time` integer, required
  - `histogram_interval` integer
  - `query_fn` string, nullable
  - `regions` string[]
  - `sampling_ratio` number, double, nullable
  - `search_type` 'ui' | 'dashboards' | 'reports' | 'alerts' | 'values' | 'other' | 'rum' | 'derivedstream' | 'searchjob' | 'download' | 'insights' | 'public_dashboard'
  - `sql` string, required
  - `start_time` integer, required
  - `streaming_output` boolean

## Response `200`

Success

- SearchPartitionResponse
  - `compressed_size` integer, required
  - `file_num` integer, required
  - `histogram_interval` integer, nullable
  - `is_histogram_eligible` boolean
  - `limit` integer, required
  - `max_query_range` integer, required
  - `order_by` 'desc' | 'asc', required
  - `original_size` integer, required
  - `partitions` array[], required
    - integer[]
  - `records` integer, required
  - `streaming_aggs` boolean, required
  - `streaming_id` string, nullable
  - `streaming_output` boolean, required
  - `trace_id` string, required

## Other responses

- `400`: Failure
- `500`: 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)
