Skip to content

网站技术聚合分析接口

接口说明

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 个字段中的 一个groupcategorytechnologykeyword

字段名类型说明
groupstring目标技术分组 ID。若未指定 technologycategorykeyword,则此字段填。示例:"marketing"。完整分组 ID 可参考 /v3/domain_analytics/technologies/technologies
categorystring目标技术类别 ID。若未指定 groupkeywordtechnology,则此字段填。示例:"crm"。完整类别 ID 可参考 /v3/domain_analytics/technologies/technologies
technologystring目标技术名称。若未指定 groupkeywordcategory,则此字段填。示例:"Salesforce"。完整技术列表可参考 /v3/domain_analytics/technologies/technologies
keywordstring域名 meta keywords 中的目标。若未指定 groupcategorytechnology,则此字段填。需使用 UTF-8 编码。示例:"seo"
modestring搜索模式,可选。支持:as_is(精确匹指定的 group/category/technology),entry(部分匹)。默认:as_is
filtersarray结果过滤条件数组,可选。最多支持 8 个过滤条件,条件之间需使用逻辑运算符 andor 连接
order_byarray结果排序规则,可选。最多支持 3 条排序规则
internal_groups_list_limitinteger返回结果中相同 group 的最大数量限制。默认:5;最小:1;最大:10000
internal_categories_list_limitinteger同一 group 下相同 category 的最大返回数量。默认:5;最小:1;最大:10000
internal_technologies_list_limitinteger同一 category 下相同 technology 的最大返回数量。默认:10;最小:1;最大:10000
internal_list_limitinteger对相同 categorygrouptechnology 项的统一数量限制。若设置此字段,将忽略 internal_groups_list_limitinternal_categories_list_limitinternal_technologies_list_limit。默认:10;最小:1;最大:10000
limitinteger返回技术数量上限。默认:100;最大:10000
offsetinteger结果偏移量。默认:0;最大:9999。例如设置为 10 时,将跳过前 10 条结果
tagstring自定义任务标识,可选,最大长度 255 字符。可用于请求与响应结果的对应追踪

filters 过滤规则

filters 支持以下操作符:

  • <
  • <=
  • >
  • >=
  • =
  • <>
  • in
  • not_in
  • like
  • not_like

说明:

  • likenot_like 可合 % 使用,匹任意长度字符串
  • 条件之间需使用 andor 连接
  • 最多可同时设置 8 个过滤条件

可用于过滤的字段:

  • domain_rank
  • last_visited
  • country_iso_code
  • language_code
  • content_language_code

以上过滤字段来源于 /v3/domain_analytics/technologies/filtersdomain_technology_item 的可过滤参数。

filters 示例

json
[
 ["country_iso_code", "=", "US"],
 "and",
 ["domain_rank", ">", 800]
]

order_by 排序规则

order_by 可按以下字段排序:

  • groups_count
  • categories_count
  • technologies_count

排序方式:

  • asc:升序
  • desc:降序

写法示例:

json
["groups_count,desc"]

多个排序规则示例:

json
["groups_count,desc", "categories_count,asc"]

默认排序:

json
["groups_count,desc"]

响应结构

接口返回 JSON 编码数据,顶层 tasks 数组。

顶层字段

字段名类型说明
versionstring当前 API 版本
status_codeinteger通用状态码。完整列表参考 /v3/appendix/errors
status_messagestring通用状态信息。完整列表参考 /v3/appendix/errors
timestring执行耗时,单位:秒
costfloat本次请求总成本,单位:USD
tasks_countintegertasks 数组中的任务数量
tasks_errorinteger返回错误的任务数量
tasksarray任务数组

tasks 数组字段

字段名类型说明
idstring任务唯一标识,UUID 格式
status_codeinteger任务状态码,范围通常为 10000-60000。完整列表参考 /v3/appendix/errors
status_messagestring任务状态说明
timestring任务执行耗时,单位:秒
costfloat任务成本,单位:USD
result_countintegerresult 数组中的数量
patharrayURL 路径
dataobject回显请求中提交的参数
resultarray结果数组

result 数组字段

字段名类型说明
total_countinteger数据库中与本次请求的结果总数
items_countinteger当前 items 数组返回的结果数量
itemsarray结果明细

items 数组字段

字段名类型说明
typestring素类型,固定为 aggregation_technologies_item
groupstring技术分组 ID
categorystring技术类别 ID
technologystring技术名称
groups_countinteger使用该 group 下技术、且满足筛选条件的域名数量
categories_countinteger使用该 category 下技术、且满足筛选条件的域名数量
technologies_countinteger使用该 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": []
 }
 ]
 }
 ]
}

错误处理

建议对以下层级的状态信息进行统一处理:

  1. HTTP 状态码
  2. 顶层 status_code / status_message
  3. 任务级 tasks[].status_code / tasks[].status_message

完整错误码与状态说明请参考:

  • /v3/appendix/errors

使用说明与注意事项

  • 请求体是 JSON 数组格式:[{ ... }]
  • 单次请求中至少传一个检索维度:groupcategorytechnologykeyword
  • filters 最多支持 8 个条件
  • order_by 最多支持 3 条排序规则
  • 若设置了 internal_list_limit,则余 internal_*_list_limit 参数将失效
  • offset 可用于分页或跳过前若干结果
  • 建议结合 filtersorder_by 使用,以获得更适合业务分析的技术聚合视图

实用场景

  • 分析技术现:某项技术(如 NginxSalesforce),找出经常与一同出现的技术组合,用于竞品技术栈研究。
  • 定位特定市场的网站技术偏好:通过 country_iso_codelanguage_code 等过滤条件,识别不同国家或语言市场中的主流技术选型。
  • 挖掘 WordPress 等生态技术:结合 keyword 字段查询特定站点生态,发现常与某类站点一起使用的与平台。
  • 筛选高质量网站的技术栈特征:使用 domain_rank 等过滤条件,聚焦高价值网站,提炼常见技术组合,为建站或产品集成提供参考。
  • 构建技术趋势和分类看板:按 groups_countcategories_counttechnologies_count 排序,生成技术分组、类别和产品的热度分布视图。

统一入口:官网 · LLM API · 控制台