curl --location 'https://geobaseapi.aibase.com/v1/openapi/execute' \
--header 'Content-Type: application/json' \
--header 'AIBase-API-Key: AIBase_xxxxxxxxxxxxxxxx' \
--header 'AIBase-Request-Id: req-20260924-001' \
--data '{"apiCode":"source.platform.overview","data":{"brandId":"brand-001","startDate":"2026-09-01","endDate":"2026-09-23"}}'
import os
import requests
api_key = os.environ["AIBASE_API_KEY"]
headers = {
"AIBase-API-Key": api_key,
"Content-Type": "application/json",
"AIBase-Request-Id": "req-20260924-001",
}
payload = {
"apiCode": "source.platform.overview",
"data": {
"brandId": "brand-001",
"startDate": "2026-09-01",
"endDate": "2026-09-23"
}
}
res = requests.post(
"https://geobaseapi.aibase.com/v1/openapi/execute",
headers=headers,
json=payload,
timeout=60,
)
res.raise_for_status()
body = res.json()
if body["code"] == 200:
print(body["data"])
const payload = {
"apiCode": "source.platform.overview",
"data": {
"brandId": "brand-001",
"startDate": "2026-09-01",
"endDate": "2026-09-23"
}
};
const res = await fetch("https://geobaseapi.aibase.com/v1/openapi/execute", {
method: "POST",
headers: {
"Content-Type": "application/json",
"AIBase-API-Key": process.env.AIBASE_API_KEY,
"AIBase-Request-Id": "req-20260924-001",
},
body: JSON.stringify(payload),
});
const body = await res.json();
if (body.code === 200) {
console.log(body.data);
}
String body = """
{
"apiCode": "source.platform.overview",
"data": {
"brandId": "brand-001",
"startDate": "2026-09-01",
"endDate": "2026-09-23"
}
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://geobaseapi.aibase.com/v1/openapi/execute"))
.header("Content-Type", "application/json")
.header("AIBase-API-Key", "AIBase_xxxxxxxxxxxxxxxx")
.header("AIBase-Request-Id", "req-20260924-001")
.POST(BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, BodyHandlers.ofString());
System.out.println(response.body());
{
"code": 200,
"msg": "成功",
"data": {
"totalPlatformNum": 128,
"brandRelatedPlatformNum": 36,
"competitorRelatedPlatformNum": 42,
"highFreqBrandPlatformNum": 15,
"priorityDetectUrlPlatformNum": 8,
"highPlatformNum": 22,
"websiteTypeCount": 12,
"websiteTypeTotalCount": 128
},
"timeStamp": 1788830174812
}
品牌引用来源洞察
查询指定品牌在指定时间范围内 AI 回答所引用来源渠道的整体概览,返回来源渠道总数、品牌/竞品相关来源渠道数、高频引用与优先检测来源渠道数及网站类型分布等汇总指标,用于快速掌握品牌在 AI 回答中的来源渠道覆盖情况。
POST
/
v1
/
openapi
/
execute
curl --location 'https://geobaseapi.aibase.com/v1/openapi/execute' \
--header 'Content-Type: application/json' \
--header 'AIBase-API-Key: AIBase_xxxxxxxxxxxxxxxx' \
--header 'AIBase-Request-Id: req-20260924-001' \
--data '{"apiCode":"source.platform.overview","data":{"brandId":"brand-001","startDate":"2026-09-01","endDate":"2026-09-23"}}'
import os
import requests
api_key = os.environ["AIBASE_API_KEY"]
headers = {
"AIBase-API-Key": api_key,
"Content-Type": "application/json",
"AIBase-Request-Id": "req-20260924-001",
}
payload = {
"apiCode": "source.platform.overview",
"data": {
"brandId": "brand-001",
"startDate": "2026-09-01",
"endDate": "2026-09-23"
}
}
res = requests.post(
"https://geobaseapi.aibase.com/v1/openapi/execute",
headers=headers,
json=payload,
timeout=60,
)
res.raise_for_status()
body = res.json()
if body["code"] == 200:
print(body["data"])
const payload = {
"apiCode": "source.platform.overview",
"data": {
"brandId": "brand-001",
"startDate": "2026-09-01",
"endDate": "2026-09-23"
}
};
const res = await fetch("https://geobaseapi.aibase.com/v1/openapi/execute", {
method: "POST",
headers: {
"Content-Type": "application/json",
"AIBase-API-Key": process.env.AIBASE_API_KEY,
"AIBase-Request-Id": "req-20260924-001",
},
body: JSON.stringify(payload),
});
const body = await res.json();
if (body.code === 200) {
console.log(body.data);
}
String body = """
{
"apiCode": "source.platform.overview",
"data": {
"brandId": "brand-001",
"startDate": "2026-09-01",
"endDate": "2026-09-23"
}
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://geobaseapi.aibase.com/v1/openapi/execute"))
.header("Content-Type", "application/json")
.header("AIBase-API-Key", "AIBase_xxxxxxxxxxxxxxxx")
.header("AIBase-Request-Id", "req-20260924-001")
.POST(BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, BodyHandlers.ofString());
System.out.println(response.body());
{
"code": 200,
"msg": "成功",
"data": {
"totalPlatformNum": 128,
"brandRelatedPlatformNum": 36,
"competitorRelatedPlatformNum": 42,
"highFreqBrandPlatformNum": 15,
"priorityDetectUrlPlatformNum": 8,
"highPlatformNum": 22,
"websiteTypeCount": 12,
"websiteTypeTotalCount": 128
},
"timeStamp": 1788830174812
}
查询指定品牌在指定时间范围内 AI 回答所引用来源渠道的整体概览,返回来源渠道总数、品牌/竞品相关来源渠道数、高频引用与优先检测来源渠道数及网站类型分布等汇总指标,用于快速掌握品牌在 AI 回答中的来源渠道覆盖情况。
完整响应类型可表示为
可按以上 TypeScript 类型定义解析响应数据。
执行模式:SYNC · 实时请求。
请求发出后服务端同步执行业务,结果直接在当前响应的
data 中返回,不存在异步任务、无需轮询、无需二次查询。接口速查
| 项目 | 当前接口约定 |
|---|---|
| 接口状态 | 已上线 |
| 请求方式 | POST |
| 请求地址 | https://geobaseapi.aibase.com/v1/openapi/execute |
| 业务标识 | source.platform.overview |
| 执行模式 | SYNC · 实时请求(直接返回,无需轮询) |
| 身份认证 | Header AIBase-API-Key |
| 请求格式 | application/json |
| 返回结构 | 对象(data 为单个统计对象) |
请求头
string
required
开发者 API Key,例如
AIBase_xxx。用于身份认证、有效期与调用权限校验,请仅在服务端保存和使用。string
required
固定为
application/json。string
开发者自定义请求 ID,用于请求追踪;不传时系统自动生成 UUID。
请求体
string
required
固定为
source.platform.overview。object
required
业务请求参数对象。
string
required
品牌 ID。所属品牌 ID,为空返回 4001
string
AI平台。按 AI 平台筛选,如 deepseek;不传返回全部平台
string
开始日期。格式 yyyy-MM-dd;默认最近 7 天
string
结束日期。格式 yyyy-MM-dd;默认今天,不能晚于今天
时间范围规则:startDate/endDate 不传时默认查询最近 7 天;endDate 晚于今天会被自动截断为今天;起止时间跨度最大 6 个月;开始日期晚于结束日期将直接报错。
curl --location 'https://geobaseapi.aibase.com/v1/openapi/execute' \
--header 'Content-Type: application/json' \
--header 'AIBase-API-Key: AIBase_xxxxxxxxxxxxxxxx' \
--header 'AIBase-Request-Id: req-20260924-001' \
--data '{"apiCode":"source.platform.overview","data":{"brandId":"brand-001","startDate":"2026-09-01","endDate":"2026-09-23"}}'
import os
import requests
api_key = os.environ["AIBASE_API_KEY"]
headers = {
"AIBase-API-Key": api_key,
"Content-Type": "application/json",
"AIBase-Request-Id": "req-20260924-001",
}
payload = {
"apiCode": "source.platform.overview",
"data": {
"brandId": "brand-001",
"startDate": "2026-09-01",
"endDate": "2026-09-23"
}
}
res = requests.post(
"https://geobaseapi.aibase.com/v1/openapi/execute",
headers=headers,
json=payload,
timeout=60,
)
res.raise_for_status()
body = res.json()
if body["code"] == 200:
print(body["data"])
const payload = {
"apiCode": "source.platform.overview",
"data": {
"brandId": "brand-001",
"startDate": "2026-09-01",
"endDate": "2026-09-23"
}
};
const res = await fetch("https://geobaseapi.aibase.com/v1/openapi/execute", {
method: "POST",
headers: {
"Content-Type": "application/json",
"AIBase-API-Key": process.env.AIBASE_API_KEY,
"AIBase-Request-Id": "req-20260924-001",
},
body: JSON.stringify(payload),
});
const body = await res.json();
if (body.code === 200) {
console.log(body.data);
}
String body = """
{
"apiCode": "source.platform.overview",
"data": {
"brandId": "brand-001",
"startDate": "2026-09-01",
"endDate": "2026-09-23"
}
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://geobaseapi.aibase.com/v1/openapi/execute"))
.header("Content-Type", "application/json")
.header("AIBase-API-Key", "AIBase_xxxxxxxxxxxxxxxx")
.header("AIBase-Request-Id", "req-20260924-001")
.POST(BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, BodyHandlers.ofString());
System.out.println(response.body());
返回参数
业务结果位于 data,为来源渠道概览汇总对象,各计数字段均为整数;无数据时 data 仍为对象,各计数返回 0。integer
来源渠道总数。去重后的来源平台渠道总数。
integer
品牌相关来源渠道数。提及品牌的来源渠道数量。
integer
竞品相关来源渠道数。仅提及竞品、未提及品牌的来源渠道数量。
integer
高频引用来源渠道数。引用次数大于 10 且提及品牌的来源渠道数。
integer
优先检测来源渠道数。引用次数大于 10,仅提及竞品未提及品牌的来源渠道数。
integer
高频引用平台数。引用次数大于 10 的来源渠道数。
integer
网站类型数。去重后的 websiteType 数量。
integer
网站类型对应平台总数。各网站类型下平台数量之和。
{
"code": 200,
"msg": "成功",
"data": {
"totalPlatformNum": 128,
"brandRelatedPlatformNum": 36,
"competitorRelatedPlatformNum": 42,
"highFreqBrandPlatformNum": 15,
"priorityDetectUrlPlatformNum": 8,
"highPlatformNum": 22,
"websiteTypeCount": 12,
"websiteTypeTotalCount": 128
},
"timeStamp": 1788830174812
}
接入注意事项
- apiCode 必须固定为 source.platform.overview。
- brandId 为必填参数,为空返回 4001(所需参数不足)。
- startDate/endDate 格式必须为 yyyy-MM-dd,默认最近 7 天,最大查询跨度 6 个月,endDate 不能晚于今天,开始日期晚于结束日期将直接报错。
- 返回结构为单一汇总对象;无数据时 data 仍为对象,各计数字段返回 0。
- highFreqBrandPlatformNum 为引用次数大于 10 且提及品牌的来源渠道数;priorityDetectUrlPlatformNum 为引用次数大于 10、仅提及竞品未提及品牌的来源渠道数。
- 全部计数字段均为整数,可直接用于概览卡片展示。
Java 返回对象
Java 返回对象
public class PlatformOverview {
private Integer totalPlatformNum;
private Integer brandRelatedPlatformNum;
private Integer competitorRelatedPlatformNum;
private Integer highFreqBrandPlatformNum;
private Integer priorityDetectUrlPlatformNum;
private Integer highPlatformNum;
private Integer websiteTypeCount;
private Integer websiteTypeTotalCount;
}
ReturnResult<PlatformOverview>(ReturnResult 定义见 6.2.5)。TypeScript 类型
TypeScript 类型
export interface PlatformOverview {
totalPlatformNum: number;
brandRelatedPlatformNum: number;
competitorRelatedPlatformNum: number;
highFreqBrandPlatformNum: number;
priorityDetectUrlPlatformNum: number;
highPlatformNum: number;
websiteTypeCount: number;
websiteTypeTotalCount: number;
}
本页的 cURL 与 Java 示例来自官方接口文档;Python 与 Node.js 示例为等价转写,未经服务端联调,请以实际返回结果为准。