← 返回
未分类 Key 中文

Tinyfish Fetch

Fetch web pages via TinyFish Fetch API and get clean markdown, HTML, or screenshots back — handles JS rendering and proxying. Use when you need to read a spe...
通过 TinyFish Fetch API 获取网页,返回干净的 Markdown、HTML 或截图,支持 JS 渲染和代理。适用于需要读取特定页面的场景。
bunsdev
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 404
下载
💾 0
安装
1
版本
#latest

概述

TinyFish Fetch

Fetch one or more URLs via the TinyFish Fetch API. Returns rendered page content (markdown by default), optionally with screenshots, behind an optional proxy.

Requires: TINYFISH_API_KEY environment variable.

Pre-flight Check (REQUIRED)

Before calling the API, verify the key is present:

[ -n "$TINYFISH_API_KEY" ] && echo "TINYFISH_API_KEY is set" || echo "TINYFISH_API_KEY is NOT set"

If the key is not set, stop and ask the user to add it. Get one at . Do NOT fall back to other fetch tools.

Basic Fetch

curl -X POST "https://api.fetch.tinyfish.ai" \
  -H "X-API-Key: $TINYFISH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "urls": ["https://example.com"],
    "format": "markdown"
  }'

format accepts markdown (default), html, or screenshot.

Multiple URLs

curl -X POST "https://api.fetch.tinyfish.ai" \
  -H "X-API-Key: $TINYFISH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "urls": [
      "https://example.com",
      "https://example.org"
    ],
    "format": "markdown"
  }'

Proxy / Geo Targeting

curl -X POST "https://api.fetch.tinyfish.ai" \
  -H "X-API-Key: $TINYFISH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "urls": ["https://example.com"],
    "format": "markdown",
    "proxy_config": { "country": "US" }
  }'

Helper Script

scripts/fetch.sh [ ...] [--format markdown|html|screenshot] [--country CC] wraps the curl call:

scripts/fetch.sh https://example.com
scripts/fetch.sh https://example.com https://example.org --format html
scripts/fetch.sh https://example.com --format markdown --country US

Response Shape

{
  "results": [
    {
      "url": "https://example.com",
      "status": 200,
      "content": "# Example Domain\n\nThis domain is for use…",
      "format": "markdown"
    }
  ]
}

Read results[].content for the rendered page. Screenshot format returns base64-encoded PNG data.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 05:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

EPUB ↔ PDF Converter

bunsdev
双向互转 EPUB 与 PDF。EPUB→PDF 保持排版便于分析;PDF→EPUB 压缩重排用于分发和阅读器。
★ 0 📥 335

Tinyfish Search

bunsdev
通过 TinyFish Search API 执行网页搜索,获取结构化 JSON 结果(标题、摘要、URL),可直接供 LLM 使用。适用于需要最新网页搜索的场景。
★ 0 📥 452

Tinyfish Browser

bunsdev
通过 TinyFish Browser API 启动远程浏览器会话并获取 CDP URL,以便自动化控制。适用于需要可自动化的Chromium 会话(Playwright)。
★ 0 📥 402