Visibility

Visibility time series

Get brand visibility history for a site. Returns time-series data and optional summary for your brand when userBrandOnly=true and your brand exists for the site.

GET/api/v1/brand-analysis/:siteId/history

Visibility time series

cURL

curl --request GET \
  --url 'https://app.indexly.ai/api/v1/brand-analysis/SITE_ID/history?days=<number>&userBrandOnly=<true|false>' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

{
  "data": [
    {
      "date": "2024-03-01",
      "Acme": 45,
      "CompetitorCo": 32
    },
    {
      "date": "2024-03-02",
      "Acme": 48,
      "CompetitorCo": 30
    }
  ],
  "brands": [
    {
      "name": "Acme",
      "website": "https://acme.example",
      "visibility": 62,
      "position": 2.3,
      "sentiment": 71
    },
    {
      "name": "CompetitorCo",
      "website": "https://competitor.example",
      "visibility": 55,
      "position": 3.1,
      "sentiment": 58
    }
  ]
}

Authorizations

X-API-Keystringheaderrequired

API key for authentication. Get yours from the Indexly dashboard under Settings → API Access

Path parameters

siteIdstringrequired

Site ID (must belong to your organization). Get it from your Indexly dashboard.

Query parameters

daysintegerdefault: 7

Number of days of history (default 7, maximum 30).

userBrandOnlybooleandefault: false

If true, response includes summary for your brand when available.

Response

200 application/json

Default Response

dataarrayrequiredTime-series rows: each object has date plus one numeric visibility per brand name (0–100)
brandsobject[]requiredPer-brand metrics (name, website, visibility, position, sentiment)
summaryobject | nullPresent when userBrandOnly=true: currentVisibility, dayChange, weekChange