AgentAPIGate
Back to Catalog
GET /v1/web/site/crawlPack: search·MCP Tool: web_site_crawl

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.

API Key Price:$0.0060 / call
x402 Base USDC:$0.0060 / call
Partner Credit:eligible
1. Parameters & Controls
Starting public http/https URL (e.g. https://hono.dev)
Max pages to crawl (1-10)
BFS link depth (0-2)
Allow crawling links on subdomains of the start host
Max Markdown characters kept per page
Get $0.25 Free Key →
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"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-91% tokens
# 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
ParameterTypeReqSample / DefaultDescription
urlstringrequiredhttps://hono.devStarting public http/https URL (e.g. https://hono.dev)
max_pagesnumberoptional3Max pages to crawl (1-10)
max_depthnumberoptional1BFS link depth (0-2)
include_subdomainsbooleanoptionalfalseAllow crawling links on subdomains of the start host
max_chars_per_pagenumberoptional4000Max Markdown characters kept per page
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0060 / call$0/mo · Balance never expires
Remote MCP Toolweb_site_crawlOAuth 2.1 Hub & /mcp/search
x402 Base USDC$0.0060 / callZero-signup USDC enabled
P50 Latency382 ms$0 billed on empty or 4xx/5xx
Token Economy3356t → 286t (-91%)Partner credit: eligible

More web.site Sibling Endpoints

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.