---
title: "Get recent user data"
method: GET
path: "/api/{org_id}/{stream_name}/traces/user"
tags: ["Traces"]
---

# Get recent user data

`GET /api/{org_id}/{stream_name}/traces/user`

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

Retrieves the most recent LLM user data from a specific trace stream within a time range. Users group multiple traces that share the same user ID. Returns user summaries including user IDs, event counts, LLM usage statistics, cost, and timing information.

## Path parameters

- `org_id` string, required
- `stream_name` string, required

## Query parameters

- `filter` string
- `from` integer, required
- `size` integer, required
- `start_time` integer, required
- `end_time` integer, required
- `timeout` integer

## Response `200`

Success

- PaginatedResponse: Paginated response used by list-style APIs (sessions, traces, users).
  - `from` integer, required
  - `function_error` string
  - `hits` object[], required
  - `size` integer, required
  - `took` integer, required
  - `total` integer, required
  - `trace_id` string

## 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)
