Skip to main content

Overview

Date and time filters limit results to a period. There are three kinds, and each is optional: Send one bound or both. You can combine publication and last-updated filters in one request, for example pages published in 2024 that were updated this month. search_recency_filter cannot be combined with search_after_date_filter or search_before_date_filter; that request returns HTTP 400 (see Errors). Date filters apply in addition to the query and any other filters, except snapshot_as_of: to search the web as of a past time, see Time Machine. The API reference documents the request parameters.

Filter by publication date

This request keeps results published between March 1 and March 5, 2025.
Every result in the recorded response has a date inside the window.

Filter by last-updated date

Use the last-updated filters when you need pages that were maintained recently, whatever their publication date. This request keeps pages updated on or after November 1, 2026.
In the recorded response, every last_updated is on or after the bound, while the date values go back to 2022.

Filter by a relative period

search_recency_filter keeps results from the past hour, day, week, month, or year, counted back from the time of the request. Use "hour" for breaking news and live events.
The recorded response was made on November 19, 2026, and every date is in the preceding week.

Errors

Dates in another format, such as ISO 2025-03-01, return HTTP 400 with a message that the value must be in MM/DD/YYYY format. Combining search_recency_filter with a publication date filter returns:

Next Steps

Language Filter

Return results in specific languages.

Domain Filter

Include or exclude specific domains, paths, and top-level domains.

How Search Works

Result fields, several queries per request, and request limits.

API Reference

Every request parameter, the response schema, and error responses.