Documentation
Everything you need to understand and integrate AgentSight.
Quick Start
1. Scan your website
Go to the homepage and enter any public URL. You'll get an AI visibility score across 5 dimensions in about 10 seconds. No signup required.
2. Read your report
Your report shows a score breakdown, specific findings ranked by severity, and actionable recommendations with code snippets.
3. Track and monitor
Verify your domain to unlock bot traffic tracking and AI mention monitoring. See which AI bots visit your site and whether AI engines recommend you.
Scoring Dimensions
AgentSight scores your website across 5 dimensions that determine how well AI agents can find and understand your content.
Sites that rely on JavaScript to render content are invisible to most AI crawlers. We check if your key content is accessible without executing JS.
Schema.org JSON-LD markup tells AI agents exactly what your business is, what you sell, and how you relate to other entities.
Your title, description, and Open Graph tags are the first thing AI reads. Incomplete metadata means AI guesses — often wrong.
If your page looks completely different with and without JavaScript, AI crawlers see a broken version of your site.
robots.txt, sitemap.xml, and llms.txt tell AI agents what they can access. Missing or misconfigured files mean AI skips your site.
API Reference
All endpoints accept and return JSON. Public endpoints require no authentication. Protected endpoints require X-Action-Token and X-Action-Token-Expires headers obtained through domain verification.
https://api.agentsight.eighti.appPublic Endpoints
POST /api/scanSubmit a URL for AI visibility scanning.
GET /api/scan/:idGet scan report by ID. Returns score, dimensions, findings, and recommendations.
GET /api/scansList scan history. Query params: page, limit, domain.
Protected Endpoints (require domain verification)
POST /api/tracking/tokensGenerate a bot tracking token for your domain.
GET /api/tracking/statsGet bot visit analytics. Query params: domain, days.
POST /api/mentions/queriesAdd a keyword to monitor for AI mentions.
POST /api/mentions/queries/:id/testTest a keyword against configured AI engines (Perplexity, ChatGPT).
GET /api/mentions/resultsGet mention monitoring history. Query params: domain, queryId, days.
npm Package
@agentsight/tracking is an AI bot detection and tracking middleware. It identifies 19+ AI bots and sends visit events to AgentSight.
npm install @agentsight/trackingDetect 19+ AI bots (GPTBot, ClaudeBot, PerplexityBot, etc.) · Classify bots as training crawlers or live agents · Fire-and-forget tracking events · Framework adapters for Next.js, Express, Hono, Cloudflare, Astro
// middleware.ts
import { createAgentsightMiddleware, matcherConfig } from '@agentsight/tracking/nextjs'
export const middleware = createAgentsightMiddleware({ token: 'ast_your_token' })
export const config = matcherConfigimport express from 'express'
import { createAgentsightMiddleware } from '@agentsight/tracking/express'
const app = express()
app.use(createAgentsightMiddleware({ token: 'ast_your_token' }))import { Hono } from 'hono'
import { agentsightMiddleware } from '@agentsight/tracking/hono'
const app = new Hono()
app.use('*', agentsightMiddleware({ token: 'ast_your_token' }))// functions/_middleware.ts
import { createAgentsightMiddleware } from '@agentsight/tracking/cloudflare'
export const onRequest = createAgentsightMiddleware({
token: 'ast_your_token',
})// src/middleware.ts
import { createAgentsightMiddleware } from '@agentsight/tracking/astro'
export const onRequest = createAgentsightMiddleware({ token: 'ast_your_token' })AI Mention Monitoring
Monitor whether AI search engines (Perplexity, ChatGPT) mention and recommend your website when users ask questions about your industry or keywords.
Currently supported engines: Perplexity (Sonar), ChatGPT (web search).