Pages table
httparchive.crawl.pages
is a partitioned and clustered table containing one row per page tested in the HTTP Archive. Pages are tested on a monthly basis and as of April 2022, both the root page and one secondary page are tested.
Schema
Field name | Type | Description |
---|---|---|
date | DATE | YYYY-MM-DD format of the HTTP Archive monthly crawl |
client | STRING | Test environment: 'desktop' or 'mobile' |
page | STRING | The URL of the page being tested |
is_root_page | BOOLEAN | Whether the page is the root of the origin |
root_page | STRING | The URL of the root page being tested, the origin followed by / |
rank | INTEGER | Site popularity rank, from CrUX |
wptid | STRING | ID of the WebPageTest results |
payload | JSON | JSON-encoded WebPageTest results for the page |
summary | JSON | JSON-encoded summarization of the page-level data |
custom_metrics | RECORD | JSON-encoded test results of the custom metrics |
lighthouse | JSON | JSON-encoded Lighthouse report |
features | ARRAY<RECORD> | Blink features detected at runtime |
technologies | ARRAY<RECORD> | Technologies detected at runtime |
metadata | JSON | Additional metadata about the test |
date
This field is required for all queries over the pages
table.
YYYY-MM-DD format of the HTTP Archive monthly crawl.
Example: date = '2023-06-01'
client
Test environment: 'desktop'
or 'mobile'
.
page
The URL of the page being tested.
Example: page = 'https://har.fyi/'
is_root_page
Whether the page is the root of the origin.
root_page
The URL of the root page being tested, the origin followed by /
.
Example: root_page = 'https://har.fyi/'
rank
Site popularity rank, from CrUX
wptid
ID of the WebPageTest results, for example wptid = '230509_Dx20W_FMHK5'
.
The ID encodes the date of the test at the start in YYMMDD format. The date is followed by an underscore and a D
or M
character indicating whether it was a desktop or mobile test. The rest of the ID is randomly generated. In the example above we can tell that the page was tested on May 9, 2023, and that it was a desktop test.
You can view the WebPageTest results in the browser by visiting https://webpagetest.httparchive.org/result/<wptid>/
, eg https://webpagetest.httparchive.org/result/230509_Dx20W_FMHK5/. This is HTTP Archive’s own private instance of WebPageTest, which is required to view any of the results.
payload
JSON-encoded WebPageTest results for the page.
For a full example value, see payload.json.
See the Page payload reference for more details.
summary
JSON-encoded summarization of the page-level data
See the Page summary reference for more details.
custom_metrics
JSON-encoded test results of the custom metrics.
See the Custom metrics reference for more details.
lighthouse
JSON-encoded Lighthouse report.
See the Lighthouse reference for more details.
features
Blink features detected at runtime (see https://chromestatus.com/features)
See the Features reference for more details.
technologies
Technologies detected at runtime (see https://www.wappalyzer.com/)
See the Technology reference for more details.
metadata
Additional metadata about the test
See the Page metadata reference for more details.
Example queries
Here are some common operations you can perform with the pages
table.
Count the pages crawled
client | is_root_page | pages_total |
---|---|---|
mobile | false | 13998652 |
mobile | true | 16193055 |
desktop | true | 12900240 |
desktop | false | 11585746 |
Get the median page weight
client | median_page_weight |
---|---|
mobile | 1776291 |
desktop | 2029751 |
The median mobile page weighs 1.78 MB and the median desktop page weighs 2.03 MB.
This query uses the APPROX_QUANTILES
function to calculate the median page weight for each client type as of May 2023.
The bytesTotal
property of the summary
object represents the total number of bytes loaded on the page. This value is stored as a JSON-encoded string, so we use INT64
to convert it to an integer.
We’re also using the WITH
clause here to create a temporary table called pages
, which is then fed into the main query below. This makes the query a bit easier to read.
Also note that for demonstration purposes, this query processes a 1% sample of the httparchive.crawl.pages
table. This reduces the amount of data processed by the query, which can help reduce costs. But note that the results will be less accurate than if you ran the query on the full table.
The average number of requests per page
pages | avg_requests | p25_requests | p50_requests | p75_requests | p95_requests |
---|---|---|---|---|---|
306151 | 92.53 | 37 | 65 | 107 | 212 |
The median number of requests per page is 65. The average is in fact skewed by outliers. Also, since the 25th percentile is 37 requests and the 75th percentile is 107 requests, that tells us that 50% of the 300K pages tracked by the HTTP Archive have between 37 and 107 requests. This is also known as the interquartile range.