Multi-Page Website Crawler to Clean Markdown
Crawl up to 10 public web pages (depth <= 2) honoring robots.txt and SSRF protections, returning clean per-page Markdown.
curl -sG "https://api.agentapigate.ai/v1/web/site/crawl" \ --data-urlencode "url=https://hono.dev" \ --data-urlencode "max_pages=3" \ --data-urlencode "max_depth=1" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Multi-Page Website Crawler to Clean Markdown (`web.site.crawl`) **start_url**: https://hono.dev/ · **pages_crawled**: 3 · **robots_txt_checked**: false ## pages - [1] url: https://hono.dev/, depth: 0, title: Hono - Web framework built on Web Standards, description: Web framework built on Web Standards for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast., markdown: # Hono - Web framework built on Web Standards > - [2] url: https://hono.dev/docs, depth: 1, title: Hono - Web framework built on Web Standards, description: Web framework built on Web Standards for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast., markdown: # Hono - Web framework built on Web Standard - [3] url: https://hono.dev/examples, depth: 1, title: Examples - Hono, description: Web framework built on Web Standards for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast., markdown: # Examples - Hono > Web framework built on Web Standards for Cloudfl
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:web.site.crawl · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| url | string | required | https://hono.dev | Starting public http/https URL (e.g. https://hono.dev) |
| max_pages | number | optional | 3 | Max pages to crawl (1-10) |
| max_depth | number | optional | 1 | BFS link depth (0-2) |
| include_subdomains | boolean | optional | false | Allow crawling links on subdomains of the start host |
| max_chars_per_page | number | optional | 4000 | Max Markdown characters kept per page |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0060 / call | $0/mo · Balance never expires |
| Remote MCP Tool | web_site_crawl | OAuth 2.1 Hub & /mcp/search |
| x402 Base USDC | $0.0060 / call | Zero-signup USDC enabled |
| P50 Latency | 382 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 3356t → 286t (-91%) | Partner credit: eligible |
More web.site Sibling Endpoints
Run live Google search and concurrently extract clean LLM-ready Markdown from top ranked web pages in a single API call.
Discover and deduplicate public site URLs by parsing robots.txt, sitemap.xml indexes, and homepage links with SSRF protection.
Frequently Asked Questions
How do I call Multi-Page Website Crawler to Clean Markdown (web.site.crawl) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/web/site/crawl with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool web_site_crawl on https://mcp.agentapigate.ai/mcp.
What does web.site.crawl cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.006 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on web.site.crawl?
Passing ?format=md transforms the response into normalized Markdown (~286 tokens vs ~3356 raw tokens, saving 91% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only search endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["search"], optional allowed_endpoints: ["web.site.crawl"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.