SuperAPI AI 工具集

blink-fetch

通用与其它

查看项目

更新于 10-15 20:06

技能介绍

用途:通过 Blink 代理向外任意 URL 发起 HTTP 请求,适合在命令行或脚本中调用外部 API、抓取网页内容。无需项目密钥,使用工作区密钥。

主要能力:支持 GET 及 POST、PUT、PATCH、DELETE 等方法;可发送 JSON 请求体与自定义请求头(如 Authorization);返回响应体,并可通过 --json 输出后交给其它工具处理。

用法示例: GET:blink fetch "https://api.github.com/users/octocat" POST JSON:blink fetch "https://api.example.com/data" --method POST --body '{"name":"Alice","email":"alice@example.com"}' 自定义头:blink fetch "https://api.example.com/protected" --header "Authorization: Bearer sk-xxx" 抓取网页:blink fetch "https://news.ycombinator.com" 脚本提取 JSON:blink fetch "https://api.github.com/repos/openclaw/openclaw" --json | python3 -c "import json,sys; print(json.load(sys.stdin)['stargazers_count'])"

命令签名:blink fetch <url> [--method GET|POST|PUT|PATCH|DELETE] [--body '<json>'] [--header 'Key: Value']。url 必填;--method 默认 GET;--body 用于 POST/PUT/PATCH 的 JSON 体;--header 为 "Key: Value",可重复。

适用场景:调用外部 API、获取网页、在脚本或流水线中做 HTTP 请求与 JSON 字段提取。

限制:资料未提供代理的具体配置、限额、鉴权细节、错误码、平台支持及依赖安装方式,暂未提供。