免费不需要密钥CC BY 4.0 可商用

台风说开放 API

实时台风路径、1945 年以来的历史台风、全球热带气旋,一套只读的 JSON 接口。写代码可以直接调用,AI Agent 可以通过 MCP 接入。

服务状态可在 /api/health 查看

25个接口
1945–历史台风至今
约 10 分钟实时数据更新
0注册与密钥
30 秒试一下:现在有没有台风
curl -s https://taifengshuo.com/api/llm/summary

响应示例(抓取于 2026-11-27)

{
  "site": "台风说 taifengshuo.com",
  "updated": "2026-11-27 12:54:30",
  "updated_timezone": "Asia/Shanghai (北京时间)",
  "license": "CC BY 4.0",
  "license_url": "https://creativecommons.org/licenses/by/4.0/",
  "cite_guide": "https://taifengshuo.com/cite",
  "summary": "当前西北太平洋无活跃台风。",
  "typhoons": [],
  "attribution": "引用请注明来源: 台风说 taifengshuo.com",
  "disclaimer": "台风实况为时效性数据, 请以官方发布为准",
  "updated_utc": "2026-11-27T04:54:30Z",
  "global": {
    "summary": "当前西北太平洋以外的全球海域暂无 NHC/JTWC 通报的活跃热带气旋。",
    "updated": "2026-11-27 04:54:26",
    "count": 0,
    "cyclones": [],
    "page_url": "https://taifengshuo.com/global",
    "note": "风速为来源机构原始平均时长(NHC/JTWC 为 1 分钟平均风), 与中央气象台 2 分钟平均风不可直接换算; 西北太平洋台风请见 /api/llm/summary 的 typhoons 字段。"
  }
}

接入约定

时间、单位和错误的约定对所有接口都一样,先看这一节能少踩坑。

基本信息

地址前缀
https://taifengshuo.com
认证
不需要注册,不需要密钥
请求方法
全部是 GET,只读
返回格式
JSON,UTF-8
跨域
允许任何网页直接调用(Access-Control-Allow-Origin: *)
许可
CC BY 4.0,可商用,注明「台风说 taifengshuo.com」即可

时间:北京时间还是 UTC

  • 台风自身的时间是北京时间(UTC+8):路径点的 time、起止时间 startTime / endTime / start_time / end_time、登陆时间 landtime。格式 YYYY-MM-DD HH:mm:ss,不带时区后缀。
  • 系统记录的时间是 UTC:fetchedAt、created_at、updated_at、flash_at,以及服务状态里的 time。
  • 实时摘要(/api/llm/summary)的 updated 是北京时间,同时给出 updated_utc。

单位与口径

字段单位与口径
风速 speed / max_speed / wind_ms米/秒。西北太平洋为 2 分钟平均风(中央气象台口径);美国机构发布的全球气旋为 1 分钟平均风,见 windPeriod。平均时长不同的风速不能直接比较
气压 pressure / min_pressure百帕(hPa)
移动速度 moveSpeed / move_kmh公里/小时
风圈半径 radius7 / radius10 / radius12公里,四个数依次是东北、东南、西南、西北象限
经纬度 lat / lng度;北纬、东经为正,西经为负
台风编号 code6 位数字 = 年份 + 当年序号,如 202411

强度等级

strong 和 max_strong 的取值。西北太平洋按国家标准《热带气旋等级》(GB/T 19201-2006)划分,依据中心附近最大风速(2 分钟平均);全球其他海域沿用发布机构自己的分级,原始分级在 rawCategory。

等级英文风速下限风力
超强台风Super Typhoon51 米/秒16 级或以上
强台风Severe Typhoon41.5 米/秒14–15 级
台风Typhoon32.7 米/秒12–13 级
强热带风暴Severe Tropical Storm24.5 米/秒10–11 级
热带风暴Tropical Storm17.2 米/秒8–9 级
热带低压Tropical Depression10.8 米/秒6–7 级

两套接口怎么选

/api/* 直接返回数据,适合网页、脚本和 AI 工具;/api/v1/* 把数据包在统一的信封里 {"code":0,"msg":"ok","data":…,"ts":…},带分页和业务错误码,适合 App 这类需要稳定契约的客户端。两套接口的数据相同。

出错时

接口范围HTTP 状态返回内容含义
/api/*400{"error":"invalid year"}参数不合法
/api/*404{"error":"not found"}编号或地址不存在
全部接口500{"error":"internal error"}服务出错,可稍后重试
/api/v1/*400{"code":40001,"msg":"…","data":null}参数不合法
/api/v1/*404{"code":40401,"msg":"…","data":null}资源不存在
/api/v1/*404{"code":40400,"msg":"…","data":null}没有这个接口地址

更新频率与调用频率

实时数据约每 10 分钟更新(全球气旋约 15 分钟)。接口没有按账号计的配额,但轮询间隔建议不少于 60 秒——更频繁的请求拿到的也是同一份数据;异常高频的访问可能被安全防护拦截。每个接口允许缓存多久,写在各接口标题下方。

接入 AI Agent

让 AI 助手直接查台风:推荐用 MCP,一个地址、8 个现成的工具,不需要密钥。客户端不支持 MCP 时,用 Agent Skill 或直接让它读接口。

方式一:远程 MCP 服务

地址 https://taifengshuo.com/mcp,传输方式是 Streamable HTTP。选你用的客户端:

Claude Code

在终端里执行一条命令:

终端
claude mcp add --transport http taifengshuo https://taifengshuo.com/mcp

加好后用 claude mcp list 查看是否连上。

Cursor

写进项目的 .cursor/mcp.json(或全局的 ~/.cursor/mcp.json):

JSON
{
  "mcpServers": {
    "taifengshuo": {
      "url": "https://taifengshuo.com/mcp"
    }
  }
}

VS Code

写进项目根目录的 .mcp.json(Claude Code 的项目配置也读这个文件,写法相同):

JSON
{
  "mcpServers": {
    "taifengshuo": {
      "type": "http",
      "url": "https://taifengshuo.com/mcp"
    }
  }
}

Claude Desktop 等

只支持「本地命令」的客户端(如 Claude Desktop 的配置文件),用 mcp-remote 转接,需要本机装有 Node.js:

JSON
{
  "mcpServers": {
    "taifengshuo": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://taifengshuo.com/mcp"
      ]
    }
  }
}

其他客户端

在客户端的 MCP 设置里新增一个远程服务:传输方式选 Streamable HTTP(有的客户端叫 HTTP),地址填下面这个,不需要填密钥。

地址
https://taifengshuo.com/mcp

命令行验证

不装任何客户端,直接用 curl 调一个工具,确认服务可用:

终端
curl -s https://taifengshuo.com/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_typhoons","arguments":{"keyword":"Mangkhut"}}}'

MCP 里有哪些工具

工具作用参数对应的接口
get_active_typhoons
获取当前西北太平洋活跃台风的实时概况、中心位置、风速、气压与中文摘要(含平静态提示)。 不需要参数 GET /api/llm/summary
get_typhoon_detail
按台风编号查询指定台风的完整路径点、强度演变、登陆记录与各机构预报。编号是 6 位数字(年份 + 当年序号);不知道编号时先用 search_typhoons 按名称查。 code(必填) 6 位台风编号(年份 + 当年序号),例如 202411(摩羯)、201822(山竹) GET /api/typhoons/{code}
search_typhoons
按中文名、英文名或编号搜索 1945 年以来的西北太平洋历史台风归档。 keyword(必填) 台风中文名、英文名或编号,例如 摩羯、山竹、Yagi、202411 GET /api/history/search/{keyword}
get_typhoons_by_year
按年份查询该年西北太平洋全部台风列表与巅峰强度统计(支持 1945 年至今)。 year(必填) 四位年份,例如 2024、2025、2026 GET /api/history/{year}
get_global_cyclones
查询全球各大洋(大西洋、东太平洋、印度洋、南半球等)当前活跃的热带气旋/飓风实时数据。 不需要参数 GET /api/global/typhoons
get_today_in_history
查询历史上的今天正在活跃的一个强台风(按北京时间的日期,每天固定一个)。 不需要参数 GET /api/history/today
get_typhoon_news
获取最新的台风快讯(flash)或每日台风综述(news),新的在前。 kind flash=台风快讯,news=每日台风综述(默认 flash)
limit 返回条数(1~20,默认 8)
GET /api/v1/flash 或 /api/v1/news
get_typhoon_knowledge
查询台风百科文章目录,或按 slug 读取一篇文章的全文(如 what-is-typhoon;slug 从目录取得)。 slug 可选。留空返回全部文章目录;传入 slug 返回对应文章全文 GET /api/v1/knowledge 或 /api/v1/knowledge/{slug}

点「试一下」会从这个页面真实调用一次 MCP 服务,并显示它返回给 Agent 的内容。工具返回的是紧凑的 JSON 文本;单个台风的完整路径较大(上百个路径点),只问概况时让 Agent 用摘要或搜索工具。

方式二:Agent Skill

给支持 SKILL.md 的 Agent(如 Claude Code)装一个技能文件,Agent 会在用户问到台风时自己去查。

终端
mkdir -p ~/.claude/skills/taifengshuo && curl -sSL https://taifengshuo.com/skill.md -o ~/.claude/skills/taifengshuo/SKILL.md

技能文件在 /skill.md,可以先打开看内容再安装。

方式三:直接让助手读接口

能联网的对话助手不用任何配置,把下面这句话发给它即可:

提示词
请读取 https://taifengshuo.com/api/llm/summary ,告诉我现在西北太平洋有没有台风;需要更多接口时参考 https://taifengshuo.com/api-docs.md 。回答时注明数据来源和数据时间。

给大模型读的完整文档在 /api-docs.md,站点说明在 /llms.txt。

01实时台风(西北太平洋)

当前活跃台风的实况路径、风圈与多机构预报,约每 10 分钟更新。

GET/api/llm/summary

实时台风摘要(给 AI 用)

LLM-friendly live summary · 缓存约 5 分钟

一次请求拿到:一段中文摘要、活跃台风的结构化要点、数据时间、许可与署名。体积最小(约 1 KB),适合大模型工具调用和定时轮询。没有活跃台风时 typhoons 是空数组,summary 会直接说明。

响应字段

summarystring
西北太平洋现状的一段中文描述,可直接引用
updatedstring
西北太平洋数据的更新时间,北京时间
updated_utcstring
同一时刻的 UTC 时间,ISO 8601
typhoonsarray
活跃台风要点;没有活跃台风时为空数组
typhoons[].codestring
台风编号
typhoons[].namestring
中文名;enname 为英文名
typhoons[].strongstring
当前强度等级
typhoons[].latnumber
中心纬度;lng 为经度
展开其余 11 个字段
typhoons[].wind_msnumber
最大风速,米/秒
typhoons[].pressure_hpanumber
中心气压,百帕
typhoons[].move_dirstring
移动方向;move_kmh 为移动速度(公里/小时)
typhoons[].timestring
这一报的时间,北京时间
typhoons[].detail_urlstring
台风详情页地址
global.summarystring
西北太平洋以外全球海域的一段中文描述
global.countinteger
全球其他海域的活跃气旋数
global.cyclonesarray
全球其他海域的活跃气旋要点,字段与 typhoons 类似,另有 basin_name(海域)、source(发布机构)、wind_period_min(风速的平均时长,分钟)
global.updatedstring
全球数据的更新时间,UTC
licensestring
数据许可,CC BY 4.0
attributionstring
引用时的署名要求
GET/api/llm/summary
新标签打开
{
  "site": "台风说 taifengshuo.com",
  "updated": "2026-11-27 12:54:30",
  "updated_timezone": "Asia/Shanghai (北京时间)",
  "license": "CC BY 4.0",
  "license_url": "https://creativecommons.org/licenses/by/4.0/",
  "cite_guide": "https://taifengshuo.com/cite",
  "summary": "当前西北太平洋无活跃台风。",
  "typhoons": [],
  "attribution": "引用请注明来源: 台风说 taifengshuo.com",
  "disclaimer": "台风实况为时效性数据, 请以官方发布为准",
  "updated_utc": "2026-11-27T04:54:30Z",
  "global": {
    "summary": "当前西北太平洋以外的全球海域暂无 NHC/JTWC 通报的活跃热带气旋。",
    "updated": "2026-11-27 04:54:26",
    "count": 0,
    "cyclones": [],
    "page_url": "https://taifengshuo.com/global",
    "note": "风速为来源机构原始平均时长(NHC/JTWC 为 1 分钟平均风), 与中央气象台 2 分钟平均风不可直接换算; 西北太平洋台风请见 /api/llm/summary 的 typhoons 字段。"
  }
}
curl -s "https://taifengshuo.com/api/llm/summary"

示例节选自真实响应(完整响应约 903 字节):抓取示例时 typhoons 是空数组(当时没有数据);抓取示例时 global.cyclones 是空数组(当时没有数据)。

有活跃台风时 typhoons 里每一项的样子(数值取自 2026 年第 31 号台风「烟花」10 月 30 日 14 时的实况):

{
  "code": "202631",
  "name": "烟花",
  "enname": "In-fa",
  "strong": "超强台风",
  "lat": 18.6,
  "lng": 146.3,
  "wind_ms": 58,
  "pressure_hpa": 925,
  "move_dir": "西北",
  "move_kmh": 28,
  "time": "2026-10-30 14:00:00",
  "detail_url": "https://taifengshuo.com/typhoon/202631"
}
GET/api/typhoons

当前活跃台风列表

Active typhoons with full tracks · 缓存约 30 秒

西北太平洋和南海当前活跃的台风:完整实况路径、风圈、各机构预报。没有活跃台风时,会返回最近一个已停编的台风供参考(active 为 false)——判断现在有没有台风,请看 active。

响应字段

typhoonsarray
台风列表
typhoons[].codestring
台风编号,6 位 = 年份 + 当年序号,如 202411
typhoons[].namestring
中文名
typhoons[].ennamestring
英文名
typhoons[].activeboolean
是否仍在编报。判断「现在有没有台风」请看这个字段
typhoons[].startTimestring
起编时间,北京时间
typhoons[].endTimestring
停编时间,北京时间;活跃中为最新一报的时间
typhoons[].pointsarray
实况路径点,按时间升序
展开其余 16 个字段
typhoons[].points[].timestring
该点的时间,北京时间(UTC+8),格式 YYYY-MM-DD HH:mm:ss
typhoons[].points[].latnumber
中心纬度,北纬为正
typhoons[].points[].lngnumber
中心经度,东经为正
typhoons[].points[].strongstring
强度等级,如「台风」「超强台风」
typhoons[].points[].speednumber
中心附近最大风速,米/秒
typhoons[].points[].pressurenumber
中心最低气压,百帕
typhoons[].points[].powerinteger可能没有
风力等级(蒲福风级)
typhoons[].points[].moveDirstring可能没有
移动方向,如「西偏北」
typhoons[].points[].moveSpeednumber可能没有
移动速度,公里/小时
typhoons[].points[].radius7number[4]可能没有
7 级风圈半径,依次为东北、东南、西南、西北四个象限,公里;10 级、12 级风圈在 radius10、radius12
typhoons[].forecastsobject
各机构的预报路径:键是机构名(中国、日本、美国、中国香港、中国台湾),值是预报点数组,点的字段同路径点
typhoons[].forecastMetaobject可能没有
各机构这一版预报的发布时间
typhoons[].landarray
登陆记录;没有登陆时为空数组
typhoons[].notestring可能没有
人工补充说明
fetchedAtstring
这份数据的获取时间,UTC(不是北京时间)
staleboolean
为 true 表示数据源暂时不可用,返回的是上一次的数据
GET/api/typhoons
新标签打开
{
  "typhoons": [
    {
      "code": "202632",
      "name": "查帕卡",
      "enname": "Cempaka",
      "active": false,
      "startTime": "2026-11-07 14:00:00",
      "endTime": "2026-11-11 17:00:00",
      "land": [],
      "points": [
        {
          "time": "2026-11-09 14:00:00",
          "lat": 24,
          "lng": 134.9,
          "strong": "台风",
          "power": 12,
          "speed": 35,
          "pressure": 970,
          "moveSpeed": 14,
          "moveDir": "东偏北",
          "radius7": [
            200,
            150,
            250,
            120
          ],
          "radius10": [
            60,
            50,
            60,
            50
          ],
          "radius12": [
            50,
            50,
            50,
            50
          ]
        }
      ],
      "forecasts": {
        "中国": [
          {
            "time": "2026-11-11 17:00:00",
            "lat": 29.2,
            "lng": 151.4,
            "strong": "台风",
            "power": 12,
            "speed": 33,
            "pressure": 975
          }
        ],
        "日本": [
          {
            "time": "2026-11-11 17:00:00",
            "lat": 29.2,
            "lng": 151.4,
            "strong": "台风",
            "power": 12,
            "speed": 33,
            "pressure": 975
          }
        ]
      },
      "forecastMeta": {
        "中国": "2026-11-11 17:00:00",
        "日本": "2026-11-11 17:00:00"
      },
      "note": "据中央气象台台风公报:查帕卡于 2026 年 11 月 11 日晚上在日本东南洋面变性为温带气旋,中央气象台于 11 日 20 时对其停止编号。本页路径的最后一个点(11 日 17 时)是停编前的最后…"
    }
  ],
  "fetchedAt": "2026-11-27 03:27:09",
  "source": "zjwater",
  "stale": false
}
curl -s "https://taifengshuo.com/api/typhoons"

示例节选自真实响应(完整响应约 9.2 KB):抓取示例时 typhoons[].land 是空数组(当时没有数据);typhoons[].points 共 34 项,示例保留 1 项;typhoons[].forecasts 另有 中国台湾、美国、中国香港,示例未列出;typhoons[].forecasts.中国 共 2 项,示例保留 1 项;typhoons[].forecasts.日本 共 3 项,示例保留 1 项;typhoons[].forecastMeta 另有 中国台湾、美国、中国香港,示例未列出;typhoons[].note 的文本较长,示例只截取开头。

GET/api/typhoons/{code}

单个台风详情

Typhoon detail by code · 缓存约 30 秒(已停编的历史台风缓存 1 小时)

按编号查一个台风的完整资料:全部路径点、登陆记录、各机构预报。活跃台风和 1945 年以来的历史台风都能查。

参数

codestring路径必填
台风编号,6 位 = 年份 + 当年序号(个别未编号的热带低压为 8 位)。如 202411 是 2024 年第 11 号台风「摩羯」。示例 202411

响应字段

typhoon.codestring
台风编号,6 位 = 年份 + 当年序号,如 202411
typhoon.namestring
中文名
typhoon.ennamestring
英文名
typhoon.activeboolean
是否仍在编报。判断「现在有没有台风」请看这个字段
typhoon.startTimestring
起编时间,北京时间
typhoon.endTimestring
停编时间,北京时间;活跃中为最新一报的时间
typhoon.pointsarray
实况路径点,按时间升序
typhoon.points[].timestring
该点的时间,北京时间(UTC+8),格式 YYYY-MM-DD HH:mm:ss
展开其余 22 个字段
typhoon.points[].latnumber
中心纬度,北纬为正
typhoon.points[].lngnumber
中心经度,东经为正
typhoon.points[].strongstring
强度等级,如「台风」「超强台风」
typhoon.points[].speednumber
中心附近最大风速,米/秒
typhoon.points[].pressurenumber
中心最低气压,百帕
typhoon.points[].powerinteger可能没有
风力等级(蒲福风级)
typhoon.points[].moveDirstring可能没有
移动方向,如「西偏北」
typhoon.points[].moveSpeednumber可能没有
移动速度,公里/小时
typhoon.points[].radius7number[4]可能没有
7 级风圈半径,依次为东北、东南、西南、西北四个象限,公里;10 级、12 级风圈在 radius10、radius12
typhoon.forecastsobject
各机构的预报路径:键是机构名(中国、日本、美国、中国香港、中国台湾),值是预报点数组,点的字段同路径点
typhoon.forecastMetaobject可能没有
各机构这一版预报的发布时间
typhoon.landarray
登陆记录;没有登陆时为空数组
typhoon.land[].landaddressstring可能没有
登陆地点
typhoon.land[].landtimestring可能没有
登陆时间,北京时间
typhoon.land[].latstring可能没有
登陆点纬度(注意是字符串)
typhoon.land[].lngstring可能没有
登陆点经度(注意是字符串)
typhoon.land[].strongstring可能没有
登陆时的强度等级
typhoon.land[].infostring可能没有
登陆的文字说明
typhoon.sourceobject可能没有
历史台风的数据集说明:name 数据集名称、agency 机构、note 口径说明(风速平均时长等)
typhoon.extTrackobject可能没有
停编之后的延伸路径(来自美国机构整编数据),points 为路径点
fetchedAtstring
活跃台风为数据获取时间(UTC);历史台风为空字符串
sourcestring
数据通道标识,历史台风为 archive

可能的错误

  • HTTP 404:编号不存在,返回 {"error":"not found"}
GET/api/typhoons/202411
新标签打开
{
  "typhoon": {
    "code": "202411",
    "name": "摩羯",
    "enname": "Yagi",
    "active": false,
    "startTime": "2024-09-01 08:00:00",
    "endTime": "2024-09-08 20:00:00",
    "land": [
      {
        "landaddress": "海南文昌沿海",
        "landtime": "2024-09-06 16:20:00",
        "lng": "110.99",
        "lat": "19.83",
        "info": "第11号台风“摩羯”已于9月6日16时20分在海南文昌沿海登陆",
        "strong": "超强台风"
      }
    ],
    "points": [
      {
        "time": "2024-09-04 08:00:00",
        "lat": 19,
        "lng": 117.7,
        "strong": "台风",
        "power": 13,
        "speed": 38,
        "pressure": 965,
        "moveDir": "偏西",
        "moveSpeed": 11,
        "radius7": [
          250,
          250,
          250,
          200
        ],
        "radius10": [
          80,
          80,
          80,
          60
        ],
        "radius12": [
          40,
          40,
          40,
          30
        ]
      }
    ],
    "forecasts": {
      "中国": [
        {
          "time": "2024-09-08 11:00:00",
          "lat": 21.1,
          "lng": 104.7,
          "strong": "热带低压",
          "power": 7,
          "speed": 15,
          "pressure": 1000
        }
      ],
      "美国": [
        {
          "time": "2024-09-07 14:00:00",
          "lat": 20.8,
          "lng": 107.2,
          "strong": "超强台风",
          "power": 17,
          "speed": 60,
          "pressure": 920
        }
      ]
    },
    "source": {
      "name": "中国气象局热带气旋最佳路径数据集(CMA-STI)",
      "agency": "CMA",
      "note": "风速为 2 分钟平均风; 时间为北京时"
    },
    "extTrack": {
      "points": [
        {
          "time": "2024-09-09 02:00:00",
          "lat": 22.1,
          "lng": 103.5,
          "strong": "热带气旋",
          "speed": 0,
          "pressure": 1000,
          "ext": true
        }
      ],
      "source": "IBTrACS",
      "atcf": "WP122024",
      "note": "中央气象台对它的最后一次定位是 09-08 20:00, 此后停止编号; 这个系统又继续移动了约 24 小时(美国机构数据没有标注这段时间它是否已转为温带气旋)。灰色虚线为美国机构(IBTrACS ·…"
    }
  },
  "fetchedAt": "",
  "source": "archive"
}
curl -s "https://taifengshuo.com/api/typhoons/202411"

示例节选自真实响应(完整响应约 29 KB):typhoon.land 共 3 项,示例保留 1 项;typhoon.points 共 127 项,示例保留 1 项;typhoon.forecasts 另有 中国台湾、日本、中国香港,示例未列出;typhoon.forecasts.中国 共 2 项,示例保留 1 项;typhoon.forecasts.美国 共 5 项,示例保留 1 项;typhoon.extTrack.points 共 4 项,示例保留 1 项;typhoon.extTrack.note 的文本较长,示例只截取开头。

02历史台风库(1945 年至今)

西北太平洋历史台风:按年份浏览、按名称或编号搜索。

GET/api/history/years

历年台风数量

Typhoon counts by year · 缓存约 10 分钟

1945 年以来每一年的台风数量,适合做年份选择器或年度趋势图。

响应字段

yearsarray
按年份倒序
years[].yearinteger
年份
years[].countinteger
这一年达到热带风暴及以上强度的台风数
years[].recordsinteger
这一年的全部记录数(含热带低压)
minYearinteger
最早年份
maxYearinteger
最新年份
GET/api/history/years
新标签打开
{
  "years": [
    {
      "year": 2026,
      "count": 32,
      "records": 35
    },
    {
      "year": 2025,
      "count": 28,
      "records": 30
    },
    {
      "year": 2024,
      "count": 26,
      "records": 27
    }
  ],
  "minYear": 1945,
  "maxYear": 2026
}
curl -s "https://taifengshuo.com/api/history/years"

示例节选自真实响应(完整响应约 3.1 KB):years 共 82 项,示例保留 3 项。

GET/api/history/{year}

某一年的全部台风

Typhoons of a year · 不缓存

某一年全部台风的概要:名称、起止时间、最高强度、最大风速、最低气压。要完整路径,再用编号查单个台风详情。当年的台风还没有整理入库时(很少见),强度、风速、气压和路径点数为 null。

参数

yearinteger路径必填
年份,1945 至今年。示例 2024

响应字段

yearinteger
年份
typhoonsarray
这一年的台风,按编号排序
typhoons[].codestring
台风编号
typhoons[].yearinteger
年份
typhoons[].namestring
中文名;早年没有命名的台风为「-」或空
typhoons[].ennamestring
英文名
typhoons[].start_timestring
起编时间,北京时间
typhoons[].end_timestring
停编时间,北京时间
展开其余 4 个字段
typhoons[].max_strongstring|null
生命期内的最高强度等级
typhoons[].max_speednumber|null
最大风速,米/秒
typhoons[].min_pressurenumber|null
最低气压,百帕;早年的部分记录没有气压数据,为 null
typhoons[].points_countinteger|null
路径点数量

可能的错误

  • HTTP 400:年份不是 1945 至今年之间的数字,返回 {"error":"invalid year"}
GET/api/history/2024
新标签打开
{
  "year": 2024,
  "typhoons": [
    {
      "code": "202401",
      "year": 2024,
      "name": "艾云尼",
      "enname": "Ewiniar",
      "start_time": "2024-05-24 08:00:00",
      "end_time": "2024-06-02 14:00:00",
      "max_strong": "强台风",
      "min_pressure": 955,
      "max_speed": 42,
      "points_count": 60
    }
  ],
  "source": "archive"
}
curl -s "https://taifengshuo.com/api/history/2024"

示例节选自真实响应(完整响应约 5.7 KB):typhoons 共 27 项,示例保留 1 项。

GET/api/history/today

历史上的今天

On this day in typhoon history · 缓存约 1 小时

历史上的今天正在活跃的一个强台风(强台风或超强台风)。同一天内结果固定,次日更换;当天没有符合条件的台风时 typhoon 为 null。

响应字段

datestring可能没有
今天的月日,MM-DD,按北京时间
typhoonobject|null
选中的台风;没有时为 null
typhoon.codestring
台风编号
typhoon.yearinteger
年份
typhoon.namestring
中文名;早年没有命名的台风为「-」或空
typhoon.ennamestring
英文名
typhoon.start_timestring
起编时间,北京时间
typhoon.end_timestring
停编时间,北京时间
展开其余 3 个字段
typhoon.max_strongstring|null
生命期内的最高强度等级
typhoon.max_speednumber|null
最大风速,米/秒
typhoon.min_pressurenumber|null
最低气压,百帕;早年的部分记录没有气压数据,为 null
GET/api/history/today
新标签打开
{
  "typhoon": {
    "code": "197825",
    "year": 1978,
    "name": "卫欧拉",
    "enname": "Viola",
    "start_time": "1978-11-17 08:00:00",
    "end_time": "1978-11-27 08:00:00",
    "max_strong": "超强台风",
    "min_pressure": 910,
    "max_speed": 60
  },
  "date": "11-27"
}
curl -s "https://taifengshuo.com/api/history/today"

示例节选自真实响应(完整响应约 222 字节)。

03全球热带气旋

全球各海域的飓风、气旋:实时数据约每 15 分钟更新,历史档案整编自 IBTrACS。

GET/api/global/typhoons

全球活跃热带气旋

Active tropical cyclones worldwide · 缓存约 30 秒(数据本身约每 15 分钟更新)

全球各海域当前活跃的热带气旋,来自美国国家飓风中心(NHC/CPHC)和联合台风警报中心(JTWC)。结构与西北太平洋台风列表一致,另带海域、发布机构和风速平均时长。西北太平洋的活跃台风也在其中,编号以 cn- 开头。

响应字段

typhoonsarray
活跃气旋列表;全球都平静时为空数组
typhoons[].idstring可能没有
气旋编号,可直接用于详情接口
typhoons[].namestring可能没有
名称
typhoons[].ennamestring可能没有
英文名或编号
typhoons[].activeboolean可能没有
是否仍在编报
typhoons[].basinstring可能没有
海域代码
typhoons[].basinNamestring可能没有
海域中文名,展示请直接用这个
typhoons[].sourcestring可能没有
发布机构
展开其余 9 个字段
typhoons[].statusstring可能没有
状态:active 活跃,ended 已结束
typhoons[].rawCategorystring可能没有
发布机构原始的强度分级,如「5级飓风」
typhoons[].windPeriodinteger可能没有
风速的平均时长(分钟):美国机构为 1,中央气象台为 2。不同时长的风速不能直接比较
typhoons[].pointsarray可能没有
路径点,字段同西北太平洋路径点;美国机构发布风圈时带 radius34kt / radius50kt / radius64kt(1 分钟平均风 34 / 50 / 64 节的四象限半径,公里)
typhoons[].forecastsobject可能没有
预报路径,键是机构名
fetchedAtstring
数据获取时间,UTC
staleboolean
为 true 表示数据暂时没能更新
basinsobject
海域代码与中文名对照
sourcesarray
各发布机构这一轮是否取到数据:name 机构、ok 是否成功、count 气旋数
GET/api/global/typhoons
新标签打开
{
  "typhoons": [],
  "fetchedAt": "2026-11-27 03:24:08",
  "source": "global",
  "stale": false,
  "sources": [
    {
      "name": "NHC/CPHC",
      "ok": true,
      "count": 0
    },
    {
      "name": "JTWC",
      "ok": true,
      "count": 0
    },
    {
      "name": "本站",
      "ok": true,
      "count": 0
    }
  ],
  "basins": {
    "WP": "西北太平洋",
    "AL": "北大西洋",
    "EP": "东北太平洋",
    "CP": "中北太平洋",
    "IO": "北印度洋",
    "SI": "南印度洋",
    "SP": "南太平洋",
    "SH": "南半球"
  },
  "note": "保留各机构原始风速平均时长;单位换算不等于平均时长换算。缺失或过期数据不代表无气旋。"
}
curl -s "https://taifengshuo.com/api/global/typhoons"

示例节选自真实响应(完整响应约 1.0 KB):抓取示例时 typhoons 是空数组(当时没有数据);sources[] 另有 attemptedAt、succeededAt、error、via、failStreak、cooldownUntil、okCount、failCount,示例未列出。

GET/api/global/typhoons/{id}

单个全球气旋详情

Global cyclone detail by id · 缓存约 1 天(历史档案缓存 1 天,活跃系统更短)

按编号查一个全球气旋的完整路径。历史档案编号以 ib- 开头(IBTrACS),实时与近期系统以 nhc- 或 jtwc- 开头。编号可从全球活跃列表或全球档案检索得到。

参数

idstring路径必填
气旋编号,如 ib-2005236n23285(2005 年飓风卡特里娜)、nhc-al052026、jtwc-sh032026。示例 ib-2005236n23285

响应字段

typhoon.idstring
气旋编号,可直接用于详情接口
typhoon.namestring
名称
typhoon.ennamestring
英文名或编号
typhoon.activeboolean
是否仍在编报
typhoon.basinstring
海域代码
typhoon.basinNamestring
海域中文名,展示请直接用这个
typhoon.sourcestring
发布机构
typhoon.statusstring
状态:active 活跃,ended 已结束
展开其余 17 个字段
typhoon.zhAliasstring可能没有
中文译名
typhoon.rawCategorystring
发布机构原始的强度分级
typhoon.windPeriodinteger
风速的平均时长,分钟
typhoon.startTimestring
起始时间,北京时间;endTime 为结束时间
typhoon.pointsarray
路径点。西经为负数;跨越 180° 经线的路径会做连续化处理,经度可能超出 ±180
typhoon.points[].timestring
该点的时间,北京时间(UTC+8),格式 YYYY-MM-DD HH:mm:ss
typhoon.points[].latnumber
中心纬度,北纬为正
typhoon.points[].lngnumber
中心经度,东经为正
typhoon.points[].strongstring
强度等级,如「台风」「超强台风」
typhoon.points[].speednumber
中心附近最大风速,米/秒
typhoon.points[].pressurenumber
中心最低气压,百帕
typhoon.points[].moveDirstring可能没有
移动方向,如「西偏北」
typhoon.points[].moveSpeednumber可能没有
移动速度,公里/小时
typhoon.atcfstring可能没有
ATCF 编号,如 AL122005
typhoon.peakKtnumber可能没有
巅峰风速,节(1 分钟平均)
typhoon.minPresnumber可能没有
最低气压,百帕
typhoon.issuesstring[]可能没有
这条数据需要注意的地方(文字说明)

可能的错误

  • HTTP 404:编号不存在,返回 {"error":"气旋不存在"}
GET/api/global/typhoons/ib-2005236n23285
新标签打开
{
  "typhoon": {
    "__global": true,
    "__archive": true,
    "id": "ib-2005236n23285",
    "code": "ib-2005236n23285",
    "name": "Katrina",
    "enname": "Katrina",
    "active": false,
    "startTime": "2005-08-24 02:00:00",
    "endTime": "2005-08-31 14:00:00",
    "land": [],
    "points": [
      {
        "time": "2005-08-31 08:00:00",
        "lat": 38.6,
        "lng": -85.3,
        "strong": "温带气旋",
        "speed": 15.4,
        "pressure": 994,
        "moveDir": "东北",
        "moveSpeed": 39,
        "et": true
      }
    ],
    "forecasts": {},
    "forecastMeta": {},
    "forecastAgencyNames": {},
    "basin": "NA",
    "basinName": "北大西洋",
    "source": "IBTrACS",
    "sourceUrl": "https://www.ncei.noaa.gov/products/international-best-track-archive",
    "status": "ended",
    "rawCategory": "5级飓风",
    "windPeriod": 1,
    "stale": false,
    "issues": [
      "地图上的灰色虚线是这个系统转为温带气旋之后的路径(共 2 个点,来自美国机构整编数据),此时它已不再是热带气旋,风速仅供参考。"
    ],
    "cmaCodes": [],
    "era": "sat",
    "eraName": "数据可靠",
    "eraColor": "#16a34a",
    "sid": "2005236N23285",
    "atcf": "AL122005",
    "wdQid": "Q16422",
    "titleFull": "飓风Katrina",
    "zhAlias": "卡特里娜",
    "peakStrong": "5级飓风",
    "peakKt": 150,
    "peakMs": null,
    "minPres": 902,
    "landfall": true,
    "indexable": true,
    "scale": "ss"
  },
  "fetchedAt": "",
  "source": "IBTrACS"
}
curl -s "https://taifengshuo.com/api/global/typhoons/ib-2005236n23285"

示例节选自真实响应(完整响应约 5.2 KB):抓取示例时 typhoon.land 是空数组(当时没有数据);typhoon.points 共 31 项,示例保留 1 项;抓取示例时 typhoon.cmaCodes 是空数组(当时没有数据)。

GET/api/global/history

全球气旋档案检索

Search the global cyclone archive · 缓存约 5 分钟

按年份或关键词检索全球气旋档案(1842 年至今,整编自 NOAA IBTrACS,加上近期的实时归档),最多返回 300 条。不带参数时只返回各年数量和近期系统。

参数

yearinteger查询串可选
年份,4 位数字。示例 2005
qstring查询串可选
关键词:名称、编号或海域名,如 Katrina、北大西洋 2005。与 year 同时给时以 q 为准

响应字段

totalinteger
档案里的气旋总数
yearsarray
各年数量:year 年份、count 数量,按年份倒序
typhoonsarray
匹配的气旋概要
typhoons[].idstring可能没有
气旋编号,可直接用于详情接口
typhoons[].namestring可能没有
名称
typhoons[].ennamestring可能没有
英文名或编号
typhoons[].activeboolean可能没有
是否仍在编报
typhoons[].basinstring可能没有
海域代码
展开其余 10 个字段
typhoons[].basinNamestring可能没有
海域中文名,展示请直接用这个
typhoons[].sourcestring可能没有
发布机构
typhoons[].statusstring可能没有
状态:active 活跃,ended 已结束
typhoons[].yearinteger可能没有
年份
typhoons[].start_timestring可能没有
起始时间,北京时间;end_time 为结束时间
typhoons[].max_strongstring可能没有
最高强度等级
typhoons[].max_speednumber可能没有
最大风速,米/秒(按发布机构原始的平均时长)
typhoons[].min_pressurenumber可能没有
最低气压,百帕
typhoons[].pointsinteger可能没有
路径点数量(这里是数字,不是数组)
notestring
数据来源说明
GET/api/global/history?year=2005
新标签打开
{
  "ok": true,
  "years": [
    {
      "year": 2026,
      "count": 102
    },
    {
      "year": 2025,
      "count": 121
    }
  ],
  "total": 13258,
  "typhoons": [
    {
      "id": "ib-2005364n24324",
      "code": "ib-2005364n24324",
      "name": "Zeta",
      "zhAlias": "泽塔",
      "enname": "Zeta",
      "basin": "NA",
      "basinName": "北大西洋",
      "source": "IBTrACS",
      "status": "ended",
      "year": 2005,
      "start_time": "2005-12-30 08:00:00",
      "end_time": "2006-01-08 02:00:00",
      "max_strong": "热带风暴",
      "max_speed": 28.3,
      "min_pressure": 994,
      "points": 36,
      "active": false,
      "era": "sat",
      "atcf": "AL312005",
      "zhSrc": "wikidata",
      "title": "飓风Zeta",
      "provisional": false,
      "cmaCode": "",
      "cmaCodes": "",
      "windPeriod": 1,
      "localUrl": "",
      "href": "/global/ib-2005364n24324"
    }
  ],
  "note": "全球历史库: NOAA IBTrACS v04r01(1842 年至今, 全部七大海域; 当年为临时数据) + 本站接入 NHC/JTWC 以来的实时归档; 西北太平洋台风的中央气象台官方路径见 /t…"
}
curl -s "https://taifengshuo.com/api/global/history?year=2005"

示例节选自真实响应(完整响应约 64 KB):years 共 179 项,示例保留 2 项;typhoons 共 115 项,示例保留 1 项;note 的文本较长,示例只截取开头。

04播报与服务状态

台风实况播报文本,以及用于监控的服务状态。

GET/api/seo/news

台风实况播报

Typhoon bulletins · 缓存约 5 分钟

根据实况数据自动生成的台风播报文本,最新 10 条。可以用编号只看某一个台风的播报。

参数

codestring查询串可选
台风编号,只返回这个台风的播报

响应字段

newsarray
播报列表,新的在前;没有时为空数组
news[].idinteger可能没有
播报编号
news[].typhoon_codestring可能没有
对应的台风编号
news[].titlestring可能没有
标题
news[].contentstring可能没有
正文
news[].created_atstring可能没有
发布时间,UTC
GET/api/seo/news
新标签打开
{
  "news": [
    {
      "id": 359,
      "typhoon_code": "202632",
      "title": "台风查帕卡实况播报",
      "content": "台风“查帕卡”(编号202632)目前维持台风级强度,中心位于北纬26.9°、东经144.5°。实测最大风速35米/秒,中心最低气压970百帕。该台风正以46公里/小时的速度向东偏北方向快速移动。请相…",
      "created_at": "2026-11-10 18:50:56"
    }
  ]
}
curl -s "https://taifengshuo.com/api/seo/news"

示例节选自真实响应(完整响应约 4.5 KB):news 共 10 项,示例保留 1 项;news[].content 的文本较长,示例只截取开头。

GET/api/health

服务状态

Service status · 不缓存

用于监控:服务是否正常、实时数据是多久之前更新的。接入方可以据此判断数据是否新鲜。

响应字段

okboolean
服务是否正常;实时数据超过 1 小时没有更新时为 false
dataAgeMinutesinteger
实时台风数据距上次更新的分钟数
degradedboolean
为 true 表示部分数据源暂时不可用,已切换备用来源
timestring
当前时间,UTC,ISO 8601
GET/api/health
新标签打开
{
  "ok": true,
  "time": "2026-11-27T03:32:44.248Z",
  "degraded": false,
  "dataAgeMinutes": 6
}
curl -s "https://taifengshuo.com/api/health"

示例节选自真实响应(完整响应约 81 字节)。

05客户端接口 v1(统一信封)

给 App、小程序这类客户端用的稳定接口:统一 {code, msg, data, ts} 信封,带分页与错误码。

GET/api/v1/bootstrap

启动聚合

App bootstrap bundle · 缓存约 1 分钟

客户端启动时一次拿齐:站点配置、公告、活跃台风摘要、今日晨报、各端最新版本。活跃台风只给最新一个点,完整路径另查台风详情。

响应字段

codeinteger
0 表示成功;非 0 是业务错误码
msgstring
成功时为 ok;出错时是原因说明
tsinteger
响应生成的时间,毫秒时间戳
data.activeTyphoonsarray
活跃台风摘要:code、name、enname、lat、lng、strong、speed、pressure、time,以及 pointsCount(路径点数)
data.briefingstring
今日晨报文本,可能为空
data.announcementsarray
公告:id、title、content、level、created_at
data.configobject
站点配置,如地图默认中心与缩放、自动刷新间隔
data.versionobject
各端最新版本:android / ios / harmony 下各有 latest、min、url
GET/api/v1/bootstrap
新标签打开
{
  "code": 0,
  "msg": "ok",
  "data": {
    "config": {
      "site_title": "台风说",
      "site_subtitle": "让台风开口说话 · 实时追踪 · 权威数据",
      "map_center_lat": "26.5",
      "map_center_lng": "128.0",
      "map_zoom": "5",
      "map_tile": "gaode",
      "default_forecast_agency": "中国",
      "auto_refresh_seconds": "300"
    },
    "announcements": [
      {
        "id": 1,
        "title": "欢迎",
        "content": "欢迎使用台风路径实时发布平台,数据每10分钟自动更新。台风天请以当地气象部门发布的预警为准,注意安全!",
        "level": "info",
        "created_at": "2026-07-09 09:32:14"
      }
    ],
    "activeTyphoons": [],
    "briefing": "西北太平洋静悄悄,我都闲得给前辈写回忆录啦🌀。小知识:冬季海温低,台风难成型。大家安心搬砖吧~",
    "version": {
      "api": "v1",
      "android": {
        "latest": "",
        "min": "",
        "url": ""
      },
      "ios": {
        "latest": "",
        "min": "",
        "url": ""
      },
      "harmony": {
        "latest": "",
        "min": "",
        "url": ""
      }
    }
  },
  "ts": 1795750364000
}
curl -s "https://taifengshuo.com/api/v1/bootstrap"

示例节选自真实响应(完整响应约 1.2 KB):data 另有 client、flags、vid,示例未列出;抓取示例时 data.activeTyphoons 是空数组(当时没有数据)。

GET/api/v1/version

版本检查

App version check · 缓存约 5 分钟

客户端检查更新用:某个平台的最新版本、最低可用版本、下载地址和更新说明。

参数

platformstring查询串可选
平台。可选值:android ios harmony;默认 android;示例 android

响应字段

codeinteger
0 表示成功;非 0 是业务错误码
msgstring
成功时为 ok;出错时是原因说明
tsinteger
响应生成的时间,毫秒时间戳
data.platformstring
平台
data.lateststring
最新版本号
data.minstring
最低可用版本号,低于它应提示更新
data.urlstring
下载地址
data.notesstring
更新说明
GET/api/v1/version?platform=android
新标签打开
{
  "code": 0,
  "msg": "ok",
  "data": {
    "platform": "android",
    "latest": "",
    "min": "",
    "url": "",
    "notes": ""
  },
  "ts": 1795750364000
}
curl -s "https://taifengshuo.com/api/v1/version?platform=android"

示例节选自真实响应(完整响应约 111 字节)。

GET/api/v1/typhoons

当前活跃台风列表

Active typhoons (enveloped) · 缓存约 2 分钟

内容与「当前活跃台风列表」相同,包在统一信封的 data 里。 查看 /api/typhoons

响应字段

codeinteger
0 表示成功;非 0 是业务错误码
msgstring
成功时为 ok;出错时是原因说明
tsinteger
响应生成的时间,毫秒时间戳
data.typhoonsarray
台风列表,字段同 /api/typhoons
data.fetchedAtstring
数据获取时间,UTC
data.staleboolean
是否为上一次的数据
GET/api/v1/typhoons
新标签打开
// data 里的内容与 GET /api/typhoons 的响应相同,示例见该接口。
// 点「发送请求」可以看到真实返回。
curl -s "https://taifengshuo.com/api/v1/typhoons"
GET/api/v1/typhoons/{code}

单个台风详情

Typhoon detail (enveloped) · 缓存约 2 分钟(已停编的历史台风缓存 1 天)

内容与「单个台风详情」相同,包在统一信封的 data 里;编号格式不对会返回 40001。 查看 /api/typhoons/{code}

参数

codestring路径必填
台风编号,6 位 = 年份 + 当年序号(个别未编号的热带低压为 8 位)。如 202411 是 2024 年第 11 号台风「摩羯」。示例 202411

响应字段

codeinteger
0 表示成功;非 0 是业务错误码
msgstring
成功时为 ok;出错时是原因说明
tsinteger
响应生成的时间,毫秒时间戳
data.typhoonobject
台风资料,字段同 /api/typhoons/{code}
data.sourcestring
数据通道标识

可能的错误

  • HTTP 400:编号不是 6 位或 8 位数字,返回 {"code":40001,"msg":"…","data":null,"ts":…}
  • HTTP 404:编号不存在,返回 {"code":40401,"msg":"…","data":null,"ts":…}
GET/api/v1/typhoons/202411
新标签打开
// data 里的内容与 GET /api/typhoons/{code} 的响应相同,示例见该接口。
// 点「发送请求」可以看到真实返回。
curl -s "https://taifengshuo.com/api/v1/typhoons/202411"
GET/api/v1/flash

台风快讯列表

Flash news (paginated) · 缓存约 2 分钟

已发布的台风快讯,新的在前,分页返回。没有快讯时 list 为空数组。

参数

pageinteger查询串可选
页码,从 1 开始。默认 1;示例 1
sizeinteger查询串可选
每页条数,1–50。默认 20;示例 5

响应字段

codeinteger
0 表示成功;非 0 是业务错误码
msgstring
成功时为 ok;出错时是原因说明
tsinteger
响应生成的时间,毫秒时间戳
data.listarray
快讯列表
data.list[].idinteger可能没有
快讯编号
data.list[].titlestring可能没有
标题
data.list[].publisherstring可能没有
消息来源
data.list[].snippetstring可能没有
摘要
展开其余 8 个字段
data.list[].flash_bodystring可能没有
正文
data.list[].ai_commentstring可能没有
点评
data.list[].image_urlstring可能没有
配图地址
data.list[].flash_atstring可能没有
发布时间,UTC
data.pageinteger
当前页码
data.sizeinteger
每页条数
data.totalinteger
总条数
data.hasMoreboolean
后面是否还有数据
GET/api/v1/flash?page=1&size=5
新标签打开
{
  "code": 0,
  "msg": "ok",
  "data": {
    "list": [],
    "page": 1,
    "size": 5,
    "total": 0,
    "hasMore": false
  },
  "ts": 1795750364000
}
curl -s "https://taifengshuo.com/api/v1/flash?page=1&size=5"

示例节选自真实响应(完整响应约 103 字节):抓取示例时 data.list 是空数组(当时没有数据)。

GET/api/v1/flash/{id}

单条快讯

Flash news item · 缓存约 10 分钟

按编号取一条快讯,字段同列表,另带 link(原文链接)。编号从快讯列表取得。

参数

idinteger路径必填
快讯编号,从快讯列表的 id 取得

响应字段

codeinteger
0 表示成功;非 0 是业务错误码
msgstring
成功时为 ok;出错时是原因说明
tsinteger
响应生成的时间,毫秒时间戳
data.idinteger
快讯编号
data.titlestring
标题
data.flash_bodystring
正文
data.linkstring
原文链接
data.flash_atstring
发布时间,UTC

可能的错误

  • HTTP 400:编号不是正整数,返回 {"code":40001,"msg":"…","data":null,"ts":…}
  • HTTP 404:这条快讯不存在,返回 {"code":40401,"msg":"…","data":null,"ts":…}
GET/api/v1/flash/{id}
新标签打开
// 这个接口需要先填参数,点「发送请求」查看真实返回。
curl -s "https://taifengshuo.com/api/v1/flash/{id}"
GET/api/v1/news

台风日报列表

Daily digests (paginated) · 缓存约 5 分钟

每日台风综述,新的在前,分页返回。列表只带开头一段,全文用 slug 查单期日报。

参数

pageinteger查询串可选
页码,从 1 开始。默认 1;示例 1
sizeinteger查询串可选
每页条数,1–50。默认 20;示例 5

响应字段

codeinteger
0 表示成功;非 0 是业务错误码
msgstring
成功时为 ok;出错时是原因说明
tsinteger
响应生成的时间,毫秒时间戳
data.listarray
日报列表
data.list[].slugstring可能没有
日报标识,用于取全文
data.list[].titlestring可能没有
标题
data.list[].digest_datestring可能没有
日报日期,YYYY-MM-DD
data.list[].editionstring可能没有
版次,如 am
展开其余 6 个字段
data.list[].excerptstring可能没有
正文开头一段(Markdown)
data.list[].created_atstring可能没有
发布时间,UTC
data.pageinteger
当前页码
data.sizeinteger
每页条数
data.totalinteger
总条数
data.hasMoreboolean
后面是否还有数据
GET/api/v1/news?page=1&size=5
新标签打开
{
  "code": 0,
  "msg": "ok",
  "data": {
    "list": [
      {
        "slug": "2026-11-27",
        "title": "11月27日台风综述:西北太平洋平静,青海发大风预警",
        "digest_date": "2026-11-27",
        "edition": "am",
        "excerpt": "## 海域平静综述\n截至2026年11月27日,西北太平洋及南海海域海面平静,当前无活跃台风生成。随着立冬已过,冷空气活动频繁,海洋热力条件已难以支撑热带气旋的发展,西北太平洋正式进入台风活动的“休眠…",
        "created_at": "2026-11-27 00:06:39"
      }
    ],
    "page": 1,
    "size": 5,
    "total": 212,
    "hasMore": true
  },
  "ts": 1795750364000
}
curl -s "https://taifengshuo.com/api/v1/news?page=1&size=5"

示例节选自真实响应(完整响应约 3.1 KB):data.list 共 5 项,示例保留 1 项;data.list[].excerpt 的文本较长,示例只截取开头。

GET/api/v1/news/{slug}

单期日报全文

Daily digest by slug · 缓存约 10 分钟

一期日报的全文(Markdown)和引用来源列表。

参数

slugstring路径必填
日报标识,从日报列表的 slug 取得。示例 2026-11-27

响应字段

codeinteger
0 表示成功;非 0 是业务错误码
msgstring
成功时为 ok;出错时是原因说明
tsinteger
响应生成的时间,毫秒时间戳
data.titlestring
标题
data.digest_datestring
日报日期
data.contentstring
全文,Markdown
data.sourcesarray
引用来源:title 标题、link 链接、publisher 发布方
data.updated_atstring
最后修改时间,UTC

可能的错误

  • HTTP 404:这期日报不存在,返回 {"code":40401,"msg":"…","data":null,"ts":…}
GET/api/v1/news/2026-11-27
新标签打开
{
  "code": 0,
  "msg": "ok",
  "data": {
    "slug": "2026-11-27",
    "title": "11月27日台风综述:西北太平洋平静,青海发大风预警",
    "digest_date": "2026-11-27",
    "edition": "am",
    "content": "## 海域平静综述\n截至2026年11月27日,西北太平洋及南海海域海面平静,当前无活跃台风生成。随着立冬已过,冷空气活动频繁,海洋热力条件已难以支撑热带气旋的发展,西北太平洋正式进入台风活动的“休眠…",
    "created_at": "2026-11-27 00:06:39",
    "updated_at": "2026-11-27 00:06:39",
    "sources": [
      {
        "title": "中央气象台: 青海省海东市循化县发布大风黄色预警信号",
        "link": "http://www.nmc.cn/publish/alarm/63022541600000_20261126124000.html",
        "publisher": "中央气象台"
      }
    ]
  },
  "ts": 1795750365000
}
curl -s "https://taifengshuo.com/api/v1/news/2026-11-27"

示例节选自真实响应(完整响应约 2.7 KB):data.content 的文本较长,示例只截取开头;data.sources 共 3 项,示例保留 1 项。

GET/api/v1/knowledge

台风百科目录

Encyclopedia index · 缓存约 1 小时

全部台风百科文章的目录:标识、标题、一句话摘要。全文用 slug 查单篇。

响应字段

codeinteger
0 表示成功;非 0 是业务错误码
msgstring
成功时为 ok;出错时是原因说明
tsinteger
响应生成的时间,毫秒时间戳
data.listarray
文章目录
data.list[].slugstring
文章标识
data.list[].titlestring
标题
data.list[].summarystring
一句话摘要
GET/api/v1/knowledge
新标签打开
{
  "code": 0,
  "msg": "ok",
  "data": {
    "list": [
      {
        "slug": "what-is-typhoon",
        "title": "什么是台风?台风是怎么形成的?",
        "summary": "台风的定义、形成条件与结构解析。"
      }
    ]
  },
  "ts": 1795750365000
}
curl -s "https://taifengshuo.com/api/v1/knowledge"

示例节选自真实响应(完整响应约 22 KB):data.list 共 80 项,示例保留 1 项。

GET/api/v1/knowledge/{slug}

单篇百科全文

Encyclopedia article by slug · 缓存约 1 小时

一篇百科文章的全文(Markdown)。

参数

slugstring路径必填
文章标识,从百科目录的 slug 取得。示例 what-is-typhoon

响应字段

codeinteger
0 表示成功;非 0 是业务错误码
msgstring
成功时为 ok;出错时是原因说明
tsinteger
响应生成的时间,毫秒时间戳
data.slugstring
文章标识
data.titlestring
标题
data.summarystring
一句话摘要
data.content_mdstring
全文,Markdown
data.updated_atstring
最后修改时间,UTC

可能的错误

  • HTTP 404:这篇文章不存在,返回 {"code":40401,"msg":"…","data":null,"ts":…}
GET/api/v1/knowledge/what-is-typhoon
新标签打开
{
  "code": 0,
  "msg": "ok",
  "data": {
    "slug": "what-is-typhoon",
    "title": "什么是台风?台风是怎么形成的?",
    "summary": "台风的定义、形成条件与结构解析。",
    "content_md": "## 什么是台风\n\n台风(Typhoon)是发生在西北太平洋和南海海域的强热带气旋。当热带气旋中心附近最大持续风速达到 32.7 米/秒(12级)及以上时,称为台风。\n\n## 台风形成的四个条件\n\n1…",
    "seo_title": null,
    "created_at": "2026-07-10 12:35:54",
    "updated_at": "2026-07-10 12:35:54"
  },
  "ts": 1795750365000
}
curl -s "https://taifengshuo.com/api/v1/knowledge/what-is-typhoon"

示例节选自真实响应(完整响应约 1.6 KB):data.content_md 的文本较长,示例只截取开头。

GET/api/v1/history/years

历年台风数量

Typhoon counts by year (enveloped) · 缓存约 1 小时

内容与「历年台风数量」相同,包在统一信封的 data 里。 查看 /api/history/years

响应字段

codeinteger
0 表示成功;非 0 是业务错误码
msgstring
成功时为 ok;出错时是原因说明
tsinteger
响应生成的时间,毫秒时间戳
data.yearsarray
各年数量:year、count、records
data.minYearinteger
最早年份
data.maxYearinteger
最新年份
GET/api/v1/history/years
新标签打开
// data 里的内容与 GET /api/history/years 的响应相同,示例见该接口。
// 点「发送请求」可以看到真实返回。
curl -s "https://taifengshuo.com/api/v1/history/years"
GET/api/v1/history/{year}

某一年的全部台风

Typhoons of a year (enveloped) · 缓存约 1 小时

某一年全部台风的概要。注意列表在 data.list 里(不带信封的接口是 typhoons)。

参数

yearinteger路径必填
年份,1945 起。示例 2024

响应字段

codeinteger
0 表示成功;非 0 是业务错误码
msgstring
成功时为 ok;出错时是原因说明
tsinteger
响应生成的时间,毫秒时间戳
data.yearinteger
年份
data.listarray
这一年的台风,字段同 /api/history/{year} 的 typhoons

可能的错误

  • HTTP 400:年份不合法,返回 {"code":40001,"msg":"…","data":null,"ts":…}
GET/api/v1/history/2024
新标签打开
{
  "code": 0,
  "msg": "ok",
  "data": {
    "year": 2024,
    "list": [
      {
        "code": "202401",
        "name": "艾云尼",
        "enname": "Ewiniar",
        "year": 2024,
        "start_time": "2024-05-24 08:00:00",
        "end_time": "2024-06-02 14:00:00",
        "max_strong": "强台风",
        "min_pressure": 955,
        "max_speed": 42,
        "points_count": 60
      }
    ]
  },
  "ts": 1795750365000
}
curl -s "https://taifengshuo.com/api/v1/history/2024"

示例节选自真实响应(完整响应约 5.7 KB):data.list 共 27 项,示例保留 1 项。

机器可读入口

给程序、爬虫和 AI 用的入口。它们和本页出自同一份接口定义,内容保持一致。

入口地址用途
OpenAPI 3.1/openapi.json全部接口的机器可读说明,含参数、响应结构和真实示例,可导入 Postman 或生成 SDK
接口索引/api一份 JSON 列出所有接口、示例地址和接入约定,程序从这里开始即可
本文档的 Markdown 版/api-docs.md给大模型读的纯文本文档,内容与本页一致
MCP 服务/mcp远程 MCP 地址(Streamable HTTP),Agent 直接调用工具
Agent Skill/skill.md标准 SKILL.md,装进 Claude Code 等支持 Skill 的 Agent
llms.txt/llms.txt给 AI 的站点说明:有哪些页面和接口、怎么引用
llms-full.txt/llms-full.txt完整版,含当前活跃台风实况和百科摘要
API 目录/.well-known/api-catalog按 RFC 9727 发布的接口目录,供程序自动发现
Agent Card/.well-known/agent-card.jsonA2A 格式的服务名片,仅用于发现;实际调用请走 MCP 或 REST
MCP 发现文件/.well-known/mcp.jsonMCP 服务的地址与工具清单
任意页面的 Markdown 版网址 + .md站内任何页面在网址后加 .md 就是干净的 Markdown 正文,如 /typhoon/202411.md

每个公开接口的响应头里都带 Link,指向 OpenAPI 说明和本文档;程序拿到任何一个接口的响应,都能顺着找到完整说明。

常见问题

台风说的 API 收费吗?需要申请密钥吗?

不收费,也不需要注册或申请密钥。所有接口都是公开的只读接口,直接发 GET 请求就能用。

可以用在商业项目或 AI 产品里吗?

可以。数据采用 CC BY 4.0 许可,允许商用、改编和用于模型训练,只需要注明来源「台风说 taifengshuo.com」。

数据多久更新一次?有调用次数限制吗?

西北太平洋实时台风约每 10 分钟更新,全球气旋约每 15 分钟更新。接口不需要密钥,也没有按账号计的配额。数据更新没那么快,轮询间隔建议不少于 60 秒,更频繁的请求拿到的也是同一份数据;异常高频的访问可能被安全防护拦截。

接口返回的时间是北京时间还是 UTC?

台风自身的时间(路径点、起止、登陆)是北京时间;系统记录的时间(fetchedAt、created_at 等)是 UTC。实时摘要接口同时给出北京时间和 UTC。

怎么判断现在有没有台风?

调用 /api/llm/summary:typhoons 是空数组就是没有活跃台风。如果用 /api/typhoons,要看每个台风的 active 字段——没有活跃台风时它仍会返回最近一个已停编的台风。

怎么让 AI 助手直接查台风?

支持 MCP 的客户端(如 Cursor、Claude Code、VS Code)添加远程 MCP 地址 https://taifengshuo.com/mcp 即可,里面有现成的查询工具。不支持 MCP 的,让它读 https://taifengshuo.com/skill.md 或直接调用 /api/llm/summary。

数据来自哪里?能用于防灾决策吗?

实时数据来自中央气象台和浙江省水利厅,历史数据来自中国气象局热带气旋最佳路径数据集,全球气旋来自美国 NHC/CPHC、JTWC 和 NOAA IBTrACS。数据仅供参考,防台决策请以气象部门的官方发布为准。

数据来源与引用

实时数据来自中央气象台和浙江省水利厅;历史数据来自中国气象局热带气旋最佳路径数据集(1949 年以前及个别未收录的台风以美国 JTWC 数据补充并单独标注);全球气旋来自美国国家飓风中心(NHC/CPHC)、联合台风警报中心(JTWC)和 NOAA IBTrACS。

引用时请注明「台风说 taifengshuo.com」并写明数据时间,引用格式见如何引用。数据仅供参考,防台决策请以气象部门的官方发布为准。

接口有问题或想要新的字段,可以到联系我们反馈。本页的响应示例抓取于 2026-11-27,只用来说明结构,实际内容以接口返回为准。