Zero Trace and Data Retention
Use zero_trace to control whether SerpApi stores a search, and no_cache to request fresh results. Pass these parameters to a client created as shown in Client Usage.
Zero Trace
If your account supports ZeroTrace, pass zero_trace=True to skip storing search parameters, files, and metadata on SerpApi’s servers:
results = client.search(
engine="google",
q="coffee",
location="Austin, Texas",
zero_trace=True,
)
Check your plan and the SerpApi Search API documentation for ZeroTrace availability and data retention details.
Cache Controls
SerpApi can reuse a saved response when the search parameters match a recent request. Pass no_cache=True to fetch fresh results:
results = client.search(
engine="google",
q="coffee",
no_cache=True,
)
no_cache=true and async=true should not be used together.
Choosing Between Modes
Need |
Parameter |
|---|---|
Fetch fresh results |
|
Submit now and fetch later |
|
Skip storing the search on SerpApi’s servers |
|
The table uses API parameter syntax. In Python, write True with a capital T. See Async Search Archive for how to pass the async parameter.