Web Search and Web Fetch API Rate Limits and Billing: A Documentation Verification Guide

    This article verifies the official documentation for web search and web page fetch APIs, correcting two widely circulated but inaccurate claims about rate limits and billing triggers. It breaks down account-level and per-domain throttling, success-only billing, key parameters that affect cost and success rate, and status-code-specific retry logic, then offers practical guidance for building reliable retrieval-augmented pipelines. Data was checked against publicly available documentation as of November 18, 2026.

    1. Why Verify the Documentation Instead of Running Benchmarks

    The APIs for web search and web page content extraction have been widely quoted recently, but at least two points in those quotes conflict with the official documentation: the rate limit numbers and the billing trigger conditions. These discrepancies are not harmless in engineering—they directly change your concurrency model, retry strategy, and cost estimates.

    This article does not run performance benchmarks. It does one thing: align the capability boundaries, rate limit definitions, billing rules, and error codes from the official documentation item by item, and extract reusable, general engineering conclusions. The data was verified on November 18, 2026, based on a cloud vendor’s publicly available search and fetch capability guide, billing notes, and error code table.

    1.1 Capability Boundaries: Two APIs, One Authentication Scheme

    The “full-suite application APIs” opened by a platform on November 13 essentially package application-side web search, file input, link reading, and risk control capabilities into programmable APIs. The underlying models and pricing system remain unchanged. Search and fetch are split into two independent APIs:

    • Search API: takes a query and returns a structured result list;
    • Fetch API: takes a single link and returns the page’s body content as Markdown.

    Both share the same Bearer Token authentication and do not require a separate account. In engineering terms, this means you can drive a “search first, then read” retrieval-augmented chain with the same key management system, without maintaining two separate credential rotation logics.

    2. Discrepancy One: The Real Rate Limit Definition

    The most widely circulated claim is that “both APIs are limited to 5 requests per second.” The current official documentation states: 100 QPS for search and 25 QPS for fetch. Beyond the difference in numbers, three details matter more than the numbers themselves.

    2.1 Calculated per Account, Independent of Key Count

    Rate limits are counted at the account level, regardless of how many API keys you hold. Creating more keys does not grant extra quota; it only adds complexity to key rotation, auditing, and rate limit statistics. The correct approach is to plan the quota as an account-level shared resource, rather than trying to scale horizontally by adding keys.

    2.2 Independent Rate Limits That Do Not Compete

    Search and fetch each maintain independent rate limit buckets. This means maxing out search does not eat into the fetch quota, and vice versa. In pipeline design, the search stage and the fetch stage can proceed in parallel without worrying about mutual interference.

    2.3 Fetch Has an Additional Per-Target-Domain Limit

    In addition to the account-level 25 QPS, the fetch API has an extra QPS limit per target domain. The third point determines the real ceiling for aggregation-type businesses: fetching 100 different sites is usually fine, but when fetching 30 pages from the same site, what triggers 429 is often not the account quota but the domain’s own rate limit.

    This yields two engineering conclusions: first, “creating more keys to bypass rate limits” does not work; second, bypassing the domain limit can only be done by spreading out targets, adding caching, and staggering scheduling.

    1. # Dual-layer rate limiting: account-level token bucket + domain-level token bucket
    2. class DualLimiter:
    3. def __init__(self, account_qps, domain_qps):
    4. self.account = TokenBucket(account_qps)
    5. self.domains = {} # domain -> TokenBucket
    6. self.domain_qps = domain_qps
    7. def acquire(self, domain):
    8. self.account.acquire()
    9. bucket = self.domains.setdefault(
    10. domain, TokenBucket(self.domain_qps))
    11. bucket.acquire() # raises 429 when the domain limit is hit

    3. Discrepancy Two: What Actually Triggers Billing

    The correct statement is “only successful requests are billed”: search must return HTTP 200 with a non-empty result list; fetch must actually return the page body content. No search results, failed fetches, and timeouts are not billed.

    This is not a word game but a watershed for the cost model. It means:

    • Effective cost = unit price ÷ success rate;
    • High-failure long-tail queries are effectively “free” but consume time and quota;
    • The count parameter only controls the number of returned items (usually 1 to 50) and does not affect the per-request price—requesting 50 items costs the same as requesting 1.

    The price itself is not very controversial: both APIs are priced at 5 yuan per thousand requests, or 0.75 USD on the international site, billed only for successful requests. For retrieval-augmented generation or news aggregation scenarios, the cost structure is therefore easier to estimate than expected.

    3.1 The Right Way to Estimate Costs

    Do not estimate by “total requests × unit price.” Estimate by “successful requests × unit price,” and separately track the failure rate and retry amplification factor:

    1. Effective unit price = unit price / success rate
    2. Monthly cost ≈ daily effective requests × effective unit price × 30 × (1 + retry amplification factor)

    4. Four Parameters That Most Affect Cost and Success Rate

    • Whether body content is needed: off by default. Enable it only when you truly need the full text; this can significantly reduce response size and latency;
    • Summary length: there is a range constraint of roughly 600 to 800 characters; an overly long summary crowds out the context budget;
    • Authority score: can serve as a source quality threshold to filter out low-credibility sites;
    • Rerank score: can serve as a relevance threshold to remove weakly relevant results.

    Making “authority score + rerank score” a dual-threshold filter is the most economical way to suppress noise: it improves the context signal-to-noise ratio without increasing the number of requests.

    5. 403 and 404: Where Retry Logic Is Most Often Written Wrong

    403 and 404 are two fundamentally different kinds of failure:

    • 403 is a permission or risk-control rejection; retrying usually does not help, so fall back or escalate to manual intervention;
    • 404 means the target does not exist; retrying is equally pointless, so mark it as a permanent failure;
    • 429 is the only rate limit case and should be retried with exponential backoff;
    • 5xx and timeouts can be retried, but with an upper limit.
    1. def should_retry(status, attempt, max_attempts=3):
    2. if status == 429 or status >= 500:
    3. return attempt < max_attempts
    4. if status in (403, 404):
    5. return False # permission/not found; retrying is pointless
    6. return False

    6. Implementation Recommendations

    1. Use the account-level quota as the main gate and the domain-level quota as the sub-gate, applying dual-layer rate limiting;
    2. Prioritize caching to turn repeated fetches into local hits;
    3. Route retries by status code, avoiding pointless retries on 403/404;
    4. Account for costs by success rate rather than request count;
    5. Make authority score and rerank score default filtering thresholds.

    In general practice on platforms such as Baidu AI Cloud, this combination of “search + fetch + filter + cache” is typically paired with object storage for result archiving, message queues for peak shaving, and logging services with monitoring and alerting for failure rate observation, thereby converging the uncertainty of external APIs into a controllable internal pipeline.