Get historical KPI trends
Returns KPI data points from the most recent completed runs, ordered newest first. Use the `limit` query parameter to control how many runs to include (default 12, max 52).
GET /analysis/trends
Get historical KPI trends
Returns KPI data points from the most recent completed runs, ordered newest first. Use the `limit` query parameter to control how many runs to include (default 12, max 52).
Authentication: API key required (Bearer token)
Parameters
| Name | In | Required | Description |
|---|---|---|---|
limit | query | No | Maximum number of historical data points to return. |
provider | query | No | Filter summary calculations by provider ID. |
location | query | No | Filter summary calculations by exact ISO 3166-1 alpha-2 location code. |
tag | query | No | Filter summary calculations by prompt tag. |
Request Example
curl -X GET https://sellm.io/api/v1/analysis/trends \
-H "Authorization: Bearer sellm_your_api_key_here"
Responses
| Status | Description |
|---|---|
200 | Historical KPI trends |
401 | Unauthorized |
429 | Rate limited |
500 | Internal error |