SuperAPI AI 工具集

google-related-questions

写作与研究

查看项目

更新于 10-15 21:41

技能介绍

用途:通过 Frevana 的 Google Related Questions 接口,使用 next_page_token 获取更多 Google“People also ask”/相关问题结果。它不是关键词搜索接口,token 必须来自常规 Google Search API 响应中 related_questions 项的 next_page_token;若用户只给关键词、搜索短语或问题,应先运行常规 Google Search 技能取得该 token,再继续本技能。

主要能力:接收 next_page_token,返回经过校验的响应 JSON,其中常见字段包括 search_metadata、search_parameters、related_questions;每个 related_questions 项可含 question、type、snippet、title、link、displayed_link、source_logo、next_page_token。

使用方式:需要用户提供 next_page_token,环境变量中提供 FREVANA_TOKEN,或本次运行用 --token 覆盖;依赖 curl、bash、python3。优先使用脚本而非临时 curl 命令。基本命令:bash <skill-path>/scripts/search_google_related_questions.sh --next-page-token "eyJvbnMiOiIxMDA0MSI...";--next_page_token 是 --next-page-token 的别名。可用 --output ./out/google-related-questions-result.json 保存 JSON,或用 --token "your bearer token" 覆盖。请求体仅支持 next_page_token,不要添加 engine、api_key、output、no_cache、async、zero_trace 等字段。

输出与限制:成功时脚本校验响应为 JSON 并打印到 stdout,指定 --output 时同时写入文件;失败时打印响应体或解析错误并以非零退出。缺少 curl 或 python3 时应停止并提示安装。不要回显 Bearer token。除非用户要求完整载荷,否则应总结其关心的问题列表。