Experiment logs
Get experiment logs summary
GET
Retrieves aggregated summary statistics for experiment traces matching the current filters. This is useful for getting overview metrics without retrieving individual traces.
Supported Filter Operators:
Response Fields:
Authentication
- API key:
Authorization: Bearer <API key>
Path Parameters
string
required
The ID of the experiment to get summary statistics for.
Query Parameters
string
Filter start time (ISO format).
string
Filter end time (ISO format).
POST Request Body (Optional)
For advanced filtering, you can send a POST request with filters in the body:=or"": Exact match!=or"not": Not equal>,>=,<,<=or"gt","gte","lt","lte": Numeric comparisonscontains: String contains (case-insensitive)startsWith: String starts withendsWith: String ends withinorIN: Value in listnot_inorNOT IN: Value not in list
For more filter operators and examples, see the Filters API Reference.
Examples
Response
total_count: Total number of traces matching filterstotal_cost: Sum of all trace costs (in dollars)total_tokens: Sum of all tokens (input + output)total_prompt_tokens: Sum of all input tokenstotal_completion_tokens: Sum of all output tokensavg_latency: Average latency across all traces (in seconds)
- Uses same filtering logic as list endpoint for consistency
- Returns zeros if no traces match the filters
- Supports both GET and POST methods (POST for advanced filtering)
- Efficient aggregation without loading individual trace data