语义搜索新闻

SkillSearch

Semantic news search (market.ft.tech). Use when the user asks to semantically search news, search news by keywords, or find related news. Data only covers the current year and the most recent half month.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the 语义搜索新闻 skill

What this skill tells your AI

The instructions your AI receives, as published by ftshare-lab/ftshare-skill in ftshare-market-data/sub-skills/semantic-search-news/SKILL.md and read by ahel’s review.

1. 接口描述

项目说明
接口名称语义搜索新闻
外部接口GET /api/v3/market/data/semantic-search-news
请求方式GET
适用场景根据搜索文字进行语义搜索,返回相关新闻列表;数据仅支持查询当年最近半个月内的新闻

2. 请求参数

参数名类型是否必填描述取值示例备注
querystring搜索文字人工智能-
limitint返回条数10默认 10
yearint年份2026仅支持当年;数据仅保留最近半个月,用于限定搜索范围
start_timestring开始时间(含)2026-03-01T00:00:00+08:00ISO 8601 格式,用于限定搜索时间范围;无时区时按东八区解释
end_timestring结束时间(含)2026-03-15T23:59:59+08:00ISO 8601 格式,用于限定搜索时间范围;无时区时按东八区解释

3. 响应说明

返回 SearchResult 数组,按相关度排序。

[
  {
    "news_id": 556106924001595392,
    "source_site": "21经济网_要闻",
    "article_url": "https://...",
    "publish_time": "2026-03-15T21:00:00",
    "fetch_time": "2026-03-15T21:19:49",
    "title": "越是AI,越需人文",
    "media_name": "21世纪经济",
    "summary": null,
    "content": "...",
    "is_truncated": 0,
    "is_reviewed": 1,
    "score": 0.6933832764625549
  }
]

SearchResult 结构

字段名类型是否可为空说明
news_idlong新闻 ID
source_sitestring来源站点
article_urlstring文章链接
publish_timestring发布时间,ISO 8601 格式
fetch_timestring抓取时间,ISO 8601 格式
titlestring标题
media_namestring媒体名称
summarystring摘要
contentstring正文内容
is_truncatedint是否被截断:0=否 1=是
is_reviewedint是否已审核:0=否 1=是
scorefloat搜索匹配分数

4. 用法

通过主目录 run.py 调用(必填 --query,可选 --limit--year--start_time--end_time):

python <RUN_PY> semantic-search-news --query 人工智能
python <RUN_PY> semantic-search-news --query 人工智能 --limit 10 --year 2026
python <RUN_PY> semantic-search-news --query 人工智能 --limit 10 --year 2026 --start_time 2026-03-01T00:00:00+08:00 --end_time 2026-03-15T23:59:59+08:00

<RUN_PY> 为主 SKILL.md 同级的 run.py 绝对路径。脚本输出 JSON;本接口无需额外请求头。

5. 请求示例

GET /api/v1/market/data/semantic-search-news?query=人工智能&limit=10&year=2026&start_time=2026-03-01T00:00:00%2B08:00&end_time=2026-03-15T23:59:59%2B08:00

6. 数据范围与更新

  • 数据仅支持当年最近半个月内的新闻;year 用于限定搜索范围,仅支持当年。
  • start_timeend_time 用于进一步限定检索时间窗口,推荐与 year 搭配使用;时间格式需为 ISO 8601。
  • 时区处理与 K 线脚本一致:无时区输入默认按东八区(UTC+8)解释;带时区输入会统一转换为东八区再请求。
  • 具体可查时间范围与更新频率以接口返回为准。

7. 展示与用户提示

向用户展示结果时必须

  1. 每条新闻展示原站与链接:列出来源source_site:来源站点)以及文章链接article_url),便于用户跳转原文。
  2. 数据范围提示:在结果前或结果后向用户明确提示:「以下结果仅展示当年、最近半个月以内的新闻。」
  3. 固定提示词(建议复用)「仅支持查看最近半个月以内的新闻数据。」

Signals

GitHub stars
64
Forks
13
Last commit
Sep 2026

ahel review

  • K6info
    bundled executables the agent is told to run

Automated review, not a security audit. Ruleset v1+k2.

Advanced
Catalog kind
skill
Gateway key
semantic-search-news
Source
github.com/ftshare-lab/ftshare-skill