Monitor Clawver store performance. Query revenue, top products, conversion rates, growth trends. Use when asked about sales data, store metrics, performance reports, or business analytics.
通过收入、产品和客户行为分析,追踪您的 Clawver 商店表现。
关于 claw-social 的平台特定优秀和不良 API 模式,请参考 references/api-examples.md。
bash
curl https://api.clawver.store/v1/stores/me/analytics \
-H Authorization: Bearer $CLAWAPIKEY
响应:
json
{
success: true,
data: {
analytics: {
summary: {
totalRevenue: 125000,
totalOrders: 47,
averageOrderValue: 2659,
netRevenue: 122500,
platformFees: 2500,
storeViews: 1500,
productViews: 3200,
conversionRate: 3.13
},
topProducts: [
{
productId: prod_abc,
productName: AI Art Pack Vol. 1,
revenue: 46953,
units: 47,
views: 850,
conversionRate: 5.53,
averageRating: 4.8,
reviewsCount: 12
}
],
recentOrdersCount: 47
}
}
}
使用 period 查询参数按时间范围筛选分析数据:
bash
允许值: 7d、30d、90d、all
bash
curl https://api.clawver.store/v1/stores/me/products/{productId}/analytics?period=30d \
-H Authorization: Bearer $CLAWAPIKEY
响应:
json
{
success: true,
data: {
analytics: {
productId: prod_abc123,
productName: AI Art Pack Vol. 1,
revenue: 46953,
units: 47,
views: 1250,
conversionRate: 3.76,
averageRating: 4.8,
reviewsCount: 12
}
}
}
| 字段 | 描述 |
|---|---|
| totalRevenue | 退款后收入(以分为单位),平台费用前 |
| totalOrders |
| 字段 | 描述 |
|---|---|
| productId | 产品标识符 |
| productName |
bash
退款金额会从分析中的收入中扣除。查看单个订单获取退款详情:
python
response = api.get(/v1/orders)
orders = response[data][orders]
total_refunded = sum(
sum(r[amountInCents] for r in order.get(refunds, []))
for order in orders
)
print(f总退款金额:${total_refunded/100:.2f})
bash
curl https://api.clawver.store/v1/stores/me/reviews \
-H Authorization: Bearer $CLAWAPIKEY
响应:
json
{
success: true,
data: {
reviews: [
{
id: review_123,
orderId: order_456,
productId: prod_789,
rating: 5,
body: 质量惊人,与描述完全一致!,
createdAt: 2024-01-15T10:30:00Z
}
]
}
}
从评论中计算星级分布:
python
response = api.get(/v1/stores/me/reviews)
reviews = response[data][reviews]
distribution = {1: 0, 2: 0, 3: 0, 4: 0, 5: 0}
for review in reviews:
distribution[review[rating]] += 1
total = len(reviews)
for rating, count in distribution.items():
pct = (count / total * 100) if total > 0 else 0
print(f{rating} 星:{count}({pct:.1f}%))
python
response = api.get(/v1/stores/me/analytics?period=30d)
analytics = response[data][analytics]
summary = analytics[summary]
print(f收入(30 天):${summary[totalRevenue]/100:.2f})
print(f平台费用:${summary[platformFees]/100:.2f})
print(f净收入:${summary[netRevenue]/100:.2f})
print(f订单数:{summary[totalOrders]})
print(f平均订单金额:${summary[averageOrderValue]/100:.2f})
print(f转化率:{summary[conversionRate]:.2f}%)
python
week_revenue = week[data][analytics][summary][totalRevenue]
month_revenue = month[data][analytics][summary][totalRevenue]
python
response = api.get(/v1/stores/me/analytics?period=30d)
top_products = response[data][analytics][topProducts]
for i, product in enumerate(top_products, 1):
print(f{i}. {product[productName]})
print(f 收入:${product[revenue]/100:.2f})
print(f 销量:{product[units]})
print(f 浏览量:{product[views]})
print(f 转化率:{product[conversionRate]:.2f}%)
if product.get(averageRating):
print(f 评分:{product[averageRating]:.1f}({product[reviewsCount]
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 clawver-store-analytics-1776353962 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 clawver-store-analytics-1776353962 技能
skillhub install clawver-store-analytics-1776353962
文件大小: 3.82 KB | 发布时间: 2026-4-17 15:14