Web Search & Multi-Page Clean Markdown Reader
Run live Google search and concurrently extract clean LLM-ready Markdown from top ranked web pages in a single API call.
curl -sG "https://api.agentapigate.ai/v1/web/site/search_and_read" \ --data-urlencode "query=Model Context Protocol specification" \ --data-urlencode "num_pages=3" \ --data-urlencode "max_chars_per_page=2500" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Web Search & Multi-Page Clean Markdown Reader (`web.site.search_and_read`) **query**: Model Context Protocol specification · **pages_read**: 3 ### 1. Specification - Model Context Protocol (https://modelcontextprotocol.io/specification/2025-06-18) Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. - rank=1 | word_count=657 ### 2. GitHub - modelcontextprotocol/modelcontextprotocol: Specification and documentation for the Model Context Protocol (https://github.com/modelcontextprotocol/modelcontextprotocol) This repo contains the: MCP specification MCP. The schema is defined in TypeScript first, but made available as JSON Schema as well, for wider compatibility. - rank=2 | word_count=166 ### 3. What is the Model Context Protocol (MCP)? - Model Context Protocol (https://modelcontextprotocol.io/docs/2026-07-28/getting-started/intro) MCP (Model Context Protocol) is an open-source standard for connecting AI applications to external systems. Think of MCP like a USB-C port for AI applications. - rank=3 | word_count=426
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:web.site.search_and_read · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| query | string | required | Model Context Protocol specification | Search query (e.g. "Model Context Protocol specification") |
| num_pages | number | optional | 3 | Top organic pages to fetch and extract concurrently (1-5, default 3) |
| max_chars_per_page | number | optional | 2500 | Max Markdown chars returned per page (500-12000) |
| country | string | optional | us | 2-letter search country code (e.g. us, gb, de) |
| language | string | optional | en | 2-letter language code (e.g. en, es, fr) |
| 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.0050 / call | $0/mo · Balance never expires |
| Remote MCP Tool | web_site_search_and_read | OAuth 2.1 Hub & /mcp/search |
| x402 Base USDC | $0.0050 / call | Zero-signup USDC enabled |
| P50 Latency | 1418 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 4302t → 287t (-93%) | Partner credit: eligible |
More web.site Sibling Endpoints
Discover and deduplicate public site URLs by parsing robots.txt, sitemap.xml indexes, and homepage links with SSRF protection.
Crawl up to 10 public web pages (depth <= 2) honoring robots.txt and SSRF protections, returning clean per-page Markdown.
Frequently Asked Questions
How do I call Web Search & Multi-Page Clean Markdown Reader (web.site.search_and_read) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/web/site/search_and_read with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool web_site_search_and_read on https://mcp.agentapigate.ai/mcp.
What does web.site.search_and_read cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.005 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.search_and_read?
Passing ?format=md transforms the response into normalized Markdown (~287 tokens vs ~4302 raw tokens, saving 93% 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.search_and_read"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.