Filter Google Results by Date with a URL Trick
Posted by Kevin Purdy at 6:30 AM on April 28, 2008
Google can reorder search and news results from the last day, week, a few months, or entire year by adding a small string to the end of the search URL. Just add this string—&as_qdr=d—to the address bar and hit enter. You'll get a custom drop-down box that lets you re-order results based on date. It's great for getting past the same top results you've already looked through, as well as grabbing only the newest links related to gadgets, software, or whatever else you're searching. Sadly it doesn't work on Google Images, but let us know in the comments if it does work on other Google searches.
Tags: filters | google | search | search operators | search techniques | url hacking | urls

Comments (AU Comments · US Comments)
There are currently no AU comments for this post.
MaxGhost
Posted 6:46 AM 28/4/08
useful! thanks!
MaxGhost
yochanan_marqos
Posted 7:26 AM 28/4/08
It would probably be really easy to make a Javascript Bookmarklet for this. That is, for someone who knows how...*hint, hint*
yochanan_marqos
Bobly
Posted 7:20 AM 28/4/08
I used to use the advanced settings to bring up that menu but this is much easier :) Can't believe I'd never though of it XD
Bobly
BookwormDragon
Posted 7:57 AM 28/4/08
@yochanan_marqos: I agree, I would love a bookmarklet for this.
BookwormDragon
FizzyPopMan
Posted 7:48 AM 28/4/08
@yochanan_marqos: I second that notion!
FizzyPopMan
Speedmaster
Posted 8:34 AM 28/4/08
Clever, thanks!!
Speedmaster
Gonzie
Posted 8:25 AM 28/4/08
that's bloody awesome! :D promptly added to my Inquisitor search options
Gonzie
FubarGuy
Posted 8:11 AM 28/4/08
Wow, I was just wondering how to do this yesterday! And a bookmarklet thing would also rock.
FubarGuy
yochanan_marqos
Posted 9:00 AM 28/4/08
I found the bookmarklet via Digg:
javascript:window.location+="&as_qdr=d";
yochanan_marqos
UnknownVariable
Posted 8:57 AM 28/4/08
Bookmarklet?
Simple:
javascript:void(top.location=top.location+"&as_qdr=d");
Create a new bookmark and add the javascript above as the "location" and it'll work from there.
Nothing fancy, just adds the required bit to the end of your current URL. :)
UnknownVariable
HumbleOpinion
Posted 11:04 AM 28/4/08
If you use Firefox, you can change (or add a new) bookmark to the Quicksearch Bookmarks folder. Right-click the "Google Quicksearch" bookmark to open properties and change it to www.google.com/search?q=%s&as_qdr=d
The keyword should be g and then when you type "g searchterm" in the address bar, it will substitute %s with searchterm and add the date function at the same time. If you create a new bookmark, use the keyword gd for Google Date search.
The same principle works in MSIE, but you have to use TweakUI to create the autosearch
HumbleOpinion
earth2marsh
Posted 11:22 AM 28/4/08
There was a very useful Greasemonkey script called Google Time Search (Modified) that added the date box by default to all Google web search results. Unfortunately, it broke about 2 months ago. I haven't found the time to comb through it, but it couldn't be too hard to fix... I <3'ed it when it was working!
earth2marsh
Torley
Posted 11:59 AM 28/4/08
That's useful, but I wish there was a more controllable range that extended back further: for example, "1-2 years ago".
Torley
yochanan_marqos
Posted 3:10 PM 28/4/08
The Google Filter by Date Greasemonkey script was just updated.
yochanan_marqos
Scott
Posted 8:13 PM 28/4/08
Thank you, yochanan_marqos.
Scott
omgy
Posted 11:17 PM 28/4/08
@omgy: ^^ You'll have to remove the brackets around the urls.
omgy
omgy
Posted 11:15 PM 28/4/08
Here's a firefox quicksearch that searches by date if a search term is provided, otherwise goes to the google homepage.
javascript:if('%s'=='%'+'s')%20location.href='[www.google.com]';%20else%20location.href='[www.google.com]';
I use the keyword 'gt' for google with time filter and 'g' for a regular google search. The filter automatically filters to the last 24 hours.
omgy
mithr4ndir
Posted 4:45 PM 28/4/08
If you use the address bar in firefox for your google searches, open up the about:config page. Search for the keyword "keyword.URL" and change the value to "http://www.google.com/search?btnG=Google+Search&as_qdr=d&q=" (do not include the quotes!).
Now google away from your address bar with the date filter!
mithr4ndir
90230
Posted 3:54 PM 28/4/08
Give a man a fish: "Just add this string-&as_qdr=d-to the address bar and hit enter."
Teach a man to fish: What exactly is Google seeing when we add that string?
90230
chaws
Posted 9:19 AM 28/4/08
Even better, make a search keyword for use in the address bar of your browser. Then you can just just type something like "g testsearch", and get the date range dropdown every time.
For Opera
Go to Tools-->Preferences, then choose the Search tab and click "add". Name it whatever you like. Use whatever keyword you like (I used "g"), and paste [www.google.com] as the address. Actually, copy the address from that google link, since I can't figure out how to show the naked url here.
For Firefox
Firefox is only slightly more complicated. Good instructions are here. You should be able to use the same address as for Opera.
chaws
tezzle
Posted 8:13 AM 28/4/08
Hmm, don't know why it didn't let me preview my comment before posting. Just in case it didn't turn out right, I posted the bookmarklet here:
[www.regfee.info]
tezzle
tezzle
Posted 8:06 AM 28/4/08
Google Date Filter
tezzle
xdanimalx
Posted 9:28 AM 28/4/08
I made a Greasemonkey Script
[userscripts.org]
xdanimalx
graffiksguru
Posted 3:15 AM 29/4/08
Sweeet! thanks
graffiksguru
Biologyfool
Posted 6:32 AM 29/4/08
"re-order results based on date" That should be "filter" the results based on date. I use the thing daily to find articles to link to (and filter out older not-useful stuff), but it would be really cool if Google would sort them by date.
Biologyfool
BookwormDragon
Posted 1:40 PM 29/4/08
@tezzle: Thanks so much!
BookwormDragon
FubarGuy
Posted 12:23 AM 30/4/08
@tezzle: Ahhhh, cool! I don't always want the date filter on, that's a great way to toggle it.
FubarGuy
hlkljgk
Posted 2:22 AM 30/4/08
@mithr4ndir:
that's exactly what i was going to do - thanks
hlkljgk