Some deep research comes from public records, declassified government documents, local history societies and museums, etc.
The video, below, is by a Google engineer. He explains how Google indexes the web.
Contents: Full-text access to New York State newspapers including some in the public domain. 1725-2019.