Bright Data Scrape As Markdown
1.8积分/次
ae_brightdata_scrape_as_markdown
通过 Bright Data 抓取单个网页,供阅读、摘要或内容提取使用。必须提供网页地址 `url`。可选参数 `format` 支持 `markdown`(默认)、`text`、`html` 和 `ld_json`。 文档说明返回 JSON,包含 `url`(网页地址)、`title`(标题)、`format`(内容格式)和 `content`(网页内容)。Markdown 适合阅读;`text` 提供不含链接和标题格式的纯文本;`html` 提供原始 HTML,便于检查标记或后续使用 CSS 选择器提取数据;`ld_json` 提供页面中已有的 schema.org 数据,例如价格、评分或作者。每次返回一种格式的内容。若页面没有所请求格式的数据,则回退为 Markdown,并附上说明。 该工具不执行 JavaScript 渲染。耗时超过 45 秒的请求会超时。
1.8积分/次
价格说明
1.8积分/次
| 条件 | 费用 |
|---|---|
| 每次调用 | 1.8积分/次 |
每次调用抓取一个网页,返回一种格式的内容。支持 markdown(默认)、text、html 和 ld_json;若页面没有所请求格式的数据,则回退为 Markdown,并附上说明。
API 调用
通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。
cURL
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_brightdata_scrape_as_markdown' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"url": "https://example.com/image.jpg"
}
}'- 请求方式
- POST
- 接口地址
- /agent-api/v1/tool/execute
- 鉴权方式
- X-Api-Key
- 超时时间
- 60 秒
响应示例
{
"error_no": 0,
"error_msg": "",
"result": [
{
"type": "text",
"text": "xxx"
}
],
"platform_annotations": {
"source": "AgentEarth",
"platform_note": "xxx",
"platform_suggestion": "xxx"
}
}工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
url | string | 是 | URL of the web page to fetch. | — |
format | enum (markdown | text | html | ld_json) | 否 | Format for the returned page content: markdown (default), text (plain text without links or headings), html (raw HTML), or ld_json (schema.org data present on the page). If the page has no data in the requested format, Markdown is returned instead with a note. | markdown |
使用该工具的指南
看看真实工作流里怎么用这个工具

