Google Pagespeed Insights
Table of Contents
The Google Pagespeed Insights tool analyzes the loading speed and performance of your website, offering recommendations to enhance site efficiency. It helps to improve response times, reduce download sizes, minimize resource requests, and ultimately boost your website's performance. This feature is essential for both user experience and SEO.
To integrate this tool with WP Adminify, you’ll need to create a Google Pagespeed Insights API key. Here's how you can generate and configure the API key to get started.
Step-by-Step Guide to Create a Google PageSpeed Insights API Key:
How Do You Get a Google PageSpeed Insights API Key?
To get a Google PageSpeed Insights API key, sign in to your Google account, open the PageSpeed Insights API page, click Get a Key, select or create a project, then copy the generated key and paste it into WP Adminify > Google PageSpeed. The key is free (Google allows 25,000 queries per day at no cost) and setup takes about three minutes. Follow the numbered steps below to create and connect your key.
Once connected, the Google PageSpeed Insights module runs automatic speed reports inside your WordPress dashboard, so you can track your PageSpeed history over time without leaving wp-admin.
1. Ensure You Are Logged into Your Google Account:
- Before you begin, ensure that you’re logged into your Google Account in your browser. If you don’t have one, you’ll need to create an account.
2. Access the Google Pagespeed Insights Documentation:
- Visit the official Google Pagespeed Insights API documentation by following this link. This page provides detailed instructions on how to use the API.

3. Click “Get a Key”:
- Scroll down the page until you see the “Get a Key” button.
- Click this button and wait a few moments for a popup window to appear.

4. Select or Create a Project:
- In the popup, you’ll see an option to either select an existing project or create a new project.
- If you want to create a new project specifically for PageSpeed Insights, click on “+ Create a new project”.
- If you want to enable Pagespeed API on an existing project, simply choose the project from the dropdown list.

5. Create Your API Key:
- Whether you’ve chosen to create a new project or use an existing one, the next step is to click Next.
- Google will generate your API key in a few seconds. Once it's ready, copy the API key that appears on the screen.

6. Set the API Key in WP Adminify:
- Log in to your WordPress dashboard and navigate to WP Adminify settings.
- Go to WP Adminify > Google Pagespeed within the WP Adminify dashboard menu.
- Paste the API key you just generated into the API Key input field.

7. Save Your Settings:
- After pasting your API key, make sure to click Save Settings to apply the changes.
You’re now ready to start using the Google Pagespeed Insights module within WP Adminify.
Where is the official Google PageSpeed Insights API documentation?
Google publishes the official reference at developers.google.com/speed/docs/insights/v5/get-started, and that page is the authoritative source for the API surface and the response format. This guide covers the part those docs leave out: getting the key connected to a WordPress site so the reports keep running on their own.
What is the runPagespeed API endpoint?
The v5 endpoint is https://www.googleapis.com/pagespeedonline/v5/runPagespeed. Pass the page you want to test as the url parameter, your key as key, and set strategy to either mobile or desktop. Google notes the API "can be used with or without an API key", but recommends one for frequent automated queries, which is exactly what a scheduled report does.
Should you restrict your PageSpeed Insights API key?
Yes. An unrestricted key works for anyone who finds it, and someone else's traffic burns your daily quota. Open Credentials in Google Cloud Console, click your key, and under API restrictions limit it to the PageSpeed Insights API only. Leave the application restrictions alone if the requests come from your server, because a server-side call sends no referrer for Google to match against.
Can you use the PageSpeed Insights API with Google Sheets?
Yes. In Sheets open Extensions, then Apps Script, and use UrlFetchApp to call the runPagespeed endpoint and write the Lighthouse performance score straight into a cell. That works well for a one-off audit of a URL list. The tradeoff for ongoing monitoring is maintenance, since the script needs attention whenever the sheet or your quota changes, whereas the Google PageSpeed Insights module keeps the history inside wp-admin without a script to babysit.
Google PageSpeed Insights API FAQs
Is the Google PageSpeed Insights API free?
Yes. The Google PageSpeed Insights API is completely free. Google grants a default quota of 25,000 queries per day (up to 400 queries per 100 seconds), and you do not need to enter billing details or a credit card to generate a key.
Do you need an API key to use PageSpeed Insights?
You can run occasional manual checks without a key, but an API key is required for frequent or automated requests. WP Adminify's scheduled speed reports and history tracking make repeated API calls, so you should add a free PageSpeed Insights API key for the module to work reliably.
How long does it take to create a PageSpeed Insights API key?
About three minutes. Sign in to Google, open the PageSpeed Insights API page, click Get a Key, pick or create a project, then copy the generated key. Paste it into WP Adminify then Google PageSpeed and save your settings to finish.
Why is my PageSpeed Insights API key not working in WP Adminify?
The most common causes are an extra space added when pasting the key, the PageSpeed Insights API not being enabled for that Google Cloud project, or hitting the daily quota. Re-copy the key, confirm the API is enabled in the same project, then save your settings again.
Didn’t find what you were looking for? Get in touch!
Updated on Aug 10, 2026
Was this helpful to you?