API Reference
Stay organized with collections
Save and categorize content based on your preferences.
This API reference is organized by resource type. Each resource type has one or more data representations and one or more methods.
Pagespeedapi
For Pagespeedapi Resource details, see the resource representation page.
Method |
HTTP request |
Description |
URIs relative to https://www.googleapis.com/pagespeedonline/v4, or https://www.googleapis.cn/pagespeedonline/v4 for China users. |
runpagespeed
|
GET /runPagespeed
|
Runs PageSpeed analysis on the page at the specified URL, and returns PageSpeed scores, a list of suggestions to make that page faster, and other information.
Required query parameters:
url |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-03 UTC."],[[["The API reference is structured by resource type, with each type having various data representations and methods."],["Pagespeedapi resource details are available on a dedicated resource representation page."],["The `runpagespeed` method allows analysis of a web page's performance via the `GET` request, providing scores, suggestions, and other relevant data, requiring the `url` as a query parameter."],["The API can be accessed through specific URIs for global users and separate ones for users in China."]]],["The document outlines the PageSpeed API, structured by resource type, each with data representations and methods. The primary method is `runpagespeed`, accessed via a `GET` request to `/runPagespeed`. This method analyzes a specified URL's page speed, returning scores, suggestions for improvement, and related data. The `url` is the only required query parameter for this method. Base URIs are also provided for different geographic locations.\n"]]