5

I've been trying to set a daterange for the results I get on Google Custom Search but couldn't figure out how yet. My url, so far, looks like this:

https://www.googleapis.com/customsearch/v1?key=MY_KEY&cx=MY_OTHER_KEY&q=bigdata&alt=json&fields=queries(request,nextPage),items(title,link,snippet)&cr=&start=1

I'm trying to get, for example, the results inside the range of 01/01/2014 to 02/01/2014. Is there any way to do it?

Marcello Grechi Lins
  • 3,350
  • 8
  • 38
  • 72
VmLino
  • 291
  • 1
  • 2
  • 7
  • After a little bit of poking around, Google seems to only give an option for a maximum date. *([All parameters](https://developers.google.com/custom-search/json-api/v1/reference/cse/list))* Would you be willing to do something software-side to filter out the too recent entries? I haven't done any tests, but it seems as Google only allows [boolean operators](https://developers.google.com/custom-search/docs/xml_results#booleanOperators) for two parameters. – Anonymous Penguin Jul 18 '14 at 19:49
  • Thank you for the effort. I'll have to work around it somehow. Could you provide me with the link from where you got this info? – VmLino Jul 18 '14 at 20:42
  • There are two links in that comment (*"all parameters"* and *"boolean operators"*). – Anonymous Penguin Jul 18 '14 at 20:49
  • My bad, didn't pay enough attention. – VmLino Jul 18 '14 at 22:37
  • It has been answered here: [Date range search using Google Custom Search API](http://stackoverflow.com/questions/32406933/date-range-search-using-google-custom-search-api) – Wessam El Mahdy Sep 21 '16 at 11:11

0 Answers0