Langfuse icon

Langfuse

Log LLM traces, spans, generations, and scores to Langfuse, or query traces, prompts, datasets, sessions, and more via the Public API.

Public API → List Traces

AI-generated

Summary

Retrieve a paginated list of traces from Langfuse's Public API, optionally returning all results by auto-paginating.

Inputs

  • Query JSON — A JSON object specifying query string parameters such as page number and limit (e.g., {"page":1,"limit":20}). Only shown when 'Show Advanced Fields' is enabled.
  • Return All — A boolean to determine whether to fetch all traces across all pages (true) or only a single page limited by the 'limit' parameter (false). Defaults to false.

Output shape

a list of trace records typically structured with pagination metadata containing data array and meta information such as page, limit, totalItems, and totalPages.

If 'Return All' is true, the operation auto-paginates through all pages, concatenating results. Otherwise, it returns only the single page of results specified. Query parameters must be set in valid JSON format. Errors or partial successes from the API may be surfaced explicitly with counts and details.

Links

Discussion