GET / POST
/v1/effect-tracking效果追踪 API
把已经发布到外部平台的文章、媒体稿或内容页同步为内容资产,并持续回收它们在 AI 回答引用链路中的命中表现。
配额消耗
查询与资产管理不消耗
返回 meta.creditsConsumed = 0
数据来源
已有检测与监控结果
AI 可见性、关键词轮询、精准采样、品牌监控
调用要求
API Key + effect_tracking 权限
新建密钥默认开启
接口列表
| 方法 | 路径 | 说明 |
|---|---|---|
| GET | /v1/effect-tracking/assets | 列出当前账号下的活跃内容资产,支持 limit / offset / projectId / sourceType / citationStatus 等过滤参数 |
| POST | /v1/effect-tracking/assets | 新增一条要持续追踪的已发布内容;URL 重复返回 400 |
| POST | /v1/effect-tracking/assets/bulk | 批量导入内容资产(上限 200 条),支持 assets 数组或 rawText / content + format(urls / csv) |
| GET | /v1/effect-tracking/assets/{assetId} | 查询单条内容资产,可加 includeMatches=true 返回命中明细 |
| PATCH | /v1/effect-tracking/assets/{assetId} | 更新标题、平台、发布时间、作者、项目或状态(assetStatus:active / archived) |
| DELETE | /v1/effect-tracking/assets/{assetId} | 归档内容资产,不会删除历史命中记录 |
| GET | /v1/effect-tracking/assets/{assetId}/matches | 查询某篇内容的 AI 引用命中明细,支持 limit(1-200,默认 100) |
| GET | /v1/effect-tracking/matches | 查询最近命中动态(limit 默认 50),支持项目 / 来源 / 引用状态过滤,适合做外部通知或看板 |
| GET | /v1/effect-tracking/summary | 查询内容资产效果汇总、趋势、模型分布和 Top 内容,支持项目 / 来源 / 引用状态过滤 |
列表与过滤参数
以下参数以 query string 形式传给 GET /v1/effect-tracking/assets,其中 projectId / projectScope / sourceType / citationStatus 同样适用于 /matches 和 /summary。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
limit | number | 否 | 每页数量,1-200,默认 100。 |
offset | number | 否 | 偏移量,0-10000,默认 0。 |
projectId | number | 否 | 按项目 ID 过滤。 |
projectScope | string | 否 | 传 unassigned 时只返回未归属项目的内容。 |
sourceType | string | 否 | 按来源过滤:media_distribution(媒体分发)、manual(手动)、detection(检测自动归档)、api / api_bulk(API 导入)。 |
citationStatus | string | 否 | cited 只返回被引用内容,uncited 只返回未被引用内容。 |
数据对象说明
asset 内容资产对象
| 字段 | 类型 | 说明 |
|---|---|---|
id | number | 内容资产 ID。 |
url | string | 原始 URL;同时返回 normalized_url / canonical_url。 |
title | string | null | 内容标题。 |
platform | string | null | 平台或来源。 |
author_name | string | null | 作者或发布账号。 |
published_at | string | null | 发布时间。 |
source_type | string | 来源:media_distribution / manual / detection / api / api_bulk。 |
asset_status | string | active 活跃 / archived 已归档。 |
project_id | number | null | 归属项目 ID。 |
metadata | object | 扩展信息,含 campaignId、tags 等。 |
citation_count | number | 累计被 AI 引用次数(列表接口返回)。 |
strong_citation_count | number | 强引用次数(排除弱匹配,列表接口返回)。 |
cited_models | string[] | 引用过该内容的模型名列表(列表接口返回)。 |
last_cited_at | string | null | 最近一次被引用时间(列表接口返回)。 |
match 命中记录对象
| 字段 | 类型 | 说明 |
|---|---|---|
id | number | 命中记录 ID。 |
source_type | string | 来源检测类型:ai_visibility / keyword_polling / precision_sampling / brand_monitoring。 |
task_id | number | null | 来源任务 ID。 |
model_id / model_name | string | 引用该内容的模型。 |
query_text | string | null | 触发引用的用户问题。 |
reference_title / reference_url | string | null | AI 回答中引用的标题与链接。 |
match_type | string | 匹配类型,如 exact_match / strong_match / weak_match。 |
match_score | number | 匹配得分 0-100。 |
evidence | object | 命中证据片段。 |
matched_at | string | 命中时间。 |
新增内容资产
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
url | string | 是 | 已发布内容 URL。 |
title | string | 否 | 内容标题;不传时会尝试自动抓取页面标题。 |
platform | string | 否 | 内容平台或来源,例如 media、wechat、zhihu、xiaohongshu。 |
publishedAt | string | 否 | 发布时间,建议使用 ISO 8601 格式。 |
authorName | string | 否 | 作者或发布账号。 |
projectId | number | 否 | 归属项目 ID;不传则挂在账号默认空间下。 |
campaignId | string | 否 | 客户侧活动 ID,会写入 metadata,便于外部系统归因。 |
tags | string[] | 否 | 内容标签数组,会写入 metadata。 |
创建内容资产
1curl --request POST 'https://api.sheepgeo.com/v1/effect-tracking/assets' \2 --header 'Authorization: Bearer $SHEEPGEO_API_KEY' \3 --header 'Content-Type: application/json' \4 --data '{5 "url": "https://media.example.com/articles/sheepgeo-case-study",6 "title": "SheepGeo 案例研究",7 "platform": "media",8 "publishedAt": "2026-05-01T08:00:00.000Z",9 "authorName": "SheepGeo Team",10 "campaignId": "geo-launch-2026",11 "tags": [12 "媒体稿",13 "GEO"14 ]15}'响应示例
创建成功(POST /assets)
1{2 "success": true,3 "data": {4 "asset": {5 "id": 128,6 "platform": "media",7 "url": "https://media.example.com/articles/sheepgeo-case-study",8 "title": "SheepGeo 案例研究",9 "asset_status": "active",10 "metadata": {11 "campaignId": "geo-launch-2026",12 "tags": [13 "媒体稿",14 "GEO"15 ]16 },17 "created_at": "2026-05-24T10:30:00.000Z"18 },19 "queryUrl": "/v1/effect-tracking/assets/128",20 "matchesUrl": "/v1/effect-tracking/assets/128/matches"21 },22 "meta": {23 "requestId": "req_20260524_ef31",24 "creditsConsumed": 025 }26}批量导入(POST /assets/bulk)
1{2 "success": true,3 "data": {4 "created": [5 {6 "id": 129,7 "url": "https://mp.example.com/p/sheepgeo-guide"8 }9 ],10 "failed": [11 {12 "url": "https://invalid",13 "error": "URL 格式无效"14 }15 ],16 "total": 2,17 "successCount": 1,18 "failureCount": 119 },20 "meta": {21 "requestId": "req_20260817_a005",22 "creditsConsumed": 023 }24}资产列表(GET /assets)
1{2 "success": true,3 "data": {4 "assets": [5 {6 "id": 128,7 "url": "https://media.example.com/articles/sheepgeo-case-study",8 "title": "SheepGeo 案例研究",9 "platform": "media",10 "author_name": "SheepGeo Team",11 "published_at": "2026-05-01T08:00:00.000Z",12 "source_type": "api",13 "asset_status": "active",14 "project_id": null,15 "metadata": {16 "campaignId": "geo-launch-2026",17 "tags": [18 "媒体稿",19 "GEO"20 ]21 },22 "citation_count": 12,23 "strong_citation_count": 9,24 "cited_models": [25 "豆包",26 "DeepSeek"27 ],28 "last_cited_at": "2026-08-15T02:11:00.000Z",29 "created_at": "2026-05-24T10:30:00.000Z"30 }31 ],32 "count": 1,33 "total": 42,34 "limit": 100,35 "offset": 036 },37 "meta": {38 "requestId": "req_20260817_a001",39 "creditsConsumed": 040 }41}单条资产 + 命中明细(GET /assets/{assetId}?includeMatches=true)
1{2 "success": true,3 "data": {4 "asset": {5 "id": 128,6 "url": "https://media.example.com/articles/sheepgeo-case-study",7 "title": "SheepGeo 案例研究",8 "asset_status": "active"9 },10 "matches": [11 {12 "id": 901,13 "source_type": "keyword_polling",14 "task_id": 118,15 "model_id": "doubao",16 "model_name": "豆包",17 "query_text": "有哪些好用的 GEO 工具",18 "reference_title": "SheepGeo 案例研究",19 "reference_url": "https://media.example.com/articles/sheepgeo-case-study",20 "match_type": "exact_match",21 "match_score": 96,22 "evidence": {23 "snippet": "SheepGeo 案例显示 AI 可见性提升 40%..."24 },25 "matched_at": "2026-08-15T02:11:00.000Z"26 }27 ]28 },29 "meta": {30 "requestId": "req_20260817_a002",31 "creditsConsumed": 032 }33}更新资产(PATCH /assets/{assetId})
1{2 "success": true,3 "data": {4 "asset": {5 "id": 128,6 "title": "SheepGeo 案例研究(2026 修订版)",7 "platform": "media",8 "asset_status": "active"9 }10 },11 "meta": {12 "requestId": "req_20260817_a003",13 "creditsConsumed": 014 }15}归档资产(DELETE /assets/{assetId})
1{2 "success": true,3 "data": {4 "asset": {5 "id": 128,6 "asset_status": "archived"7 },8 "archived": true9 },10 "meta": {11 "requestId": "req_20260817_a004",12 "creditsConsumed": 013 }14}最近命中(GET /matches)
1{2 "success": true,3 "data": {4 "matches": [5 {6 "id": 902,7 "source_type": "ai_visibility",8 "model_name": "千问",9 "query_text": "sheepgeo 怎么样",10 "reference_url": "https://mp.example.com/p/sheepgeo-guide",11 "match_type": "strong_match",12 "match_score": 88,13 "matched_at": "2026-08-16T09:40:00.000Z"14 }15 ],16 "count": 1,17 "limit": 5018 },19 "meta": {20 "requestId": "req_20260817_a006",21 "creditsConsumed": 022 }23}效果汇总(GET /summary)
1{2 "success": true,3 "data": {4 "totals": {5 "totalAssets": 42,6 "citedAssets": 18,7 "totalCitations": 96,8 "recentCitedAssets": 9,9 "citationRate": 4310 },11 "topAssets": [12 {13 "id": 128,14 "title": "SheepGeo 案例研究",15 "platform": "media",16 "citation_count": 1217 }18 ],19 "modelDistribution": [20 {21 "label": "豆包",22 "value": 2823 }24 ],25 "platformDistribution": [26 {27 "label": "media",28 "value": 4629 }30 ],31 "sourceDistribution": [32 {33 "label": "api",34 "value": 3035 }36 ],37 "citationTrend": [38 {39 "label": "05-24",40 "value": 641 }42 ],43 "recentMatches": [44 {45 "id": 902,46 "model_name": "千问",47 "query_text": "sheepgeo 怎么样",48 "reference_url": "https://mp.example.com/p/sheepgeo-guide",49 "match_type": "strong_match",50 "matched_at": "2026-08-16T09:40:00.000Z"51 }52 ]53 },54 "meta": {55 "requestId": "req_20260524_ef32",56 "creditsConsumed": 057 }58}查询效果汇总
查询 summary
1curl --request GET 'https://api.sheepgeo.com/v1/effect-tracking/summary' \2 --header 'Authorization: Bearer $SHEEPGEO_API_KEY'