Skip to main content
GET
/
api
/
v1
/
analytics
/
trends
Analytics Trends
curl --request GET \
  --url https://api.example.com/api/v1/analytics/trends
{
  "apiVersion": "v1",
  "kind": "AnalyticsTrends",
  "metadata": {
    "from": "2026-02-19T00:00:00Z",
    "to": "2026-03-19T15:00:00Z",
    "groupBy": "day"
  },
  "trends": [
    {
      "date": "2026-03-19",
      "total": 5,
      "bySeverity": {
        "critical": 1,
        "high": 2,
        "medium": 1,
        "low": 1
      }
    },
    {
      "date": "2026-03-18",
      "total": 8,
      "bySeverity": {
        "critical": 2,
        "high": 3,
        "medium": 2,
        "low": 1
      }
    }
  ]
}
from
string
Start date in RFC3339 format
to
string
End date in RFC3339 format
groupBy
string
default:"day"
Group results by day or week
{
  "apiVersion": "v1",
  "kind": "AnalyticsTrends",
  "metadata": {
    "from": "2026-02-19T00:00:00Z",
    "to": "2026-03-19T15:00:00Z",
    "groupBy": "day"
  },
  "trends": [
    {
      "date": "2026-03-19",
      "total": 5,
      "bySeverity": {
        "critical": 1,
        "high": 2,
        "medium": 1,
        "low": 1
      }
    },
    {
      "date": "2026-03-18",
      "total": 8,
      "bySeverity": {
        "critical": 2,
        "high": 3,
        "medium": 2,
        "low": 1
      }
    }
  ]
}