← 返回
开发者工具 Key 中文

zhipu web fetch

Zhipu AI Web Page Reader Tool - Fetches and parses web page content into structured Markdown or text via cURL. Use when: - Need to fetch and read the content...
Zhipu AI网页读取工具 - 使用cURL获取并解析网页内容为结构化Markdown或文本。适用场景:- 需要获取并读取内容...
whyhit2005
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 514
下载
💾 18
安装
1
版本
#latest

概述

Zhipu Web Page Reader

Fetch and parse web page content via Zhipu AI's Reader API (/paas/v4/reader), using lightweight cURL. Returns parsed page content in Markdown or plain text format, along with metadata like title and description.

Quick Start

Basic cURL Usage

curl --request POST \
  --url https://open.bigmodel.cn/api/paas/v4/reader \
  --header "Authorization: Bearer $ZHIPU_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
    "url": "https://www.example.com"
  }'

Script Usage

A wrapper shell script is provided for convenience.

# Basic Fetch (returns Markdown by default)
bash scripts/zhipu_fetch.sh --url "https://www.example.com"

# Fetch as plain text, no cache
bash scripts/zhipu_fetch.sh \
  --url "https://docs.python.org/3/" \
  --format text \
  --no-cache

# Fetch with image and link summaries
bash scripts/zhipu_fetch.sh \
  --url "https://news.example.com/article" \
  --images-summary \
  --links-summary

# Fetch without images, disable GFM
bash scripts/zhipu_fetch.sh \
  --url "https://blog.example.com/post" \
  --no-images \
  --no-gfm

API Parameter Reference

ParameterTypeRequiredDefaultDescription
-------------------------------------------------
urlstring-URL of the web page to fetch
timeoutinteger-20Request timeout in seconds
no_cacheboolean-falseDisable caching (true/false)
return_formatstring-markdownReturn format: markdown or text
retain_imagesboolean-trueRetain images in output (true/false)
no_gfmboolean-falseDisable GitHub Flavored Markdown (true/false)
keep_img_data_urlboolean-falseKeep image data URLs (true/false)
with_images_summaryboolean-falseInclude images summary (true/false)
with_links_summaryboolean-falseInclude links summary (true/false)

Response Structure

The API returns JSON with the parsed page content.

{
  "id": "task-id",
  "created": 1704067200,
  "request_id": "request-id",
  "model": "model-name",
  "reader_result": {
    "title": "Page Title",
    "description": "Brief page description",
    "url": "https://www.example.com",
    "content": "Parsed page content (Markdown or text)",
    "external": {
      "stylesheet": {}
    },
    "metadata": {
      "keywords": "page, keywords",
      "viewport": "width=device-width",
      "description": "Meta description",
      "format-detection": "telephone=no"
    }
  }
}

Key Response Fields

FieldDescription
--------------------
reader_result.contentMain parsed content (body text, images, links)
reader_result.titlePage title
reader_result.descriptionBrief page description
reader_result.urlOriginal page URL
reader_result.metadataPage metadata (keywords, viewport, etc.)

Common Use Cases

ScenarioCommand
-------------------
Read a documentation page--url
Extract text only (no images)--url --no-images --format text
Force fresh fetch (bypass cache)--url --no-cache
Get content with all summaries--url --images-summary --links-summary
Long page with extended timeout--url --timeout 60

Environment Requirements

  • Environment variable ZHIPU_API_KEY must be configured.
  • curl command must be available in your system path.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 04:50 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,996
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,973
data-analysis

zhipu web search

whyhit2005
智谱AI网络搜索工具——通过cURL提供灵活的搜索引擎功能。适用场景:需要搜索网络信息获取最新数据时。
★ 7 📥 4,327