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 Scores

AI-generated

Summary

List scores by querying the Langfuse Public API's scores endpoint with optional pagination parameters.

Inputs

  • Show Advanced Fields — Toggle to reveal optional fields for more detailed control over the query.
  • Query JSON — A JSON string representing query parameters to customize the listing, such as page number and limit (e.g., {"page":1,"limit":20}). Only visible when advanced fields are enabled.
  • Return All — Boolean to specify whether to return all score records by automatically paginating through all pages or only a limited subset.

Output shape

a list of score records returned by the Langfuse Public API under the 'data' key, potentially paginated according to input parameters; includes pagination metadata when applicable.

If 'Return All' is true, the node will paginate internally to fetch all records, otherwise it returns only the first page up to the specified limit or default page size. Query JSON must be a valid JSON string if used. Partial failures and API errors are surfaced but the exact error format depends on the Langfuse API response.

Examples

Example 1: Retrieve the first 20 scores with default pagination

Set Return All to false, leave Query JSON empty.

Example 2: Retrieve all scores without pagination limits

Set Return All to true.

Example 3: Retrieve page 2 with 50 scores per page

Enable Show Advanced Fields, set Query JSON to '{"page":2,"limit":50}'.

Links

Discussion