How Do You Filter Google Search by Time With a URL Hack?

You can filter Google Search results by time without using the Tools menu by appending the &tbs=qdr: parameter to the end of a Google Search URL. Adding h, d, w, m, or y after the colon restricts results to the past hour, day, week, month, or year.

Understanding the tbs=qdr Parameter

Google Search uses URL query parameters to control how results are displayed. The tbs parameter stands for "to be searched," and qdr stands for "query date range." Together, tbs=qdr: tells Google to only return pages indexed within a specific timeframe.

Here are the five standard time values you can use:

  • h — Past hour
  • d — Past 24 hours (day)
  • w — Past week
  • m — Past month
  • y — Past year

How to Append the Parameter to a Google Search URL

To use this shortcut, start by running a normal search on Google or typing a standard search URL in your browser's address bar. A typical Google Search URL looks like this:

https://www.google.com/search?q=your+search+terms

Because the URL already contains a question mark (?) to introduce the q parameter, you append the time filter using an ampersand (&).

For example, to search for climate news from the past 24 hours, add &tbs=qdr:d to the end of the address:

https://www.google.com/search?q=climate+news&tbs=qdr:d

Press Enter, and the page will reload with only results from the past day.

Examples for Each Timeframe

  • Past hour: https://www.google.com/search?q=breaking+news&tbs=qdr:h
  • Past day: https://www.google.com/search?q=breaking+news&tbs=qdr:d
  • Past week: https://www.google.com/search?q=breaking+news&tbs=qdr:w
  • Past month: https://www.google.com/search?q=breaking+news&tbs=qdr:m
  • Past year: https://www.google.com/search?q=breaking+news&tbs=qdr:y

Using Custom Numbers With qdr

You can also place a number after the letter to filter by multiple hours, days, weeks, months, or years. For instance, &tbs=qdr:h2 filters for the past two hours, and &tbs=qdr:d3 filters for the past three days.

Tips for Reliable Results

If you are building a URL from scratch without an existing ?q= parameter, start the first parameter with ? instead of &. When modifying an existing Google Search URL that already has several parameters, simply paste &tbs=qdr:d (or your preferred letter) at the very end of the address.