Skip to main content
GET
/
ai-analytics-service
/
api
/
public
/
v1
/
analytics
/
overview
/
trend
Get Overview Trend
curl --request GET \
  --url https://api.slatehq.ai/ai-analytics-service/api/public/v1/analytics/overview/trend \
  --header 'Authorization: <authorization>'
{
  "points": [
    {
      "date": "<string>",
      "brand": {
        "name": "<string>",
        "mentions": 123,
        "avgPosition": 123,
        "visibilityPct": 123
      },
      "competitors": [
        {
          "name": "<string>",
          "mentions": 123,
          "avgPosition": 123,
          "visibilityPct": 123
        }
      ]
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://slatehq.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Returns time series data points with brand and competitor metrics per date. Use this to visualize trends in mentions, position, and visibility over time.

Parameters

Authorization
string
required
Bearer token. Format: Bearer slat_<your-token>.
dateRange
integer
Number of days for the trend window (e.g., 7, 30, 90).
from
string
Start of date range. ISO 8601 format (e.g., 2026-02-01T00:00:00Z).
to
string
End of date range. ISO 8601 format.
brandId
number
Brand ID. Optional — if omitted, uses the workspace’s default brand.
topicId
number
Filter by topic ID.
platforms
string[]
Filter by one or more platforms: CHATGPT, PERPLEXITY, GOOGLE_AI_OVERVIEW, GOOGLE_AI_MODE, GEMINI, CLAUDE.
region
string
Filter by ISO country code for region.
bucket
string
Time bucket granularity. One of: day, week, month. Default: day.
topCompetitors
integer
Number of top competitors to include in the trend. Default: 5.
promptId
number
Filter by a single prompt ID.
promptIds
number[]
Filter by multiple prompt IDs. Maximum 10 values.

Response

Returns 200 OK with the trend data.
points
object[]
required
Array of time series data points.

Example

curl -s "https://api.slatehq.ai/ai-analytics-service/api/public/v1/analytics/overview/trend?dateRange=30&topicId=42&bucket=day&topCompetitors=3" \
  -H "Authorization: Bearer slat_YOUR_TOKEN"

Response

{
  "points": [
    {
      "date": "2026-02-10",
      "brand": {
        "name": "MyBrand",
        "mentions": 15,
        "avgPosition": 2.1,
        "visibilityPct": 80.0
      },
      "competitors": [
        {
          "name": "CompetitorA",
          "mentions": 10,
          "avgPosition": 3.2,
          "visibilityPct": 65.0
        }
      ]
    },
    {
      "date": "2026-02-11",
      "brand": {
        "name": "MyBrand",
        "mentions": 18,
        "avgPosition": 2.0,
        "visibilityPct": 82.0
      },
      "competitors": [
        {
          "name": "CompetitorA",
          "mentions": 12,
          "avgPosition": 3.0,
          "visibilityPct": 68.0
        }
      ]
    }
  ]
}

Status codes

StatusDescription
200Trend data returned.
400promptIds exceeds maximum of 10 values.
401Missing or invalid Bearer token. See Authentication.
500Internal server error.

What’s next