In this article, I would like to share three features of PageSpeed Insights (PSI), that is not easy to find in the official documentation. I discovered them while hacking on the Lighthouse plugin and integrating PSI to Treo.sh.
For a context, PSI is a simple yet powerful API by Google, that audits your page using Lighthouse and provides real-world users' data from Chrome UX Report (CrUX).
1. Audit many categories with one request
By default, PSI API returns only performance category. It's possible to pass ?category
argument multiple times and get a report with many Lighthouse categories using one request (available categories: performance
, accessibility
, best-practices
, seo
, pwa
).
curl -i "https://www.googleapis.com/pagespe