Skip to main content
POST
Python

Authorizations

X-Auth-Token
string
header
required

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Body

application/json
startDate
required
endDate
required
series
object[]
required
timeZone
string
required
query
string
filters
object
traceIds
string[]
negateFilters
boolean
groupBy
enum<string>
Available options:
topics.topics,
traces.trace_name,
metadata.user_id,
metadata.thread_id,
metadata.customer_id,
metadata.labels,
metadata.model,
metadata.span_type,
sentiment.thumbs_up_down,
events.event_type,
evaluations.evaluation_passed,
evaluations.evaluation_label,
evaluations.evaluation_processing_state,
error.has_error
groupByKey
string
timeScale
Allowed value: "full"

Response

Timeseries analytics data with current and previous periods

currentPeriod
object[]
required
previousPeriod
object[]
required
Last modified on May 19, 2026