---
title: "Get search performance profile"
method: GET
path: "/api/{org_id}/search/profile"
tags: ["Search"]
---

# Get search performance profile

`GET /api/{org_id}/search/profile`

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

Retrieves detailed performance profiling information for search queries executed within a specified time range. This includes execution timing, node information, component performance metrics, and resource usage statistics. Use this to analyze and optimize search performance, troubleshoot slow queries, and understand query execution patterns across your cluster. The trace must belong to a search executed in the requesting organization; traces of other organizations are answered as not found.

## Path parameters

- `org_id` string, required

## Query parameters

- `trace_id` string, required
- `start_time` integer
- `end_time` integer

## Response `200`

Success

- SearchInspector
  - `data_records` integer, required
  - `end_time` string, required
  - `events` SearchInspectorFields[], required
    - `cluster` string, nullable
    - `component` string, nullable
    - `data_records` integer, nullable
    - `desc` string, nullable
    - `duration` integer, nullable
    - `events` object[], nullable
    - `node_name` string, nullable
    - `org_id` string, nullable
    - `region` string, nullable
    - `scan_records` integer, nullable
    - `scan_size` integer, nullable
    - `search_role` string, nullable
    - `sql` string, nullable
    - `time_range` string[], nullable
    - `timestamp` string, nullable
    - `trace_id` string, nullable
  - `scan_records` integer, required
  - `scan_size` integer, required
  - `sql` string, required
  - `start_time` string, required
  - `total_duration` integer, 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)
