The first agentic
website analytics

Every metric in your dashboard is available through a read-only API. Plug it into Claude, ChatGPT, or your own CLI and talk to your data in plain English. No exports, no dashboards to click through.

How it works

Your site collects data

Add the tracking script — under 1 KB, no cookies, one line of code. Visitors, sessions, pageviews, referrers, conversions, and revenue are tracked automatically.

Generate an API token

Go to site settings, generate a read-only API token. It gives access to every analytics endpoint — the same data you see in the dashboard, available programmatically.

Ask AI about your data

Connect via MCP server, paste the API token into Claude or ChatGPT, or use curl from your terminal. Ask questions in natural language. See the docs for setup instructions.

Full read-only API

Every endpoint returns JSON. Authenticate with a Bearer token. Query parameters for time period, timezone, pagination, and filters.

endpoints
GET

/api/ai

Unified endpoint — all analytics in one request, AI-optimized

GET

/api/ai?sections=overview

Visitors, sessions, bounce rate, avg duration, revenue

GET

/api/ai?sections=pages

Top pages with views, unique visitors, time on page

GET

/api/ai?sections=sources

Referrers, UTM campaigns, direct traffic

GET

/api/ai?sections=devices

Browser, OS, device type, country breakdown

GET

/api/ai?sections=realtime

Currently active visitors and pages

GET

/api/ai?sections=visitors

Individual visitor list with session history

GET

/api/ai?sections=sessions

Session list with duration, entry/exit pages

GET

/api/export

Export data as JSON or CSV

Works from your terminal

Fetch your analytics with a single curl command. Pipe it into jq, feed it to an LLM, or build your own reporting scripts.

terminal
# Fetch all analytics in one request
curl -H "Authorization: Bearer $SB_TOKEN" \
"https://srcbeam.com/api/ai?siteId=$SITE_ID&period=7d"
# Pipe into an LLM for instant analysis
curl -s -H "Authorization: Bearer $SB_TOKEN" \
"https://srcbeam.com/api/ai?siteId=$SITE_ID&sections=overview,pages" \
| claude "Analyze this traffic data and suggest improvements"
# Export sessions as CSV
curl -H "Authorization: Bearer $SB_TOKEN" \
"https://srcbeam.com/api/export?siteId=$SITE_ID&period=30d&format=csv&type=sessions"

Built-in prompt builder

You do not need to write prompts from scratch. Open site settings, choose what you want to analyze — traffic overview, top pages, sources, devices, visitor journeys, realtime — pick a time period, and sourcebeam generates a complete prompt for you.

The generated prompt tells your AI assistant exactly which endpoints to call, how to authenticate, and what analysis to perform. It includes instructions for visitor clustering, funnel reconstruction, and actionable recommendations. Copy it, paste it into Claude or ChatGPT, and get a full analysis in seconds.

sourcebeam generates a ready-to-use prompt for AI analysis. Choose the data you want, copy the prompt, paste it into Claude or ChatGPT. Full site analysis in one message.

Talk to your data

Real examples of what AI can tell you when it has access to your sourcebeam data.

Which traffic sources bring the highest-intent visitors?

Google organic brings 3.2x more multi-session visitors than Twitter. Direct traffic converts at 4.1%. Recommendation: double down on SEO content targeting long-tail queries.

Cluster my visitors by behavior over the last 7 days

Found 4 clusters: Quick bouncers (38%) — 1 page, <5s. Research browsers (29%) — 4+ pages, pricing visited. High-intent leads (21%) — signup page reached. Converted (12%) — completed purchase. The research browsers visit /pricing 2.3x but rarely convert — consider adding a comparison table.

Find drop-off points in my signup funnel

The /pricing to /signup step loses 68% of visitors. Average time on pricing: 12s — users aren't finding what they need. The /signup to /dashboard completion rate is 84%, which is healthy. Biggest lever: improve the pricing page.

What you can build

CLI dashboards

Build terminal-based analytics dashboards. Fetch data with curl, format with jq, display with your favorite TUI framework.

AI-powered reports

Generate weekly reports automatically. Let Claude analyze trends, cluster visitors, and write executive summaries.

Automated workflows

Trigger alerts when traffic spikes or drops. Pipe realtime data into Slack, email, or your own monitoring stack.

Custom integrations

Feed analytics data into your CRM, BI tool, or internal dashboard. The API returns clean JSON — integrate anywhere.

Your data, your tools

Starts at $5/month. Full API access on every plan.