主题
网站技术聚合分析接口
接口说明
Aggregation Technologies 接口用于返回:与您指定技术同时被网站广泛使用的热门技术列表。 除直接指定某个技术外,您也可以传技术分组(group)、技术类别(category)或网站 meta keywords 中的(keyword),以获得更宽泛的聚合统计结果。
请求方式: POST接口地址: https://api.seermartech.cn/v3/domain_analytics/technologies/aggregation_technologies/live
参考计费: 按请求计费,扣费以响应头 X-SeerMarTech-Charge-CNY 为准。 频率限制: 最多 2000 次请求/分钟。
所有 POST 数据使用 UTF-8 编码的 JSON 格式,请求体为 JSON 数组:
[{ ... }]
请求参数
至少需要传以下 4 个字段中的 一个:group、category、technology、keyword
| 字段名 | 类型 | 说明 |
|---|---|---|
group | string | 目标技术分组 ID。若未指定 technology、category、keyword,则此字段填。示例:"marketing"。完整分组 ID 可参考 /v3/domain_analytics/technologies/technologies |
category | string | 目标技术类别 ID。若未指定 group、keyword、technology,则此字段填。示例:"crm"。完整类别 ID 可参考 /v3/domain_analytics/technologies/technologies |
technology | string | 目标技术名称。若未指定 group、keyword、category,则此字段填。示例:"Salesforce"。完整技术列表可参考 /v3/domain_analytics/technologies/technologies |
keyword | string | 域名 meta keywords 中的目标。若未指定 group、category、technology,则此字段填。需使用 UTF-8 编码。示例:"seo" |
mode | string | 搜索模式,可选。支持:as_is(精确匹指定的 group/category/technology),entry(部分匹)。默认:as_is |
filters | array | 结果过滤条件数组,可选。最多支持 8 个过滤条件,条件之间需使用逻辑运算符 and 或 or 连接 |
order_by | array | 结果排序规则,可选。最多支持 3 条排序规则 |
internal_groups_list_limit | integer | 返回结果中相同 group 的最大数量限制。默认:5;最小:1;最大:10000 |
internal_categories_list_limit | integer | 同一 group 下相同 category 的最大返回数量。默认:5;最小:1;最大:10000 |
internal_technologies_list_limit | integer | 同一 category 下相同 technology 的最大返回数量。默认:10;最小:1;最大:10000 |
internal_list_limit | integer | 对相同 category、group、technology 项的统一数量限制。若设置此字段,将忽略 internal_groups_list_limit、internal_categories_list_limit、internal_technologies_list_limit。默认:10;最小:1;最大:10000 |
limit | integer | 返回技术数量上限。默认:100;最大:10000 |
offset | integer | 结果偏移量。默认:0;最大:9999。例如设置为 10 时,将跳过前 10 条结果 |
tag | string | 自定义任务标识,可选,最大长度 255 字符。可用于请求与响应结果的对应追踪 |
filters 过滤规则
filters 支持以下操作符:
<<=>>==<>innot_inlikenot_like
说明:
like和not_like可合%使用,匹任意长度字符串- 条件之间需使用
and或or连接 - 最多可同时设置
8个过滤条件
可用于过滤的字段:
domain_ranklast_visitedcountry_iso_codelanguage_codecontent_language_code
以上过滤字段来源于
/v3/domain_analytics/technologies/filters中domain_technology_item的可过滤参数。
filters 示例
json
[
["country_iso_code", "=", "US"],
"and",
["domain_rank", ">", 800]
]order_by 排序规则
order_by 可按以下字段排序:
groups_countcategories_counttechnologies_count
排序方式:
asc:升序desc:降序
写法示例:
json
["groups_count,desc"]多个排序规则示例:
json
["groups_count,desc", "categories_count,asc"]默认排序:
json
["groups_count,desc"]响应结构
接口返回 JSON 编码数据,顶层 tasks 数组。
顶层字段
| 字段名 | 类型 | 说明 |
|---|---|---|
version | string | 当前 API 版本 |
status_code | integer | 通用状态码。完整列表参考 /v3/appendix/errors |
status_message | string | 通用状态信息。完整列表参考 /v3/appendix/errors |
time | string | 执行耗时,单位:秒 |
cost | float | 本次请求总成本,单位:USD |
tasks_count | integer | tasks 数组中的任务数量 |
tasks_error | integer | 返回错误的任务数量 |
tasks | array | 任务数组 |
tasks 数组字段
| 字段名 | 类型 | 说明 |
|---|---|---|
id | string | 任务唯一标识,UUID 格式 |
status_code | integer | 任务状态码,范围通常为 10000-60000。完整列表参考 /v3/appendix/errors |
status_message | string | 任务状态说明 |
time | string | 任务执行耗时,单位:秒 |
cost | float | 任务成本,单位:USD |
result_count | integer | result 数组中的数量 |
path | array | URL 路径 |
data | object | 回显请求中提交的参数 |
result | array | 结果数组 |
result 数组字段
| 字段名 | 类型 | 说明 |
|---|---|---|
total_count | integer | 数据库中与本次请求的结果总数 |
items_count | integer | 当前 items 数组返回的结果数量 |
items | array | 结果明细 |
items 数组字段
| 字段名 | 类型 | 说明 |
|---|---|---|
type | string | 素类型,固定为 aggregation_technologies_item |
group | string | 技术分组 ID |
category | string | 技术类别 ID |
technology | string | 技术名称 |
groups_count | integer | 使用该 group 下技术、且满足筛选条件的域名数量 |
categories_count | integer | 使用该 category 下技术、且满足筛选条件的域名数量 |
technologies_count | integer | 使用该 technology、且满足筛选条件的域名数量 |
请求示例
cURL
bash
curl --location --request POST "https://api.seermartech.cn/v3/domain_analytics/technologies/aggregation_technologies/live" \
--header "Authorization: Bearer smt_live_YOUR_KEY" \
--header "Content-Type: application/json" \
--data-raw '[
{
"technology": "Nginx",
"keyword": "WordPress",
"filters": [
["country_iso_code", "=", "US"],
"and",
["domain_rank", ">", 800]
],
"order_by": ["groups_count,desc"],
"limit": 10
}
]'Python
python
import requests
url = "https://api.seermartech.cn/v3/domain_analytics/technologies/aggregation_technologies/live"
headers = {
"Authorization": "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json"
}
data = [
{
"technology": "Nginx",
"keyword": "WordPress",
"filters": [
["country_iso_code", "=", "US"],
"and",
["domain_rank", ">", 800]
],
"order_by": ["groups_count,desc"],
"limit": 10
}
]
response = requests.post(url, headers=headers, json=data)
print(response.json)TypeScript
typescript
import axios from "axios";
const postData = [
{
technology: "Nginx",
keyword: "WordPress",
filters: [
["country_iso_code", "=", "US"],
"and",
["domain_rank", ">", 800]
],
order_by: ["groups_count,desc"],
limit: 10
}
];
axios({
method: "post",
url: "https://api.seermartech.cn/v3/domain_analytics/technologies/aggregation_technologies/live",
headers: {
Authorization: "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json"
},
data: postData
})
.then((response) => {
console.log(response.data);
})
.catch((error) => {
console.error(error);
});响应示例
json
{
"version": "0.1.20220926",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.2280 sec.",
"cost": 0,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"data": {
"api": "domain_analytics",
"function": "aggregation_technologies",
"se": "technologies",
"technology": "Nginx",
"keyword": "WordPress",
"filters": [
["country_iso_code", "=", "US"],
"and",
["domain_rank", ">", 800]
],
"order_by": ["groups_count,desc"],
"limit": 10
},
"result": [
{
"total_count": 0,
"items_count": 0,
"items": []
}
]
}
]
}错误处理
建议对以下层级的状态信息进行统一处理:
- HTTP 状态码
- 顶层
status_code/status_message - 任务级
tasks[].status_code/tasks[].status_message
完整错误码与状态说明请参考:
/v3/appendix/errors
使用说明与注意事项
- 请求体是 JSON 数组格式:
[{ ... }] - 单次请求中至少传一个检索维度:
group、category、technology、keyword filters最多支持 8 个条件order_by最多支持 3 条排序规则- 若设置了
internal_list_limit,则余internal_*_list_limit参数将失效 offset可用于分页或跳过前若干结果- 建议结合
filters与order_by使用,以获得更适合业务分析的技术聚合视图
实用场景
- 分析技术现:某项技术(如
Nginx、Salesforce),找出经常与一同出现的技术组合,用于竞品技术栈研究。 - 定位特定市场的网站技术偏好:通过
country_iso_code、language_code等过滤条件,识别不同国家或语言市场中的主流技术选型。 - 挖掘 WordPress 等生态技术:结合
keyword字段查询特定站点生态,发现常与某类站点一起使用的与平台。 - 筛选高质量网站的技术栈特征:使用
domain_rank等过滤条件,聚焦高价值网站,提炼常见技术组合,为建站或产品集成提供参考。 - 构建技术趋势和分类看板:按
groups_count、categories_count、technologies_count排序,生成技术分组、类别和产品的热度分布视图。