标讯高级查询API

支持关键词分组、排除词、地区多级、金额区间、行业与流程、上线时间窗等组合条件,检索标讯列表并分页;可返回联系人(隐私级别见 contact_privacy)。分页对齐统一查询:条数用 top_k,翻页用 filters.offset。关键词可用 query、filters.keywords 或 filters.keyword_groups(均可选)。注意:filters.bid_type 为整数枚举(与招中标搜索的字符串类型不同)。

已开放 调用入口:POST /v1/data/query。

请求体字段

字段类型说明示例
domain string 数据域(必填) tender
type string 数据类型(必填) query_advanced
query string 搜索关键词(;多个用空格/逗号分隔);与 filters.keywords 二选一 大语言模型
filters object 结构化过滤条件,见下方「常用 filters」 —
top_k integer 分页参数:每页条数,取值范围 1–100,本能力默认 20 20

常用 filters

字段类型说明示例
keywords string 搜索关键词(也可用 query;多个用空格/逗号分隔) 大语言模型
match_modes string 匹配模式:all/sm/title/brand/fulltext/caller/winner/winner_tender/tender/agency title,sm
keyword_groups string 关键词分组 JSON 数组(组内 AND、组间 OR;结构见知了文档) []
bid_type integer 标讯类型枚举(整数,以知了文档为准) 1
bid_process string 招采流程阶段 ID 列表(逗号分隔整数) 1,2,4,7,8
begin_date string 发布开始日期 YYYY-MM-DD 2024-01-01
end_date string 发布结束日期 YYYY-MM-DD 2024-12-31
create_begin_time string 数据上线开始时间 YYYY-MM-DD 或 YYYY-MM-DD HH:MM:SS(与 begin_date 独立) 2024-01-01 00:00:00
create_end_time string 数据上线结束时间 YYYY-MM-DD 或 YYYY-MM-DD HH:MM:SS 2024-12-31 23:59:59
provinces string 省份列表(逗号分隔) 广东省
cities string 城市列表(逗号分隔) 深圳市
counties string 区县列表(逗号分隔) 南山区
min_amount number 金额下限(万元) 10
max_amount number 金额上限(万元) 5000
bid_industrys string 行业分类 ID 列表(逗号分隔整数) 1,2
caller_types string 采购方/主体类型 ID 列表(逗号分隔整数) 1,2
slop integer 短语匹配允许的词间距 2
exclude_keywords string 排除关键词(逗号分隔) 运行环境,公安局
sort_field string 排序字段(默认 pub_time) pub_time
sort_order string 排序方向 asc/desc(默认 desc) desc
need_contacts boolean 是否额外请求旧联系人计数字段(新联系人字段默认返回) false
need_fulltext boolean 是否请求正文全文 false
offset integer 分页参数:偏移量(默认 0;配合顶层 top_k 翻页,建议为 top_k 的整数倍) 0

返回字段(hits[])

字段类型说明
bid_id integer 标讯 ID
title string 公告标题
bid_type string 标讯类型
bid_process string 招标流程阶段
pub_time string 发布时间
money number 金额(元)
money_wan number 金额(万元)
province string 省份
city string 城市
county string 区县
caller_name string 招标方名称
caller_id integer 招标方 ID
caller_base_type string 招标方主体大类
caller_type string 招标方类型
winner_names list 中标方名称列表
winner_ids list 中标方 ID 列表
winner_moneys list 各中标方中标金额(元)
tender_names list 投标人名称列表
sm_names list 标的物名称列表
brand_names list 品牌名称列表
bid_method string 招标方式
bid_no string 招标编号
signup_time string 报名/购买标书截止时间
tender_time string 投标截止时间(开标时间)
service_end_date string 服务结束日期
agency_name string 招标代理公司
exists_bid_file string 是否存在招标文件
caller_person string 招标联系人姓名
caller_contact string 招标联系人电话
agency_person string 代理机构联系人姓名
agency_contact string 代理机构联系人电话
winner_person string 中标人联系人姓名
winner_contact string 中标人联系人电话
contact_privacy string 电话隐私级别:full=完整 / masked=脱敏
url string 知了标讯公告链接
source string 来源标识
disclaimer string 数据口径说明

curl 请求示例

curl -sS -X POST https://data.devnors.com/v1/data/query \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "domain":"tender", "type":"query_advanced", "query":"大语言模型", "filters":{ "keywords":"大语言模型", "match_modes":"title,sm", "keyword_groups":"[]", "bid_type":1, "bid_process":"1,2,4,7,8", "begin_date":"2024-01-01", "end_date":"2024-12-31", "create_begin_time":"2024-01-01 00:00:00", "create_end_time":"2024-12-31 23:59:59", "provinces":"广东省", "cities":"深圳市", "counties":"南山区", "min_amount":"10", "max_amount":"5000", "bid_industrys":"1,2", "caller_types":"1,2", "slop":2, "exclude_keywords":"运行环境,公安局", "sort_field":"pub_time", "sort_order":"desc", "need_contacts":"false", "need_fulltext":"false", "offset":0 }, "top_k":20 }'

将 YOUR_API_KEY 替换为控制台签发的密钥。完整字段与响应约定见 统一查询。