AnalyticLunch — Traffic & Competitive Intelligence
You have access to the AnalyticLunch API for querying website traffic data, managing tracking links, and pulling competitive intelligence reports.
Authentication
Every request must include the header x-api-key with the value from your config (skills.entries.analyticlunch.apiKey).
Base URL: INLINECODE2
Available Actions
1. List tracked websites
Returns all websites the user is tracking with their site IDs, domains, and status.
CODEBLOCK0
Use this first to discover site IDs needed for other calls.
2. Get traffic summary
Returns traffic overview for a specific site: total visitors, top sources, top pages, device split, daily visitor data, and conversion funnel.
CODEBLOCK1
Parameters:
- -
siteId (required): The traffic site ID from listtrafficsites - INLINECODE4 (optional):
7d, 30d, 6m, or 1y. Default: INLINECODE9
When reporting traffic data:
- - Lead with unique visitors (more meaningful than raw pageviews)
- Highlight the top 3 traffic sources
- Note any significant trends (pageviewsTrend, visitorsTrend are percentages vs previous period)
- If dailyData is present, mention any notable spikes or dips
3. List tracking links
Returns all tracking links for a site with their URLs, labels, and click data.
CODEBLOCK2
4. Create a tracking link
Creates a new tracking link to measure traffic from a specific source (Instagram bio, email footer, Google ad, etc.).
CODEBLOCK3
After creating, return the tracking URL to the user so they can place it.
5. Get latest weekly report
Returns the most recent weekly competitive intelligence report for the user, including ranking changes, new competitors, review trends, and visibility summaries.
CODEBLOCK4
How to call
Use exec with curl. Always include the API key header.
Example:
CODEBLOCK5
Example with POST:
CODEBLOCK6
When to use this skill
- - User asks about website traffic, visitors, page views, or traffic sources
- User asks "how's my website doing" or "how's traffic"
- User wants to create a tracking link for marketing
- User asks about competitors, rankings, or visibility
- User asks for their weekly report
- User mentions AnalyticLunch, traffic dashboard, or tracking links
Response style
Be conversational. Don't dump raw JSON. Summarize the key numbers and insights. For example:
"danstvmounting.com had 171 unique visitors this week. Top sources: Google Search (100), Facebook (65), Direct (24). Your most visited page after the homepage is the flush mount service page. Mobile traffic dominates at 85%."
AnalyticLunch — 流量与竞争情报
您可以通过AnalyticLunch API查询网站流量数据、管理跟踪链接以及获取竞争情报报告。
身份验证
每个请求都必须包含x-api-key标头,其值来自您的配置(skills.entries.analyticlunch.apiKey)。
基础URL:https://analyticlunch.com
可用操作
1. 列出已跟踪的网站
返回用户正在跟踪的所有网站,包括网站ID、域名和状态。
GET /api/traffic/sites
首先使用此接口获取其他调用所需的网站ID。
2. 获取流量摘要
返回特定网站的流量概览:总访客数、主要来源、热门页面、设备分布、每日访客数据以及转化漏斗。
GET /api/traffic/dashboard/{siteId}?period={period}
参数:
- - siteId(必填):来自listtrafficsites的流量网站ID
- period(可选):7d、30d、6m或1y。默认值:7d
报告流量数据时:
- - 以独立访客数为主(比原始页面浏览量更有意义)
- 突出显示前三大流量来源
- 注意任何显著趋势(pageviewsTrend、visitorsTrend是与上一期相比的百分比)
- 如果存在dailyData,提及任何显著的峰值或低谷
3. 列出跟踪链接
返回网站的所有跟踪链接,包括URL、标签和点击数据。
GET /api/traffic/links?siteId={siteId}
4. 创建跟踪链接
创建一个新的跟踪链接,用于测量来自特定来源(Instagram简介、邮件页脚、Google广告等)的流量。
POST /api/traffic/links
Content-Type: application/json
{
trafficSiteId: {siteId},
destinationUrl: https://example.com/page,
label: Instagram简介,
suggestedPlacement: instagram_bio
}
创建后,将跟踪URL返回给用户,以便他们进行部署。
5. 获取最新周报
返回用户最新的每周竞争情报报告,包括排名变化、新竞争对手、评论趋势和可见性摘要。
GET /api/weekly-report
调用方式
使用exec配合curl。始终包含API密钥标头。
示例:
bash
curl -s -H x-api-key: $ANALYTICLUNCHAPIKEY https://analyticlunch.com/api/traffic/sites
POST请求示例:
bash
curl -s -X POST -H x-api-key: $ANALYTICLUNCHAPIKEY -H Content-Type: application/json -d {trafficSiteId:SITE_ID,destinationUrl:https://example.com,label:我的链接} https://analyticlunch.com/api/traffic/links
何时使用此技能
- - 用户询问网站流量、访客数、页面浏览量或流量来源
- 用户问我的网站表现如何或流量情况如何
- 用户想为营销创建跟踪链接
- 用户询问竞争对手、排名或可见性
- 用户请求查看周报
- 用户提及AnalyticLunch、流量仪表盘或跟踪链接
回复风格
采用对话式风格。不要直接输出原始JSON。总结关键数字和洞察。例如:
danstvmounting.com本周有171位独立访客。主要来源:Google搜索(100)、Facebook(65)、直接访问(24)。首页之后访问量最高的页面是嵌入式安装服务页面。移动端流量占主导地位,达到85%。