Unlock Special Pricing for a Limited Time – GET 18% OFF NOW!

SpeedyGo
  • Features
  • Pricing
  • Documentation
  • FAQ
  • Blog
  • Run Test
  • Login
It's Free Download Now
Login

Caching & Preloading

  • optimization presets
  • Scheduled Expiration & Auto Purge
  • Cache Warm-Up
  • Cache Preloading
  • Mobile Caching
  • Object Caching
  • Browser Caching
  • Full-Page Caching

Asset Optimization

  • CSS Optimization
  • JavaScript Optimization
  • JS Interaction Delay
  • JavaScript Combination
  • CSS Combination
  • JavaScript Minification
  • CSS Minification
  • HTML Minification

Compression

  • Defer Scripts
  • Brotli Compression
  • Gzip Compression

Image Optimization (Pro)

  • image media optimization
  • cdn integration
  • Recommended Configuration (Pro Users)
  • Lazy Load
  • WebP Quality Control
  • Conversion Scope Rules
  • Enable WebP Conversion

PageSpeed & Analytics (Pro)

  • PageSpeed Analytics
  • Mobile vs Desktop Tracking
  • Google PageSpeed API Integration

System & Developer Tools

  • import export settings

Troubleshooting

  • API Key
View Categories
  • Home
  • Docs
  • PageSpeed & Analytics (Pro)
  • Google PageSpeed API Integration

Google PageSpeed API Integration

SpeedyGo uses the Google PageSpeed Insights API to run performance tests and retrieve Core Web Vitals scores. You must provide your own Google API key to use the PageSpeed Analytics feature.

Dashboard path: Analytics → PageSpeed
Plan: Pro only

page speed
Popup Image

What the API Does #

The Google PageSpeed Insights API analyses a given URL and returns:

  • Performance score (0–100)
  • Core Web Vitals: FCP, LCP, TBT, CLS, Speed Index
  • Lab data simulating mobile and desktop conditions
  • Opportunities and diagnostics for improvement

SpeedyGo sends a request to the API, receives the results, and stores them in your dashboard history.

Getting a Google API Key #

  1. Go to Google Cloud Console.
  2. Create a new project (or select an existing one).
  3. In the left sidebar, go to APIs & Services → Library.
  4. Search for PageSpeed Insights API and click it.
  5. Click Enable.
  6. Go to APIs & Services → Credentials.
  7. Click Create Credentials → API Key.
  8. Copy the generated key.

Free tier: The PageSpeed Insights API has a generous free quota (hundreds of requests per day). For typical usage you will not need billing enabled.

Configuration in SpeedyGo #

Field Description
URL to test The full page URL to analyse (e.g. https://yoursite.com/). Defaults to your site domain if left blank.
Google API Key Your API key from Google Cloud Console.
Timeout (seconds) How long to wait for the API response. Default: 250. Increase to 300 if tests time out.

How to Configure #

  1. Go to Analytics → PageSpeed.
  2. Enter the URL you want to test.
  3. Paste your Google API Key in the API Key field.
  4. Leave Timeout at 250 unless you experience timeouts.
  5. Click Save Settings.
  6. Click Run PageSpeed Test to run your first test.

API Key Security #

  • Your API key is stored in the SpeedyGo dashboard and sent only to googleapis.com during test requests.
  • Consider restricting the key to the PageSpeed Insights API only in Google Cloud Console (APIs & Services → Credentials → Edit API key → API restrictions).
  • Do not share your API key publicly.

API Quotas and Limits #

Quota Default
Requests per day 25,000 (free)
Requests per second 400

For typical PageSpeed monitoring (a few tests per day), the free quota is more than sufficient. If you hit quota limits, the test will return an error — wait 24 hours or enable billing in Google Cloud Console.

Troubleshooting #

Symptom Likely cause Fix
“API key not valid” error Wrong key or key not enabled for PageSpeed API Re-check the key in Google Cloud Console; ensure PageSpeed Insights API is enabled
Test times out API response slow or timeout value too low Increase Timeout to 300 or 400
“Quota exceeded” error Daily API quota reached Wait 24 hours or enable billing in Google Cloud
Test runs but shows 0 scores API returned empty data Re-run the test; check the URL is publicly accessible
URL to test shows wrong domain URL field left blank and license domain incorrect Enter the full URL manually

Tips #

Tip: Restrict your API key in Google Cloud Console to the PageSpeed Insights API only. This limits the key’s exposure if it is ever accidentally shared.

Tip: Test your homepage and your most important landing page or product page. These are the pages most likely to be indexed and ranked by Google.

Note: The API tests a live, publicly accessible URL. Make sure your site is not behind a login wall, maintenance mode, or IP restriction when running a test.

Updated on May 26, 2026

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Mobile vs Desktop TrackingPageSpeed Analytics
Table of Contents
  • What the API Does
  • Getting a Google API Key
  • Configuration in SpeedyGo
    • How to Configure
  • API Key Security
  • API Quotas and Limits
  • Troubleshooting
  • Tips
SpeedyGo
  • Features
  • Documentation
  • FAQ
  • Blog
  • Support Ticket
  • Get SpeedyGo

SpeedyGo is built to make your WordPress site faster, lighter, and easier to manage. From caching to compression, we simplify performance so you can focus on growing your website.

©2026 SpeedyGo. All rights reserved.

  • Privacy Policy
  • Refund Policy
  • Terms and Conditions
  • Privacy Disclosure