Skip to content
CrawlfolioSourced research on web data for AI
Menu

Data study

Do search API domain and date filters actually hold?

I read ten search APIs' docs on domain allowlists, date windows, list limits and what a wrong filter returns. Docs only, no calls. Checked 25 Nov 2026.

A navy card mat with a vermilion window cut out of it, laid over a scatter of blank paper squares
AI-generated image · Made for this page

Yes for most of them, but not in the same way: nine of the ten search APIs I read document a date filter, and six have a dedicated domain list, with limits from 50 or 100 up to 5,000 entries. They differ on whether the list is a rule or a hint, which date the window uses, which date format they want, and what you see when a filter is wrong.

I read each vendor’s own docs on November 25, 2026, except Serper’s, which I could not open. I made no API call of my own, so this is what the docs say plus my arithmetic. For prices I link my search APIs hub and the pricing posts instead of repeating them.

The pages that came up when I searched for this were vendor-run. Exa’s Q&A compares itself with an unnamed “standard” API, You.com’s roundup describes only its own filters, and a third-party scoring post says nothing about domain filtering (Exa Q&A, You.com roundup, DEV scoring post). I found no neutral table across vendors, so I built one below.

Short on time?

Short on time? Here's my take.

A trusted-sites list plus a date window, in one call
Exa
includeDomains and excludeDomains take up to 1,200 entries each (host, path or *.sub), startPublishedDate and endPublishedDate take ISO date-times, and an unsupported filter is a 400. Watch out: its crawl-date fields are ignored with only a warning. Runner-up: Perplexity Search API, with 200 entries, paths and TLDs, and four date filters.
An allowlist that must never leak
Tavily in restrict mode
Restrict is the default and is a hard filter, so do not switch to prefer. The quiet parts: undated pages are kept unless filter_by_published_date is on, and a restrictive list may return nothing if no listed site covers the query. Runner-up: You.com include_domains, a strict allowlist of up to 500.
A custom date range on Google-shaped results
SerpApi
It documents tbs relative windows, a custom cdr range and as_sitesearch. I could not confirm the cdr date format, so test one range before you build on it.
Cheapest date presets on Google
apiserpent.com
freshness presets from hour to year, a bad value is a 400 and failed requests are auto-refunded, and Google is $0.60 / $0.30 / $0.20 / $0.15 / $0.03 per 1K by deposit. No custom range and no domain parameter in its docs, and site: is not documented as a feature.

Prices verified . Sponsors cannot buy a verdict or a position.

Skip query-string tricks when a real parameter exists. Exa says to use its parameter instead of a site: operator, and Bright Data says after: and before: inside the query are more likely to trigger blocks than its tbs parameter (Exa, Bright Data). Confidence is high on parameter names and limits as I read them. It is medium on Brave’s custom range, You.com’s bad-freshness behaviour and apiserpent.com’s site:, and Serper is not verified.

Is a domain filter a rule or a hint? #

Both exist, and the docs rarely say which one you have bought. Tavily is the clearest: include_domains_mode defaults to restrict, a hard filter, while prefer also searches the rest of the web, so off-list results can appear (Tavily reference).

You.com calls include_domains “A strict allowlist” and says boost_domains is “not a filter” (You.com reference). The Brave pages I read show no domain parameter, but its Goggles can $discard (“Completely remove matching results”) or only $boost and $downrank (Brave Goggles). Perplexity’s country is a relevance preference, not a filter (Perplexity reference).

The word to look for is “strict” or “remove”. If a vendor says “boost”, “prefer” or “prioritize”, you have a ranking nudge and you need a check on your side.

There are a few independent reports of leaks, and they are thin. One Tavily GitHub issue from 2024 said several include_domains returned null results and was closed as resolved (issue 21). One OpenAI forum poster reported that blocked_domains appeared in sources in 13 of 213 test cases, though the count varied between runs and another user said they could not reproduce it (thread). OpenAI is outside the ten I read, and one reporter is a report, not a finding.

What does each API let you filter, and how many sites? #

Here are all ten, read on 2026-11-25, with Google’s closing Custom Search API as the last row. Numbers are per request. If you are comparing the services on cost as well, my best web search APIs roundup has the price side.

API Domain allow / deny Max entries Absolute dates Relative window Date basis Source
Tavily include_domains / exclude_domains; mode restrict (default) or prefer 300 / 150 start_date, end_date, YYYY-MM-DD time_range d / w / m / y Publish date; undated kept unless filter_by_published_date Reference, best practices
Exa includeDomains / excludeDomains (host, host plus path, *.sub) 1,200 each startPublishedDate, endPublishedDate, ISO 8601 None seen Publish date; crawl-date fields ignored Reference
Brave No parameter: site: in q; Goggles $discard / $boost Goggles: up to 3 per request, 2 MB and 100,000 instructions per file Custom freshness range, shown by example only pd / pw / pm / py Not stated Query, Goggles
Serper Not verified: official docs unreadable Not verified Not verified tbs qdr:h/d/w/m/y per a third-party catalog Not verified Catalog, LiteLLM
SerpApi site: in q; as_sitesearch with as_dt Not stated tbs=cdr:1,cd_min,cd_max (format not defined) tbs=qdr:*, as_qdr Google’s own Search API, advanced, blog
Linkup includeDomains / excludeDomains 100 (reference) or 50 (tutorial); exclude cap not stated fromDate, toDate, YYYY-MM-DD None seen Not stated Reference, tutorial
Perplexity Search API search_domain_filter, - prefix to deny; paths and TLDs 200, each up to 253 characters Four filters, MM/DD/YYYY search_recency_filter Publication and last-updated Reference, domain filter, dates
Parallel include_domains / exclude_domains (host, path, .tld, *.sub) 200 combined after_date only None seen Publication date Source policy
You.com include_domains / exclude_domains (not together); boost_domains 500 / 5,000 freshness as YYYY-MM-DDtoYYYY-MM-DD day / week / month / year Not stated Reference
apiserpent.com None documented; site: in q not a documented feature Not applicable None documented freshness h / d / 7d / w / m / y “Published or indexed” (its blog) Docs, blog
Google CSE (closed) siteSearch with siteSearchFilter 1 site None dateRestrict Google’s own Reference

Notes. Linkup’s reference and tutorial disagree (100 versus 50), so I plan for 50. Tavily’s wildcards such as *.com appear in its best practices and help article, not in its reference. Perplexity says paths work on segment boundaries (nature.com/articles) and that allow and deny entries can be mixed, but not how a conflict resolves.

A suspended block of stacked glass sheets, thin vertical layers on one side and a frosted pale grass scene etched into the face, on a black background
Every layer looks the same from the edge, but what each one holds is different, like a domain list that matches names rather than checking content. Photo: Declan Sun / Unsplash · Unsplash License

Limits decide more than I expected. A 250-site allowlist fits Tavily (300), Exa (1,200) and You.com (500), but not Perplexity or Parallel (200 each) or Linkup (100). A big denylist fits You.com (5,000) or Exa (1,200). Parallel’s 200 is shared across both lists, so a 150-site allowlist leaves room for 50 exclusions.

Two traps inside the entries. Parallel treats an apex domain as including subdomains, while *.example.com means subdomains only (Parallel). Exa’s company and people categories do not support the published-date filters, and people does not support excludeDomains either (Exa).

How do the date filters differ? #

Mostly in the format and the date they apply to. Tavily’s best practices say “Date filters match a page’s publish date, not its last update.” (Tavily best practices). Exa filters on published date, Parallel’s after_date is the earliest publication date, and Perplexity has both a publication pair and a last-updated pair (Exa, Parallel, Perplexity).

For the rest, Brave, Linkup and You.com do not say which date they use. A news-in-the-last-week job is only as good as that date, and a page that was edited yesterday but published in 2021 can pass or fail depending on the basis.

Here are the format traps in one list.

  • Perplexity: MM/DD/YYYY. An ISO date such as 2025-03-01 returns an HTTP 400 (date filters). “After” includes that day.
  • Tavily, Linkup, Parallel: YYYY-MM-DD. Linkup wants dates later than 1970-01-01 and toDate after fromDate.
  • Exa: ISO 8601 date-time.
  • Brave: a to string, shown only as 2022-04-01to2022-07-30, a custom range I could not confirm beyond that example.
  • You.com: YYYY-MM-DDtoYYYY-MM-DD, or day, week, month, year.
  • SerpApi: tbs=cdr:1,cd_min:x/x/x,cd_max:y/y/y with slash dates (the example is 1/1/2022), and I cannot tell from the pages whether that is month-first.
Sunlit, rust-brown volcanic rock cut into thin diagonal layers with rough texture and dark shadow between them
One date window, three different clocks behind it: published, updated and indexed each slice the layers differently. Photo: Victor Rosario / Unsplash · Unsplash License

Relative windows are simpler. Tavily takes d, w, m, y; Brave pd (24 hours), pw (7 days), pm (31 days), py (1 year); You.com day to year; Perplexity hour to year; SerpApi qdr:h/d/w/m/y; and apiserpent.com h, d, 7d, w, m, y (Brave, SerpApi blog).

Two combinations behave in ways you might not expect. Perplexity returns a 400 if you use search_recency_filter with its after or before filters. You.com takes a temporal keyword in the query and freshness together and uses “the broader of the two timeframes” (You.com).

Exa’s startCrawlDate and endCrawlDate are deprecated and “Ignored by the API”, and setting them adds an IGNORED_FIELD warning (Exa). If you copied an older Exa snippet, check that warning first.

What happens when a filter is wrong or matches nothing? #

Some APIs fail loudly and some fail quietly, and a quiet failure is the one that reaches your users. Perplexity, Exa, You.com and Parallel return errors for several bad inputs; Tavily, You.com’s operators, Brave and Exa’s crawl dates degrade without one.

API Bad format or invalid combination Matches nothing, or undated Silent behaviour to watch
Tavily 400 for a mode without include_domains; 422 for validation. Bad date format and start-after-end: not documented Undated pages kept by default; filter_by_published_date=true drops them. Guidance implies restrict can return nothing when no listed site covers the query prefer lets off-list results in. Stale cache it cannot fetch live is dropped, so fewer than max_results; time_range can drop continuously updated pages
Exa 400 for an unsupported filter on company or people Not documented in the pages I read Crawl-date fields ignored with a warnings entry only
Brave No error codes in the pages I read count is a ceiling: the number returned “may be less” Goggles $boost only nudges; $discard removes
SerpApi site: with tbm=nws “can’t be used” (effect not stated) Not documented num is no longer honored: a maximum of ten results per page
Linkup Dates must be after 1970-01-01, toDate after fromDate (response not stated) With both lists, results only include inclusion matches List cap 100 or 50, unresolved
Perplexity 400 for ISO dates, and for recency with after or before Inverted ranges, same-day ranges, no-match bodies and undated results not documented country is a preference, not a filter
Parallel Over 200 entries is a validation error; invalid * use or an unknown source_policy key is a 422 Excluding every include entry means no results The same entry in both lists is excluded, with a warning; a * that is only part of a segment is matched literally
You.com Include plus exclude together is documented as invalid (its 422 section covers invalid parameter combinations). Bad freshness: not specified When operators match no pages the search relaxes them, unless strict_operators is set Keyword date and freshness use the broader timeframe
apiserpent.com A bad freshness is a 400 invalid_parameter; failed non-2xx requests are auto-refunded num is “a ceiling, not a promise”; short answers carry meta.partialResults and a delivery block Google freshness is a re-rank on index timestamps, per its blog; narrow windows can return fewer results
Google CSE Error when start plus num goes over 100 Not read Ends for existing customers on 2027-01-01
Serper Not verified Not verified Not verified

The quote in the You.com row is “By default, when a query’s operators match no pages, the search relaxes them and returns the closest matches.” (You.com). That is a quiet fallback: your site: can vanish when it finds nothing, and you get unrelated results back. Tavily’s prefer mode is the same kind of trap, and its undated-pages rule is the one I would check first for a date-bounded audit.

I could not find what any API returns for a start date after the end date, or what an empty result body looks like. Test both before you rely on either.

Does the site: operator still work? #

Where it is documented, yes, but I would not choose it over a parameter. SerpApi says site: works as a regular Google operator in q, with the caveat that it “can’t be used with tbm set to nws” (SerpApi). Brave’s query page shows site:github.com rust tutorials, and says nothing of -site: or inurl (Brave).

You.com enforces operators exactly only with strict_operators (You.com). Exa tells you to use includeDomains “instead of adding a site: operator to the query”.

You.com’s own roundup says domain filtering works through site: and NOT operators, but its API reference has a strict include_domains parameter (roundup). The page is looser than the docs, so I follow the docs. If you want the operator route on Google-shaped results, SerpApi’s as_sitesearch is the parameter form, and as_dt includes or excludes that site (SerpApi advanced parameters).

The old answer was Google’s Custom Search JSON API, with siteSearch and dateRestrict (Google reference). Its overview says it is “closed to new customers”, and “Existing … customers have until January 1, 2027 to transition”, with Vertex AI Search suggested for up to 50 domains (Google overview). My Google Custom Search API alternatives post covers where to go.

Where does apiserpent.com fit? #

It fits as the cheap preset option on Google, and it is not the choice for domain control. What its own docs say: freshness is documented on standard search (default engine google) with presets for hour, day, week, month and year, and the docs list h or 1h, d or 1d, 7d, w, m or 1m, and y or 1y (apiserpent.com docs).

A bad value is a 400 invalid_parameter: its error table lists “bad freshness” as an example, and its pricing section says failed non-2xx requests are refunded automatically. Every call can return up to 100 results, and num is “a ceiling, not a promise”.

What the docs I read do not have: a custom date range, tbs, dateRestrict, or a domain include or exclude parameter. For site:, the only mention is a refusal rule: location cannot be combined with site:, inurl:, intitle: or filetype: in q, and is refused with a 400 and never charged. No sentence says site: is honored, so I cannot call it a supported feature.

Two more things from its own pages. The Google product page lists freshness options 1d, 7d and 1m, narrower than the docs table. Its blog says Google filtering “leverages Google’s index timestamps” and re-ranks by recency, that narrow d windows may return fewer results for niche queries, and that freshness is accepted by Google, DuckDuckGo, Yahoo and Bing, varying by endpoint.

So I read freshness there as a recency preset, not a hard publish-date cut, and the blog’s FAQ says “published or indexed” in a window.

For context, the Google ladder per 1K searches is $0.60 (Default), $0.30 (Growth), $0.20 (Scale), $0.15 (Enterprise) and $0.03 (Enterprise Plus), by deposit size, and a free account adds 10 free calls shared across services (pricing). My cheapest SERP API and best SERP API posts compare that ladder with the others.

This is a SERP product, so I am comparing filter control, not result quality. If your job is trusted sites plus a date range, it is not the pick. If it is the last day, week or month on Google at the lowest price, it is a fair one.

Which one should you pick? #

Pick Exa for the combined list and window, Tavily in restrict mode for a leak-proof allowlist, SerpApi for a custom range on Google results and apiserpent.com for cheap presets. I name a pick per job below, based on what the docs promise and not on result quality.

  • A trusted-sites list plus a date window, hard filter: Exa. Entries up to 1,200 each, ISO date-times, and a 400 for unsupported filters. Runner-up: Perplexity Search API, which takes paths and TLDs and returns a 400 for a wrong date format. See my Exa pricing and Perplexity Search API pricing posts. If you are choosing between the first two, my Tavily vs Exa post covers the rest.
  • An allowlist that must never leak: Tavily in restrict mode, with filter_by_published_date on if you also set dates. Keep the list short, as its guidance says. Runner-up: You.com include_domains, a strict allowlist, so long as you do not set an exclude list too. See my Tavily pricing and You.com API pricing posts.
  • News from the last 7 days: any relative window will do. Tavily time_range=week, Brave pw, You.com week, Perplexity week and apiserpent.com 7d all exist. For the price per call, see my Brave pricing post.
  • An arbitrary date range on Google-shaped results: SerpApi, the only one I read documenting both qdr windows and a custom cdr range alongside as_sitesearch. Test its date format first. See my SerpApi pricing post.
  • Cheapest Google presets, no custom range: apiserpent.com. Do not buy it for domain control.
  • You use Serper or Linkup already: I could not verify Serper’s filters, and Linkup’s list cap is 100 or 50. Check both before you plan around them: Serper pricing, Linkup pricing.
  • A filter that also needs a country or a location: that is a different parameter, covered in my location targeting post. Rate limits are in my search API rate limits post.

If you are still choosing a vendor, my evaluate a search API post sets out what to compare, and my search API index sources post covers where each one’s results come from.

How do you check that your filter held? #

You do not need code, just a habit. Treat the filter as a request, not a promise, and check the result against your own rules after every run.

  1. Compare each result URL’s host with your list. Anything off the list is a leak.
  2. Compare each result’s date field with your window. Note any result with no date, because undated pages may be kept.
  3. Log the count returned against the count you asked for, so a short answer is visible.
  4. Keep a short log of any warnings or error codes, since some APIs report a problem only as a warning.

Run the check on a handful of queries before you launch, and again whenever the vendor changes a parameter. My evaluate a search API post covers the wider testing plan.

What I could not verify #

The main gaps are Serper (official docs unreadable), Brave’s custom date range and error codes, SerpApi’s cdr format, Linkup’s 100 versus 50 cap, and You.com’s reply to a bad freshness. I also found no sentence that says site: is supported at apiserpent.com.

I could not find documented behaviour for inverted date ranges or empty-result bodies at any API. I did not read Bing and other SERP products. The independent reports I found (one Tavily issue, one OpenAI thread) are few, and none confirms a filter failing today.

FAQ

Can I use site: instead of a domain parameter?

Where the docs mention it, yes, but I would use a parameter when one exists. Brave and SerpApi document site: inside the q string, though SerpApi says it cannot be used with tbm set to nws. Exa says to use its domain parameters instead of adding a site: operator, and You.com enforces operators exactly only with strict_operators. I found no apiserpent.com sentence saying site: is a supported feature.

Do date filters use the publish date or the last-updated date?

Publish date, where the docs say. Tavily states that its date filters match a page's publish date, not its last update, and Exa filters on published date. Perplexity is the only one I read with a separate last-updated pair of filters. Brave, Linkup and You.com do not say which date they use.

Why did I get fewer results than I asked for?

Several docs say it can happen. Tavily leaves out stale cached pages it cannot fetch live, and its guidance says prefer mode avoids empty results when none of your trusted sources cover the query, which implies restrict mode can return none. Brave says the number returned may be less than count, and apiserpent.com calls num a ceiling, not a promise, with a delivery block when a response is short. A narrow freshness window on a niche query can also return fewer, per apiserpent.com's own blog.

Does apiserpent.com support a custom date range?

Not in the docs I read. It documents freshness presets (hour, day, week, month, year) and no custom range, tbs, dateRestrict or domain include and exclude parameter. A bad freshness value is a documented 400, and the docs say failed non-2xx requests are refunded automatically. If you need an arbitrary range on Google-shaped results, SerpApi documents one.

Is the Google Custom Search JSON API still an option?

Only for existing customers. Google's overview says it is closed to new customers and that existing customers have until January 1, 2027 to transition. It had siteSearch and dateRestrict, which is why people still ask for it. My Google Custom Search API alternatives post covers what to move to.

Sources

32 sources, accessed .

Official pricing, docs, changelogs and status pages 23

  1. Tavily docs: Search API reference docs.tavily.com · accessed
  2. Tavily docs: search best practices docs.tavily.com · accessed
  3. Tavily help: controlling search results with include and exclude domains help.tavily.com · accessed
  4. Exa docs: search reference docs.exa.ai · accessed
  5. Brave Search API docs: web search query parameters api-dashboard.search.brave.com · accessed
  6. Brave Search API docs: web search service api-dashboard.search.brave.com · accessed
  7. Brave Search API docs: Goggles api-dashboard.search.brave.com · accessed
  8. SerpApi docs: Google Search API serpapi.com · accessed
  9. SerpApi docs: advanced Google query parameters serpapi.com · accessed
  10. Linkup docs: search API reference docs.linkup.so · accessed
  11. Linkup docs: filtering tutorial docs.linkup.so · accessed
  12. Perplexity docs: Search API reference docs.perplexity.ai · accessed
  13. Perplexity docs: domain filter docs.perplexity.ai · accessed
  14. Perplexity docs: date range filter guide docs.perplexity.ai · accessed
  15. Perplexity docs: date and time filters docs.perplexity.ai · accessed
  16. Parallel docs: source policy docs.parallel.ai · accessed
  17. You.com docs: Search API reference you.com · accessed
  18. apiserpent.com API docs apiserpent.com · accessed
  19. apiserpent.com pricing apiserpent.com · accessed
  20. apiserpent.com Google SERP API product page apiserpent.com · accessed
  21. Google Custom Search JSON API: cse.list reference developers.google.com · accessed
  22. Google Custom Search JSON API: overview developers.google.com · accessed
  23. Bright Data docs: SERP API Google query parameters docs.brightdata.com · accessed

GitHub code, issues and releases 1

  1. tavily-python issue 21: search method fails with multiple domains (2024) github.com · accessed

Community discussions 1

  1. OpenAI community: web_search blocked_domains appears to be ignored in some cases community.openai.com · accessed

Other sources 2

  1. APIs.io: Serper search request schema (third-party catalog; secondary) apis.io · accessed
  2. LiteLLM docs: Serper search (integration page; secondary) docs.litellm.ai · accessed

What readers say

Used one of the tools in this guide? Tell other readers how it went. I read every review before it goes up, and I never turn one down for being negative. How reviews work.

No reader reviews yet. Yours could be the first.

Write a review
Your rating

What did you use it for, what worked, and what didn't? 30 to 1500 characters. Please don't include links.

Your connection to the company

Your review appears with the name you enter, after I approve it. I don't ask for your email. Privacy.