Skip to content

Cost-efficient alternatives to HAR files #1092

Open

Description

@nrllh

Currently, we only host HAR files for the most recent crawl (as discussed in #1011) and all older HAR files have been removed. I've used them extensively in a project and I know others in the community have also relied on them for research across different domains.

Since their removal, reproducing HAR-like data from BigQuery is difficult and expensive. Querying the raw request/response data across multiple tables at page-level granularity quickly becomes cost-prohibitive for many users.

One idea could be to provide a UDF that reassembles HAR-like structures, but that still risks being costly depending on the size of the crawl and query.

We should make historical crawl data more accessible again, in a way that's sustainable and doesn't shift high costs to users. Ideally, the community should be able to query or download HAR-like data efficiently.

Would be good to discuss options for restoring this kind of access, either through BigQuery optimizations or external exports.

Activity

  1. gunesacar commented on Jul 23, 2025

    @gunesacar

    Script sources included in HTTP Archive's HAR files enabled our team to identify the start date of the "localmess" tracking method, a privacy issue affecting billions of users. The current cost structure will likely be prohibitive for future researchers performing similar longitudinal analyses. I hope a low-cost alternative can be introduced following @nrllh's suggestion. Regardless, I'm grateful that this project exists 🙏🏽.

  2. deleted a comment from hmo687 on Jul 31, 2025
  3. max-ostapenko commented on Jul 2, 2026

    @max-ostapenko
    Contributor

    The solution to make it more accessible is actually available in BQ - to use capacity-based billing model.
    It makes it very cheap to quickly scan big amounts of data.

    Example:
    with Standard reservation capped at 400 slots the query:

    SELECT
      page,
      url
    FROM
      `httparchive.crawl.requests`
    WHERE
      date = "2026-06-01" AND
      root_page = 'https://dictionary.cambridge.org/' AND
      page LIKE 'https://dictionary.cambridge.org/%' AND
      response_body LIKE '%fetchLater%'

    processes 200 Tb and consumes 12798307 of slotMs.

    So the cost is: (12798307 / 1000 / 3600) slotHr * 0.04 $/slotHr ~ $0.15.

    For simple data scanning queries this will is a cost-efficient solution. For more complex statistics it's better to run as a separate query on a pre-aggregated table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions