The Archive Query Log: Mining Millions of Search Result Pages of Hundreds of Search Engines from 25 Years of Web Archives

Jan Heinrich Reimer, Sebastian Schmidt, Maik Fröbe, Lukas Gienapp, Harrisen Scells, Benno Stein, Matthias Hagen, Martin PotthastarXiv 2023 · DOI

TL;DR

Researchers have unlocked a massive, multi-decade treasure trove of search data by mining the Internet Archive. The resulting Archive Query Log (AQL) contains over 356 million queries and 1.4 billion search results from 550 different search engines, providing an unprecedented open resource for studying the history and transparency of the search industry.

What Problem Does This Paper Address?

In the world of Information Retrieval (IR), query logs are the "holy grail." They reveal what users want, how they phrase their needs, and how search engines respond. However, this data is almost exclusively held by private companies like Google or Microsoft, who rarely share it due to privacy concerns and competitive advantage.

Existing public datasets are either tiny, outdated (like the infamous 2006 AOL log), or limited to a single provider. This lack of data creates a "transparency gap," making it difficult for independent researchers to audit search engine fairness, study how search behavior evolves over decades, or develop new retrieval models that aren't biased toward a single company's ecosystem.

Methods

The authors developed a multi-step pipeline to "accidentally" reconstruct query logs from the Internet Archive’s Wayback Machine. Since the Wayback Machine crawls the web, it often captures Search Engine Result Pages (SERPs) that were linked to by other sites or submitted by users for archiving.

  1. Provider Collection: They identified 1,028 candidate search providers using Wikipedia lists and Alexa traffic rankings, eventually narrowing it down to 550 providers with archived search data.
  2. URL Mining: Using the Internet Archive’s CDX API, they searched for URL patterns that indicate a search query (e.g., google.com/search?q=...).
  3. Query Extraction: They built custom parsers to extract the raw query, page number, and result offsets from these URLs.
  4. SERP Parsing: For the archived HTML pages they found, they used semi-automatically derived CSS selectors to extract the actual search results—titles, snippets, and destination URLs.
Figure 1: Overview of the AQL creation process.

To handle the sensitive nature of this data, the authors are releasing it via TIRA, a "code-to-data" platform. Instead of downloading the raw logs, researchers submit their analysis code (as Docker images) to run in a sandboxed environment, ensuring privacy while allowing for large-scale study.

Datasets

The primary contribution is AQL-22, the first version of the Archive Query Log.

  • Scope: 550 search providers (including Google, Baidu, YouTube, and specialized sites like StackOverflow).
  • Timeframe: 25 years (1999–2022).
  • Scale: 356.5 million queries (64.5 million unique) and an estimated 1.4 billion search results.
  • Comparison: The paper includes a comprehensive meta-analysis of 45 previous query logs (14 public, 31 private), highlighting that AQL is orders of magnitude larger and more diverse than any other public resource.

Key Insights and Ideas

  • The Internet Archive as a Proxy: The paper proves that web archives are a viable, albeit noisy, source for reconstructing proprietary logs.
  • Diachronic Analysis: Because the same queries were often archived multiple times over years, researchers can perform "diachronic" studies—observing how a search engine's ranking for a term like "vaccine" or "climate change" changed over two decades.
  • Multilingual Diversity: Unlike many datasets that are English-centric, AQL features 104 different languages, with Chinese and English being the most prominent.
  • Benchmark Enrichment: The authors found a high overlap between AQL and older TREC (Text REtrieval Conference) benchmarks, suggesting AQL can be used to add "real-world" query variations to existing research tasks.
Distribution of query lengths for top providers

Key Results

  • Scale: AQL-22 includes 72.7M queries from Google, 69.6M from Baidu, and 41.4M from YouTube.
  • Query Characteristics: Most queries are between 5 and 20 characters. Interestingly, Chinese queries tend to be shorter in character count but dense in meaning.
  • Content Safety: Despite fears that public logs might be "dirty," only 1.3% of the extracted queries contained obscene terms, mostly concentrated on specific adult or torrent sites.
  • Ranking Trends: Wikipedia is the most frequently ranked domain in the dataset, appearing in 2.9% of all top-5 results across all providers.

Limitations and Future Work

  • Dynamic Content: The current mining process struggles with modern "Single Page Applications" (like DuckDuckGo) that load results via JavaScript after the initial page load. The authors plan to use headless browsers in future versions to capture these.
  • Download Bottlenecks: The Internet Archive has strict rate limits. Currently, only about 7% of the estimated available SERPs have been fully downloaded and parsed.
  • Automation: Writing CSS parsers for 550 different sites is labor-intensive. The team aims to use machine learning (specifically BERT-based token classification) to automatically identify search results in HTML in future iterations.
  • Expansion: Future versions of AQL will aim to include the full text of the pages linked in the search results, not just the snippets.

Summary updated

BibTeX
@misc{reimer2023archive,
  author = {Jan Heinrich Reimer and Sebastian Schmidt and Maik Fröbe and Lukas Gienapp and Harrisen Scells and Benno Stein and Matthias Hagen and Martin Potthast},
  title = {{The Archive Query Log: Mining Millions of Search Result Pages of Hundreds of Search Engines from 25 Years of Web Archives}},
  year = {2023},
  eprint = {2304.00413},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.00413},
}
Figure