search
Get Started
search
PageSpeed Insights API - API Integration
zoom_in Click to enlarge

PageSpeed Insights API

language

description PageSpeed Insights API Overview

The PageSpeed Insights API provides programmatic access to detailed performance metrics and recommendations for optimizing website loading speed based on Google’s Lighthouse auditing engine. It delivers data regarding Core Web Vitals, best practices, and potential improvements across various devices and network conditions.

help PageSpeed Insights API FAQ

How do I get an API key for the PageSpeed Insights API?

You need to create a project in the Google Cloud Console and enable the PageSpeed Insights API to generate a unique API key. This key is appended as a URL parameter to authenticate your programmatic requests.

Does the PageSpeed Insights API return both Lab and Field data?

Yes, when you query the API, it returns both Lighthouse lab data run in a simulated environment and real-world field data from the Chrome User Experience Report (CrUX). The field data provides the actual Core Web Vitals metrics experienced by real users.

What is the rate limit for the PageSpeed Insights API?

The free tier of the PageSpeed Insights API allows for a generous amount of daily requests, but it is subject to rate limiting per second to prevent abuse. If you exceed the limit, the API will return an HTTP 429 Too Many Requests error.

Can the PageSpeed Insights API audit mobile devices specifically?

Yes, the API accepts a `strategy` parameter where you can specify either `desktop` or `mobile` in your request. The mobile strategy simulates a 4G CPU throttling environment, mimicking the processor constraints of a smartphone.

Reviews & Comments

Write a Review

rate_review

Be the first to review

Share your thoughts with the community and help others make better decisions.

Save to your list

Save your favorites and follow how their scores change over time.

Save favorites
Track changes
Compare scores

Already have an account? Sign in

Compare Items

See how they stack up against each other

Comparing
VS
Select 1 more item to compare