Skip to main content
GET
https://searchcompany-main.up.railway.app
/
api
/
visibility-score
/
{org_slug}
curl "https://searchcompany-main.up.railway.app/api/visibility-score/nike"
{
  "visibilityScore": {
    "value": 84,
    "trend": "+3%"
  },
  "history": [
    { "date": "Jul 01", "value": 65 },
    { "date": "Jul 08", "value": 68 },
    { "date": "Jul 15", "value": 72 },
    { "date": "Jul 22", "value": 76 },
    { "date": "Jul 29", "value": 79 },
    { "date": "Aug 05", "value": 81 },
    { "date": "Aug 12", "value": 84 }
  ]
}
Returns the current AI visibility score and 6 months of historical data for the dashboard charts.

Path Parameters

org_slug
string
required
The Clerk organization slug

Query Parameters

item_id
string
Filter by product/item ID

Response

visibilityScore
object
Current score with trend
history
array
Historical data points for charting

Visibility Score Object

FieldTypeDescription
valueintegerCurrent score (0-100)
trendstringWeek-over-week change (e.g., “+3%”, “-2%“)

History Entry

FieldTypeDescription
datestringFormatted date (e.g., “Jul 15”)
valueintegerScore on that date
curl "https://searchcompany-main.up.railway.app/api/visibility-score/nike"
{
  "visibilityScore": {
    "value": 84,
    "trend": "+3%"
  },
  "history": [
    { "date": "Jul 01", "value": 65 },
    { "date": "Jul 08", "value": 68 },
    { "date": "Jul 15", "value": 72 },
    { "date": "Jul 22", "value": 76 },
    { "date": "Jul 29", "value": 79 },
    { "date": "Aug 05", "value": 81 },
    { "date": "Aug 12", "value": 84 }
  ]
}

Notes

  • Returns 6 months of historical data
  • Score calculated from visibility across all 8 AI platforms
  • Trend compares current score to 7 days ago
  • Returns zeros if no data available yet