Web Search & SERP Grounding Failover Pool (web_search)
Live web grounding breaks constantly due to tight free-tier search quotas (100-500 RPD) and sudden SERP anti-bot challenges. FuelRouter's web_search pool orchestrates 6 search providers with automatic CAPTCHA soft-ban failover and 7d-21d cross-tenant archive caching.
web_search Upstream Pool Candidates & Quota Windows
| Upstream ID | Domain ID | Cost Tier | Unit Cost | Base Weight | Expected p95 | Quota (RPM/RPD/Mo) |
|---|---|---|---|---|---|---|
| search_tavily_free | app.tavily.com | free_tier_0 | $0.00 | 0.95 | 980 ms | 30 / 100 / 1000 |
| search_valyu_free | platform.valyu.ai | free_tier_0 | $0.00 | 0.91 | 1350 ms | 20 / 200 / 2000 |
| search_serper_t10_slot | serper.dev | free_tier_0 | $0.00 | 0.92 | 820 ms | 50 / 500 / 2500 |
| search_apify_free_credits | console.apify.com | low_cost_wholesale | $0.00080 | 0.89 | 2100 ms | 30 / 1000 / 10000 |
| search_monid_wholesale | app.monid.ai | low_cost_wholesale | $0.00100 | 0.92 | 1450 ms | 60 / 5000 / 150000 |
| search_treg_wholesale | treg.to | standard_fallback | $0.00150 | 0.96 | 1150 ms | 120 / 10000 / 300000 |
Protecting Grounding Agents from Silent Empty SERP Pages
Search endpoints frequently throttle bursts by returning HTTP 200 with an empty results array, a Turnstile verification interstitial, or a JSON quota_exceeded message. FuelRouter requires application/json >= 32 bytes with a non-empty results field before accepting any SERP payload.
When a provider triggers a CAPTCHA challenge, FuelRouter immediately classifies the response as fake_200_captcha_soft_ban, applies a 0.50 health penalty, never attempts bypass, and completes the search via the next eligible provider.
Balanced 7-Day to 21-Day Adaptive Cache Window
Search results evolve faster than embeddings or firmographics. FuelRouter caps web_search adaptive TTL at 21 days (1,814,400s) with a 7-day (604,800s) default, while allowing time-sensitive news agents to pass force_refresh: true for guaranteed live retrieval.
Callers can pass query, max_results, topic, region, include_domains, and exclude_domains, all canonically hashed into the cache key.
Execute a Domain-Filtered Grounding Search with $0 Exhaustion Protection
curl -fsSL -X POST "https://fuelrouter.fastmesh.dev/v1/router/dispatch" \
-H "Content-Type: application/json" \
-d '{
"pool_id": "web_search",
"tenant_id": "research_agent",
"inputs": {
"query": "SQLite WAL concurrent readers writers",
"max_results": 8,
"include_domains": ["sqlite.org"]
},
"max_cost_micros": 40000,
"force_refresh": false
}'
Web Grounding Failover Guidelines
- Use force_refresh: false for reference and documentation queries to maximize 7d-21d cache savings.
- Set force_refresh: true only for breaking-news queries where sub-hour freshness is mandatory.
- Use POST /v1/router/quote to confirm whether free-tier RPD slots (800 combined RPD) still have headroom before launching wide crawls.
- Handle HTTP 503 all_upstreams_exhausted cleanly by sleeping for backoff_advice.retry_after_s (zero cost incurred).
Frequently Asked Technical Questions
How much does a verified web_search call cost?
Fresh hits and new-tenant cache hits bill 8,000 micros ($0.008); same-tenant repeat cache hits bill 800 micros ($0.0008); total exhaustion bills $0.00.
Why does web_search cap adaptive cache TTL at 21 days instead of 30 days?
Search engine rankings shift more frequently than vector embeddings or DNS metadata, so a 7d-21d bound balances freshness with high repeat margin.
What inputs are accepted by the web_search pool?
The pool accepts query, max_results, topic, region, include_domains, and exclude_domains.
Live Try-Now Console & Machine Discovery
Test failover routing, dry-run quotes, and circuit breaker metrics on the live gateway or connect via JSON-RPC 2.0 MCP.
Related FuelRouter Architecture Guides
- Clean Scrape & Markdown Extraction Failover Pool (clean_scrape_extract) — clean URL to markdown extraction API failover
- B2B Firmographic, Domain & DNS Enrichment Waterfall Pool — B2B firmographic domain DNS enrichment failover pool
- 3-State Circuit Breaker Mechanics & Exponential Backoff Recovery — three-state circuit breaker CLOSED OPEN HALF_OPEN recovery