---
title: "Web Search APIs with Zero Data Retention (ZDR) Compared"
description: "Which web search APIs offer zero data retention, on which plans and how you turn it on, why ZDR is harder for search than for model APIs, what to ask a provider, and how to keep a whole agent ZDR."
category: "guides"
url: https://keirolabs.cloud/blog/web-search-api-zero-data-retention
published: 2026-11-24
updated: 2026-11-24
---

# Web search APIs with zero data retention (ZDR): which providers offer it, on which plans

## The 60-second version

**A web search API with zero data retention (ZDR) runs your query and keeps no copy of it, or of the results, once the response is sent.** For AI agents this matters more than it sounds: the search query is often the most revealing thing an agent sends. "[Company] layoffs rumor", "[drug] interaction with [drug]" and "[competitor] pricing teardown" expose intent even when the model call itself is private.

**Most search APIs reserve ZDR for enterprise contracts.** Here is where each stands, from each provider's own documentation in November 2026:

| Search API | ZDR available? | Which plans | How you turn it on |
|---|---|---|---|
| **Keirolabs** | Yes | **Every paid plan** | `"zdr": true` in the request body; responses carry `X-Keiro-ZDR: on` |
| Perplexity Sonar API | Yes, stated as the API default | All API use | Nothing to do |
| Exa | Yes: search, answer, deep research | Growth plan | Team owner enables it in the dashboard |
| Brave Search API | Optional; query logs otherwise kept 90 days | Enterprise | Contract |
| SerpApi | "ZeroTrace mode" | Enterprise only | `zero_trace=true` per search |
| Firecrawl | Yes; search has end-to-end and anonymized modes | Enterprise | Request option |
| Parallel | Sync APIs keep no content; async up to 8 days | Scale plan with a signed agreement | Contract |
| Tavily | No ZDR option documented; may use query data to improve results unless your contract says otherwise | — | — |

**If you need ZDR without a sales call, your options are short:** Keirolabs on any paid plan, or Perplexity's Sonar API, which returns synthesized answers rather than search results.

## Why is ZDR harder for search APIs than for model APIs?

**Because a search request usually passes through more hands.** A model API runs your prompt on its own servers. A search API often has to:

1. **Receive your query,** and possibly log it for billing, abuse prevention or caching.
2. **Run it against a search index,** its own or an upstream engine's.
3. **Fetch and cache pages** if you asked for page content.
4. **Return results,** and possibly keep them for analytics or to improve ranking.

**Each step is a place where a copy can survive.** That is why providers word their ZDR so carefully. Firecrawl, for example, separates "end-to-end" ZDR, where the upstream search provider also keeps nothing, from "anonymized" mode, where only Firecrawl keeps nothing. Brave and Exa point to running their own index as the reason they can offer it.

**When you evaluate a provider, ask the question at every hop, not just at the front door.**

## What should I ask a search provider about ZDR?

| Question | Why it matters |
|---|---|
| Which endpoints does ZDR cover: search, page content, extract, answer, research? | ZDR is often per endpoint. An answer or research endpoint may keep state |
| Are queries kept in logs at all, even for abuse prevention? | "Not used for training" isn't the same as "not stored" |
| Are results or fetched pages cached? | A cache of your results is a copy of your results |
| Does ZDR reach subprocessors and upstream engines? | Your query may be sent onward |
| What is kept for billing? | Should be metadata only: counts, status, timing |
| Can I verify it per request? | A response header or field lets you fail closed in code |
| Is it in the DPA? | Marketing pages change; contracts are what count |

## How do I use ZDR with the Keirolabs search API?

**On any paid plan, add `"zdr": true` to the request.** We then keep no copy of your queries, URLs or results, only what billing needs: credits used, status and timing. It costs nothing extra, and every ZDR response carries an `X-Keiro-ZDR: on` header.

```python
import os, requests

KEIRO = "https://api.keirolabs.cloud/api/v2"
HEADERS = {"Authorization": f"Bearer {os.environ['KEIRO_API_KEY']}"}

def private_search(query: str, count: int = 10) -> list[dict]:
    r = requests.post(f"{KEIRO}/search/lite", headers=HEADERS,
                      json={"query": query, "count": count, "zdr": True}, timeout=30)
    r.raise_for_status()
    if r.headers.get("X-Keiro-ZDR") != "on":          # fail closed
        raise RuntimeError("ZDR was not applied to this request; refusing to continue")
    return r.json()["results"]
```

**Fail closed, not open.** If a request goes out from a free-tier key, a test environment or a client that dropped the flag, raising an error is better than silently creating retained queries. Put the check in the one function every search goes through.

**The same flag works on the other endpoints you'd use in an agent,** such as page content and extraction. Send it on every call, and check the header on every response.

## How do I keep a whole agent ZDR?

**A ZDR search API only covers one hop.** An agent request typically touches:

- **The model provider.** OpenAI and Anthropic offer ZDR by approval or arrangement, for eligible endpoints and models only.
- **Built-in search tools.** Google's Grounding with Google Search stores prompts and output for 30 days with no way to disable it. OpenAI's live web search tool isn't covered by its BAA.
- **Your search API.** Use the provider's ZDR flag and verify it.
- **Your own logs.** Gateways, tracing tools and error trackers often store full prompts and tool results. ZDR at your providers doesn't clean those up.

The provider-by-provider details for OpenAI, Anthropic and Google are in [zero data retention for AI APIs](/blog/zero-data-retention-ai-apis). If you're replacing a built-in search tool to get ZDR, [how to give an LLM a web search tool](/blog/llm-web-search-tool-calling) has the code for Claude, OpenAI-compatible APIs and local models.

## Checklist

- **Pick a search API whose ZDR covers every endpoint you call.**
- **Send the ZDR flag on every request, through one shared function.**
- **Verify ZDR per response and fail closed.**
- **Avoid built-in search tools that store data,** such as Google Search grounding.
- **Scrub prompts and tool results from your own logs and traces.**
- **Get ZDR and subprocessors into the DPA.**

Keirolabs includes ZDR on every paid plan, from $29.99 a month ([see plans](/pricing) or [get a key](https://platform.keirolabs.cloud/register)).
