---
title: "Time-series visibility for a brand or all competitors"
method: GET
path: "/visibility/trends"
tags: ["Metrics"]
---

# Time-series visibility for a brand or all competitors

`GET /visibility/trends`

## Query parameters

- `projectId` string, uuid, required
- `brandId` string, uuid
- `topicId` string, uuid
- `platform` 'chatgpt' | 'chatgpt_app' | 'claude' | 'gemini' | 'gemini_app' | 'grok_app' | 'grok_api' | 'perplexity' | 'perplexity_app' | 'google_app' | 'deepseek' — LLM platform identifier. Newer scraper-backed ids end in `_app`; `chatgpt`, `perplexity`, and `gemini` are legacy and not returned by current runs.
- `compare` boolean
- `days` integer
- `promptAttributes` string

## Response `200`

Successful response

- object
  - `series` TrendPoint[], required
    - `date` string, date
    - `visibilityScore` number
    - `avgPosition` number
    - `mentionCount` integer
    - `citationCount` integer
    - `shareOfVoice` number
    - `sentimentScore` number
  - `competitorSeries` object[]
    - `brandId` string, uuid, required
    - `brandName` string, required
    - `series` TrendPoint[], required
      - `date` string, date
      - `visibilityScore` number
      - `avgPosition` number
      - `mentionCount` integer
      - `citationCount` integer
      - `shareOfVoice` number
      - `sentimentScore` number
  - `summary` TrendSummary, required
    - `currentScore` number, required
    - `previousScore` number, required
    - `changePercent` number, required
    - `trend` 'up' | 'down' | 'flat', required

## Other responses

- `400` — Missing or invalid request parameter.
- `401` — Missing, malformed, or revoked API key.
- `402` — Monthly included API calls for your tier are used up (code `USAGE_LIMIT`). Body includes a `limit` object — `{ limitHit, currentTier, targetTier, feature, cap, used, resetAt }` — describing the cap and the upgrade that lifts it.
- `404` — Resource not found or not owned by your account.
- `429` — Rate limit, project cap, or daily quota hit. Body includes a `code` field.
- `500` — Server error. Retry; if persistent, contact support.

---

[API](https://skmtc.dev/openlens/apis/openlens-api.md) · [All operations](https://skmtc.dev/openlens/apis/openlens-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openlens/openlens-api/revisions/f8f03e555193/schema)
