Skip to content

Caching & freshness

Identical queries are cached so you don’t pay full price (or wait) for a result that was just fetched. Whether a request was served from cache is always reported in stats.cached, and it determines the cost.

Sourcestats.cachedCreditsLatency
Cache hittrue3sub-100ms
Fresh fetchfalse6live fetch via residential proxy

A result is cacheable by the exact combination of query + country (gl) + language (hl) + time filter (tbs) + page — change any of them and it’s a different cache entry. See Pricing & credits for the credit model.

The optional freshness parameter lets you choose how a single request treats the cache:

freshnessBehaviour
defaultServe a recent cached result if one exists, otherwise fetch fresh. (default)
realtimeAlways fetch fresh — bypass the cache. Charged the fresh rate (6 credits).
cachedPrefer a cached result.
{ "q": "nvidia stock price", "freshness": "realtime" }