3

The published date of the results can be displayed on Google search in a browser by using &as_qdr=y15. Example Link

enter image description here

I need to get this information on the google custom search API

https://www.googleapis.com/customsearch/v1?key=KEY&q=pala%20jewellers%20cannon%20park%20coventry

The API pulls the article:published_time when available on the webpage but this not available for all the pages so Google also estimates a page date based on features of the page such as dates in the title and URL.

How to get Google estimated page date from the Google Custom Search API?

S.Perera
  • 874
  • 3
  • 9
  • 24

1 Answers1

0

The Custom Search API returns metadata of a page only if it is mentioned in its HTML source. You could have a look at my answer to Get Date From Google Custom Search API.

The date displayed in the browser might be the day Google discovered and indexed that page. Or it could be the output of a smart-scraping of the page (i.e. by looking for keywords like "last updated" or "published on" in the content of the page).

Viseshini Reddy
  • 744
  • 3
  • 13