In normal Google search, I can restrict search results to a specific date range using Tools:
But when I use the same restriction with Google custom search API, all results are coming instead of the specific date range.
Suppose I want search results published only on yesterday. Although I specify the date range in the parameters, all results are being shown. But it's supposed to return no results even if the news published earlier, not yesterday.
I have seen this answer:
Specifying a Date Range in Google Custom Search api
but it doesn't work.
I want a solution, if it is possible or not to restrict search result to a specific date range. Do I need to change anything in my API dashboard?