/applications/trend - Get applications trend data

GET /applications/trend

Get trend data for applications over a specified period showing daily counts

Query parameters

  • period integer

    Number of days to include in trend data (default 7, max 365)

    Minimum value is 1, maximum value is 365. Default value is 7.

Responses

  • 200 application/json

    Applications trend data retrieved successfully

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object
      Hide data attributes Show data attributes object
      • period integer

        Trend period in days

        Values are 7, 30, 180, or 365.

      • period_label string

        Human-readable period label

      • current_total integer

        Total count at the end of the period

      • previous_total integer

        Total count at the start of the period

      • delta integer

        Absolute change between start and end

      • delta_percentage number(float)

        Percentage change between start and end

      • trend string

        Trend direction

        Values are up, down, or stable.

      • data_points array[object]

        Time-series data points with cumulative counts

        Hide data_points attributes Show data_points attributes object
        • date string(date)

          Date for this data point

        • count integer

          Cumulative count at this date

  • 401 application/json

    Unauthorized - invalid or missing token

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
  • 403 application/json

    Forbidden - insufficient permissions

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
GET /applications/trend
curl \
 --request GET 'https://collect.your-domain.com/api/applications/trend' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "code": 200,
  "message": "applications trend retrieved successfully",
  "data": {
    "period": 7,
    "period_label": "7 days",
    "current_total": 15,
    "previous_total": 12,
    "delta": 3,
    "delta_percentage": 25.0,
    "trend": "up",
    "data_points": [
      {
        "date": "2025-10-28",
        "count": 15
      }
    ]
  }
}
Response examples (401)
{
  "code": 401,
  "message": "invalid token",
  "data": {}
}
Response examples (403)
{
  "code": 403,
  "message": "insufficient permissions",
  "data": {}
}