Skip to main content
GET
/
sentiment-time-series
Sentiment Time Series
curl --request GET \
  --url https://server.promptwatch.com/api/v1/sentiment-time-series \
  --header 'X-API-Key: <api-key>'
[
  {
    "date": "2023-12-25",
    "value": 123
  }
]

Authorizations

X-API-Key
string
header
required

API key for authentication. Get yours from the Promptwatch dashboard under Settings > API Keys.

Query Parameters

startDate
string<date>

Start date for sentiment data (YYYY-MM-DD)

endDate
string<date>

End date for sentiment data (YYYY-MM-DD)

range
enum<string>
default:day

Time grouping for the data (day, week, or month)

Available options:
day,
week,
month
model
string

Filter by specific LLM model

promptTypes
enum<string>[]

Filter by prompt type

Available options:
ORGANIC,
BRAND_SPECIFIC,
COMPETITOR_COMPARISON
promptId
string

Filter by specific prompt ID

llmMonitorId
string

Filter by specific LLM monitor ID

Response

Default Response

date
string<date>
required
value
number | null
required