Build on AI Sightline
Access your AI visibility data programmatically. Build custom dashboards, automate reporting, and integrate AI visibility data into your existing workflows.
RESTful API Endpoints
Comprehensive REST API with endpoints for visibility scores, platform results, competitor data, suggestions, and more. JSON responses with consistent pagination and error handling.
curl -X GET "https://aisightline.com/api/v1/visibility/scores" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
# Response:
{
"compositeScore": 78,
"platformScores": {
"google_aio": 85,
"chatgpt": 72,
"perplexity": 81
},
"trend": "+4.2%"
}Client Libraries
Use the API with any language. We provide code examples in cURL, JavaScript, and Python to get you started quickly. API keys are managed from your dashboard with granular permission controls.
// JavaScript
const response = await fetch(
'https://aisightline.com/api/v1/visibility/scores',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
},
}
);
const data = await response.json();
console.log(data.compositeScore); // 78Webhook Support
Set up webhooks to receive real-time notifications when your visibility score changes, when competitors make moves, or when new suggestions are generated. Configure threshold alerts to be notified only when it matters.
# Python
import requests
api_key = "YOUR_API_KEY"
headers = {"Authorization": f"Bearer {api_key}"}
# Create a webhook
requests.post(
"https://aisightline.com/api/v1/webhooks",
headers=headers,
json={
"url": "https://your-app.com/webhook",
"events": ["score.changed", "competitor.alert"],
"threshold": 5.0
}
)Rate Limits & Authentication
API keys are scoped per organization with configurable rate limits based on your plan. All requests are authenticated via Bearer tokens. Detailed usage analytics are available in your dashboard.