/api/v1/augment/scrape
Tools
Web 抓取
Scrape a web page and return its content as markdown. Supports most public web pages; some sites (e.g. X/Twitter, Reddit) that block automated access are rejected immediately.
Authentication: This endpoint accepts either a Bearer API key or a SIGN-IN-WITH-X header for x402 wallet-based authentication. The legacy X-Sign-In-With-X header is also accepted during migration. When using x402, a 402 Payment Required response indicates insufficient balance and includes top-up instructions.
POST
/api/v1/augment/scrape
在
url 字段中发送可公开访问的 URL。该 API 将以 markdown 形式返回页面内容。
抓取器会先尝试目标站点原生的 markdown 支持(通过 Cloudflare Markdown for Agents),随后回退到无头浏览器提取。某些屏蔽自动访问的站点(例如 X/Twitter、Reddit)会立即返回 400 错误。
定价: 每次请求 $0.01。
示例(cURL)
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求体
application/json
The URL to scrape
示例:
"https://example.com"