I want to restrict Google search to a specific date/time range. How can this be done?
Google Search – How to Search Google with a Date/Time Range
dategoogle-search
Related Topic
- Google Search – How to Exclude Number Range
- Google Search – How to Search Results from Custom Time/Date Range
- Google-search – Searching for results within a date range from search bar
- Google-search – How to search for things within this year with Google
- Google Search – How to Sort Search Results by Date
Best Answer
I believe you are asking how to perform a Google search with a time value flag on the search.
This can be done by your program building its own search url. You likely already know that the searched string appears after the
q=
flag in the url. For time based searches you add thetbs=qdr:
flag followed by the time period value you wish to use. Some of the possible values you can use are:a
for any timen
for **tbs=qdr:n15
for the last 15 minutes)h
for hourtbs=qdr:h3
for the last 3 hours)d
for dayw
for weekm
for monthy
for yearExample: http://www.google.com/?gws_rd=ssl#q=querystring&tbs=qdr:d will search for querystring and return results that are dated in the last day.
You can also specify a date range using
tbs=cdr:1,cd_min:xx/xx/xxxx,cd_max:xx/xx/xxxx
.